├── ARKit ├── PolySample.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── nirav.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── nirav.xcuserdatad │ │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── PolySample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── PolySampleTests │ ├── Info.plist │ └── PolySampleTests.m └── PolySampleUITests │ ├── Info.plist │ └── PolySampleUITests.m ├── CONTRIBUTING.md ├── LICENSE ├── README.md └── SceneKit ├── PolySampleSceneKit.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── nirav.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── nirav.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── PolySampleSceneKit ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── GameViewController.h ├── GameViewController.m ├── Info.plist └── main.m ├── PolySampleSceneKitTests ├── Info.plist └── PolySampleSceneKitTests.m └── PolySampleSceneKitUITests ├── Info.plist └── PolySampleSceneKitUITests.m /ARKit/PolySample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1992415E1FAA25E70038D53D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1992415D1FAA25E70038D53D /* AppDelegate.m */; }; 11 | 199241631FAA25E70038D53D /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 199241621FAA25E70038D53D /* ViewController.m */; }; 12 | 199241661FAA25E70038D53D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 199241641FAA25E70038D53D /* Main.storyboard */; }; 13 | 199241681FAA25E70038D53D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 199241671FAA25E70038D53D /* Assets.xcassets */; }; 14 | 1992416B1FAA25E70038D53D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 199241691FAA25E70038D53D /* LaunchScreen.storyboard */; }; 15 | 1992416E1FAA25E70038D53D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1992416D1FAA25E70038D53D /* main.m */; }; 16 | 199241781FAA25E70038D53D /* PolySampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 199241771FAA25E70038D53D /* PolySampleTests.m */; }; 17 | 199241831FAA25E70038D53D /* PolySampleUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 199241821FAA25E70038D53D /* PolySampleUITests.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 199241741FAA25E70038D53D /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 199241511FAA25E60038D53D /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 199241581FAA25E70038D53D; 26 | remoteInfo = PolySample; 27 | }; 28 | 1992417F1FAA25E70038D53D /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 199241511FAA25E60038D53D /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 199241581FAA25E70038D53D; 33 | remoteInfo = PolySample; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 199241591FAA25E70038D53D /* PolySample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PolySample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 1992415C1FAA25E70038D53D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 40 | 1992415D1FAA25E70038D53D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 41 | 199241621FAA25E70038D53D /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 42 | 199241651FAA25E70038D53D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | 199241671FAA25E70038D53D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 44 | 1992416A1FAA25E70038D53D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 45 | 1992416C1FAA25E70038D53D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 1992416D1FAA25E70038D53D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 47 | 199241731FAA25E70038D53D /* PolySampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PolySampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 199241771FAA25E70038D53D /* PolySampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PolySampleTests.m; sourceTree = ""; }; 49 | 199241791FAA25E70038D53D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | 1992417E1FAA25E70038D53D /* PolySampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PolySampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 199241821FAA25E70038D53D /* PolySampleUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PolySampleUITests.m; sourceTree = ""; }; 52 | 199241841FAA25E70038D53D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | 199241D11FAA56420038D53D /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ViewController.h; path = /Users/nirav/Development/Github/PolySample/PolySample/ViewController.h; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 199241561FAA25E70038D53D /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | 199241701FAA25E70038D53D /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | 1992417B1FAA25E70038D53D /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | 199241501FAA25E60038D53D = { 82 | isa = PBXGroup; 83 | children = ( 84 | 1992415B1FAA25E70038D53D /* PolySample */, 85 | 199241761FAA25E70038D53D /* PolySampleTests */, 86 | 199241811FAA25E70038D53D /* PolySampleUITests */, 87 | 1992415A1FAA25E70038D53D /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | 1992415A1FAA25E70038D53D /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 199241591FAA25E70038D53D /* PolySample.app */, 95 | 199241731FAA25E70038D53D /* PolySampleTests.xctest */, 96 | 1992417E1FAA25E70038D53D /* PolySampleUITests.xctest */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | 1992415B1FAA25E70038D53D /* PolySample */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 1992415C1FAA25E70038D53D /* AppDelegate.h */, 105 | 1992415D1FAA25E70038D53D /* AppDelegate.m */, 106 | 199241D11FAA56420038D53D /* ViewController.h */, 107 | 199241621FAA25E70038D53D /* ViewController.m */, 108 | 199241641FAA25E70038D53D /* Main.storyboard */, 109 | 199241671FAA25E70038D53D /* Assets.xcassets */, 110 | 199241691FAA25E70038D53D /* LaunchScreen.storyboard */, 111 | 1992416C1FAA25E70038D53D /* Info.plist */, 112 | 1992416D1FAA25E70038D53D /* main.m */, 113 | ); 114 | path = PolySample; 115 | sourceTree = ""; 116 | }; 117 | 199241761FAA25E70038D53D /* PolySampleTests */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 199241771FAA25E70038D53D /* PolySampleTests.m */, 121 | 199241791FAA25E70038D53D /* Info.plist */, 122 | ); 123 | path = PolySampleTests; 124 | sourceTree = ""; 125 | }; 126 | 199241811FAA25E70038D53D /* PolySampleUITests */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 199241821FAA25E70038D53D /* PolySampleUITests.m */, 130 | 199241841FAA25E70038D53D /* Info.plist */, 131 | ); 132 | path = PolySampleUITests; 133 | sourceTree = ""; 134 | }; 135 | /* End PBXGroup section */ 136 | 137 | /* Begin PBXNativeTarget section */ 138 | 199241581FAA25E70038D53D /* PolySample */ = { 139 | isa = PBXNativeTarget; 140 | buildConfigurationList = 199241871FAA25E70038D53D /* Build configuration list for PBXNativeTarget "PolySample" */; 141 | buildPhases = ( 142 | 199241551FAA25E70038D53D /* Sources */, 143 | 199241561FAA25E70038D53D /* Frameworks */, 144 | 199241571FAA25E70038D53D /* Resources */, 145 | ); 146 | buildRules = ( 147 | ); 148 | dependencies = ( 149 | ); 150 | name = PolySample; 151 | productName = PolySample; 152 | productReference = 199241591FAA25E70038D53D /* PolySample.app */; 153 | productType = "com.apple.product-type.application"; 154 | }; 155 | 199241721FAA25E70038D53D /* PolySampleTests */ = { 156 | isa = PBXNativeTarget; 157 | buildConfigurationList = 1992418A1FAA25E70038D53D /* Build configuration list for PBXNativeTarget "PolySampleTests" */; 158 | buildPhases = ( 159 | 1992416F1FAA25E70038D53D /* Sources */, 160 | 199241701FAA25E70038D53D /* Frameworks */, 161 | 199241711FAA25E70038D53D /* Resources */, 162 | ); 163 | buildRules = ( 164 | ); 165 | dependencies = ( 166 | 199241751FAA25E70038D53D /* PBXTargetDependency */, 167 | ); 168 | name = PolySampleTests; 169 | productName = PolySampleTests; 170 | productReference = 199241731FAA25E70038D53D /* PolySampleTests.xctest */; 171 | productType = "com.apple.product-type.bundle.unit-test"; 172 | }; 173 | 1992417D1FAA25E70038D53D /* PolySampleUITests */ = { 174 | isa = PBXNativeTarget; 175 | buildConfigurationList = 1992418D1FAA25E70038D53D /* Build configuration list for PBXNativeTarget "PolySampleUITests" */; 176 | buildPhases = ( 177 | 1992417A1FAA25E70038D53D /* Sources */, 178 | 1992417B1FAA25E70038D53D /* Frameworks */, 179 | 1992417C1FAA25E70038D53D /* Resources */, 180 | ); 181 | buildRules = ( 182 | ); 183 | dependencies = ( 184 | 199241801FAA25E70038D53D /* PBXTargetDependency */, 185 | ); 186 | name = PolySampleUITests; 187 | productName = PolySampleUITests; 188 | productReference = 1992417E1FAA25E70038D53D /* PolySampleUITests.xctest */; 189 | productType = "com.apple.product-type.bundle.ui-testing"; 190 | }; 191 | /* End PBXNativeTarget section */ 192 | 193 | /* Begin PBXProject section */ 194 | 199241511FAA25E60038D53D /* Project object */ = { 195 | isa = PBXProject; 196 | attributes = { 197 | LastUpgradeCheck = 0900; 198 | ORGANIZATIONNAME = "Nirav Savjani"; 199 | TargetAttributes = { 200 | 199241581FAA25E70038D53D = { 201 | CreatedOnToolsVersion = 9.0; 202 | ProvisioningStyle = Automatic; 203 | }; 204 | 199241721FAA25E70038D53D = { 205 | CreatedOnToolsVersion = 9.0; 206 | ProvisioningStyle = Automatic; 207 | TestTargetID = 199241581FAA25E70038D53D; 208 | }; 209 | 1992417D1FAA25E70038D53D = { 210 | CreatedOnToolsVersion = 9.0; 211 | ProvisioningStyle = Automatic; 212 | TestTargetID = 199241581FAA25E70038D53D; 213 | }; 214 | }; 215 | }; 216 | buildConfigurationList = 199241541FAA25E60038D53D /* Build configuration list for PBXProject "PolySample" */; 217 | compatibilityVersion = "Xcode 8.0"; 218 | developmentRegion = en; 219 | hasScannedForEncodings = 0; 220 | knownRegions = ( 221 | en, 222 | Base, 223 | ); 224 | mainGroup = 199241501FAA25E60038D53D; 225 | productRefGroup = 1992415A1FAA25E70038D53D /* Products */; 226 | projectDirPath = ""; 227 | projectRoot = ""; 228 | targets = ( 229 | 199241581FAA25E70038D53D /* PolySample */, 230 | 199241721FAA25E70038D53D /* PolySampleTests */, 231 | 1992417D1FAA25E70038D53D /* PolySampleUITests */, 232 | ); 233 | }; 234 | /* End PBXProject section */ 235 | 236 | /* Begin PBXResourcesBuildPhase section */ 237 | 199241571FAA25E70038D53D /* Resources */ = { 238 | isa = PBXResourcesBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | 1992416B1FAA25E70038D53D /* LaunchScreen.storyboard in Resources */, 242 | 199241681FAA25E70038D53D /* Assets.xcassets in Resources */, 243 | 199241661FAA25E70038D53D /* Main.storyboard in Resources */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | 199241711FAA25E70038D53D /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | 1992417C1FAA25E70038D53D /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXResourcesBuildPhase section */ 262 | 263 | /* Begin PBXSourcesBuildPhase section */ 264 | 199241551FAA25E70038D53D /* Sources */ = { 265 | isa = PBXSourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | 199241631FAA25E70038D53D /* ViewController.m in Sources */, 269 | 1992416E1FAA25E70038D53D /* main.m in Sources */, 270 | 1992415E1FAA25E70038D53D /* AppDelegate.m in Sources */, 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | 1992416F1FAA25E70038D53D /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 199241781FAA25E70038D53D /* PolySampleTests.m in Sources */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | 1992417A1FAA25E70038D53D /* Sources */ = { 283 | isa = PBXSourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | 199241831FAA25E70038D53D /* PolySampleUITests.m in Sources */, 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | }; 290 | /* End PBXSourcesBuildPhase section */ 291 | 292 | /* Begin PBXTargetDependency section */ 293 | 199241751FAA25E70038D53D /* PBXTargetDependency */ = { 294 | isa = PBXTargetDependency; 295 | target = 199241581FAA25E70038D53D /* PolySample */; 296 | targetProxy = 199241741FAA25E70038D53D /* PBXContainerItemProxy */; 297 | }; 298 | 199241801FAA25E70038D53D /* PBXTargetDependency */ = { 299 | isa = PBXTargetDependency; 300 | target = 199241581FAA25E70038D53D /* PolySample */; 301 | targetProxy = 1992417F1FAA25E70038D53D /* PBXContainerItemProxy */; 302 | }; 303 | /* End PBXTargetDependency section */ 304 | 305 | /* Begin PBXVariantGroup section */ 306 | 199241641FAA25E70038D53D /* Main.storyboard */ = { 307 | isa = PBXVariantGroup; 308 | children = ( 309 | 199241651FAA25E70038D53D /* Base */, 310 | ); 311 | name = Main.storyboard; 312 | sourceTree = ""; 313 | }; 314 | 199241691FAA25E70038D53D /* LaunchScreen.storyboard */ = { 315 | isa = PBXVariantGroup; 316 | children = ( 317 | 1992416A1FAA25E70038D53D /* Base */, 318 | ); 319 | name = LaunchScreen.storyboard; 320 | sourceTree = ""; 321 | }; 322 | /* End PBXVariantGroup section */ 323 | 324 | /* Begin XCBuildConfiguration section */ 325 | 199241851FAA25E70038D53D /* Debug */ = { 326 | isa = XCBuildConfiguration; 327 | buildSettings = { 328 | ALWAYS_SEARCH_USER_PATHS = NO; 329 | CLANG_ANALYZER_NONNULL = YES; 330 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 331 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 332 | CLANG_CXX_LIBRARY = "libc++"; 333 | CLANG_ENABLE_MODULES = YES; 334 | CLANG_ENABLE_OBJC_ARC = YES; 335 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 336 | CLANG_WARN_BOOL_CONVERSION = YES; 337 | CLANG_WARN_COMMA = YES; 338 | CLANG_WARN_CONSTANT_CONVERSION = YES; 339 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 340 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 341 | CLANG_WARN_EMPTY_BODY = YES; 342 | CLANG_WARN_ENUM_CONVERSION = YES; 343 | CLANG_WARN_INFINITE_RECURSION = YES; 344 | CLANG_WARN_INT_CONVERSION = YES; 345 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 346 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 347 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 348 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 349 | CLANG_WARN_STRICT_PROTOTYPES = YES; 350 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 351 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 352 | CLANG_WARN_UNREACHABLE_CODE = YES; 353 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 354 | CODE_SIGN_IDENTITY = "iPhone Developer"; 355 | COPY_PHASE_STRIP = NO; 356 | DEBUG_INFORMATION_FORMAT = dwarf; 357 | ENABLE_STRICT_OBJC_MSGSEND = YES; 358 | ENABLE_TESTABILITY = YES; 359 | GCC_C_LANGUAGE_STANDARD = gnu11; 360 | GCC_DYNAMIC_NO_PIC = NO; 361 | GCC_NO_COMMON_BLOCKS = YES; 362 | GCC_OPTIMIZATION_LEVEL = 0; 363 | GCC_PREPROCESSOR_DEFINITIONS = ( 364 | "DEBUG=1", 365 | "$(inherited)", 366 | ); 367 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 368 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 369 | GCC_WARN_UNDECLARED_SELECTOR = YES; 370 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 371 | GCC_WARN_UNUSED_FUNCTION = YES; 372 | GCC_WARN_UNUSED_VARIABLE = YES; 373 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 374 | MTL_ENABLE_DEBUG_INFO = YES; 375 | ONLY_ACTIVE_ARCH = YES; 376 | SDKROOT = iphoneos; 377 | }; 378 | name = Debug; 379 | }; 380 | 199241861FAA25E70038D53D /* Release */ = { 381 | isa = XCBuildConfiguration; 382 | buildSettings = { 383 | ALWAYS_SEARCH_USER_PATHS = NO; 384 | CLANG_ANALYZER_NONNULL = YES; 385 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 387 | CLANG_CXX_LIBRARY = "libc++"; 388 | CLANG_ENABLE_MODULES = YES; 389 | CLANG_ENABLE_OBJC_ARC = YES; 390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 391 | CLANG_WARN_BOOL_CONVERSION = YES; 392 | CLANG_WARN_COMMA = YES; 393 | CLANG_WARN_CONSTANT_CONVERSION = YES; 394 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 395 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 396 | CLANG_WARN_EMPTY_BODY = YES; 397 | CLANG_WARN_ENUM_CONVERSION = YES; 398 | CLANG_WARN_INFINITE_RECURSION = YES; 399 | CLANG_WARN_INT_CONVERSION = YES; 400 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 401 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 402 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 403 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 404 | CLANG_WARN_STRICT_PROTOTYPES = YES; 405 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 406 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 407 | CLANG_WARN_UNREACHABLE_CODE = YES; 408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 409 | CODE_SIGN_IDENTITY = "iPhone Developer"; 410 | COPY_PHASE_STRIP = NO; 411 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 412 | ENABLE_NS_ASSERTIONS = NO; 413 | ENABLE_STRICT_OBJC_MSGSEND = YES; 414 | GCC_C_LANGUAGE_STANDARD = gnu11; 415 | GCC_NO_COMMON_BLOCKS = YES; 416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 417 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 418 | GCC_WARN_UNDECLARED_SELECTOR = YES; 419 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 420 | GCC_WARN_UNUSED_FUNCTION = YES; 421 | GCC_WARN_UNUSED_VARIABLE = YES; 422 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 423 | MTL_ENABLE_DEBUG_INFO = NO; 424 | SDKROOT = iphoneos; 425 | VALIDATE_PRODUCT = YES; 426 | }; 427 | name = Release; 428 | }; 429 | 199241881FAA25E70038D53D /* Debug */ = { 430 | isa = XCBuildConfiguration; 431 | buildSettings = { 432 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 433 | CODE_SIGN_STYLE = Automatic; 434 | DEVELOPMENT_TEAM = 8S8L4L2477; 435 | INFOPLIST_FILE = PolySample/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.google.PolySample; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | TARGETED_DEVICE_FAMILY = "1,2"; 440 | }; 441 | name = Debug; 442 | }; 443 | 199241891FAA25E70038D53D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | buildSettings = { 446 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 447 | CODE_SIGN_STYLE = Automatic; 448 | DEVELOPMENT_TEAM = 8S8L4L2477; 449 | INFOPLIST_FILE = PolySample/Info.plist; 450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 451 | PRODUCT_BUNDLE_IDENTIFIER = com.google.PolySample; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | TARGETED_DEVICE_FAMILY = "1,2"; 454 | }; 455 | name = Release; 456 | }; 457 | 1992418B1FAA25E70038D53D /* Debug */ = { 458 | isa = XCBuildConfiguration; 459 | buildSettings = { 460 | BUNDLE_LOADER = "$(TEST_HOST)"; 461 | CODE_SIGN_STYLE = Automatic; 462 | DEVELOPMENT_TEAM = 8S8L4L2477; 463 | INFOPLIST_FILE = PolySampleTests/Info.plist; 464 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 465 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleTests; 466 | PRODUCT_NAME = "$(TARGET_NAME)"; 467 | TARGETED_DEVICE_FAMILY = "1,2"; 468 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PolySample.app/PolySample"; 469 | }; 470 | name = Debug; 471 | }; 472 | 1992418C1FAA25E70038D53D /* Release */ = { 473 | isa = XCBuildConfiguration; 474 | buildSettings = { 475 | BUNDLE_LOADER = "$(TEST_HOST)"; 476 | CODE_SIGN_STYLE = Automatic; 477 | DEVELOPMENT_TEAM = 8S8L4L2477; 478 | INFOPLIST_FILE = PolySampleTests/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 480 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleTests; 481 | PRODUCT_NAME = "$(TARGET_NAME)"; 482 | TARGETED_DEVICE_FAMILY = "1,2"; 483 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PolySample.app/PolySample"; 484 | }; 485 | name = Release; 486 | }; 487 | 1992418E1FAA25E70038D53D /* Debug */ = { 488 | isa = XCBuildConfiguration; 489 | buildSettings = { 490 | CODE_SIGN_STYLE = Automatic; 491 | DEVELOPMENT_TEAM = 8S8L4L2477; 492 | INFOPLIST_FILE = PolySampleUITests/Info.plist; 493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 494 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleUITests; 495 | PRODUCT_NAME = "$(TARGET_NAME)"; 496 | TARGETED_DEVICE_FAMILY = "1,2"; 497 | TEST_TARGET_NAME = PolySample; 498 | }; 499 | name = Debug; 500 | }; 501 | 1992418F1FAA25E70038D53D /* Release */ = { 502 | isa = XCBuildConfiguration; 503 | buildSettings = { 504 | CODE_SIGN_STYLE = Automatic; 505 | DEVELOPMENT_TEAM = 8S8L4L2477; 506 | INFOPLIST_FILE = PolySampleUITests/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 508 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleUITests; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | TARGETED_DEVICE_FAMILY = "1,2"; 511 | TEST_TARGET_NAME = PolySample; 512 | }; 513 | name = Release; 514 | }; 515 | /* End XCBuildConfiguration section */ 516 | 517 | /* Begin XCConfigurationList section */ 518 | 199241541FAA25E60038D53D /* Build configuration list for PBXProject "PolySample" */ = { 519 | isa = XCConfigurationList; 520 | buildConfigurations = ( 521 | 199241851FAA25E70038D53D /* Debug */, 522 | 199241861FAA25E70038D53D /* Release */, 523 | ); 524 | defaultConfigurationIsVisible = 0; 525 | defaultConfigurationName = Release; 526 | }; 527 | 199241871FAA25E70038D53D /* Build configuration list for PBXNativeTarget "PolySample" */ = { 528 | isa = XCConfigurationList; 529 | buildConfigurations = ( 530 | 199241881FAA25E70038D53D /* Debug */, 531 | 199241891FAA25E70038D53D /* Release */, 532 | ); 533 | defaultConfigurationIsVisible = 0; 534 | defaultConfigurationName = Release; 535 | }; 536 | 1992418A1FAA25E70038D53D /* Build configuration list for PBXNativeTarget "PolySampleTests" */ = { 537 | isa = XCConfigurationList; 538 | buildConfigurations = ( 539 | 1992418B1FAA25E70038D53D /* Debug */, 540 | 1992418C1FAA25E70038D53D /* Release */, 541 | ); 542 | defaultConfigurationIsVisible = 0; 543 | defaultConfigurationName = Release; 544 | }; 545 | 1992418D1FAA25E70038D53D /* Build configuration list for PBXNativeTarget "PolySampleUITests" */ = { 546 | isa = XCConfigurationList; 547 | buildConfigurations = ( 548 | 1992418E1FAA25E70038D53D /* Debug */, 549 | 1992418F1FAA25E70038D53D /* Release */, 550 | ); 551 | defaultConfigurationIsVisible = 0; 552 | defaultConfigurationName = Release; 553 | }; 554 | /* End XCConfigurationList section */ 555 | }; 556 | rootObject = 199241511FAA25E60038D53D /* Project object */; 557 | } 558 | -------------------------------------------------------------------------------- /ARKit/PolySample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ARKit/PolySample.xcodeproj/project.xcworkspace/xcuserdata/nirav.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlevr/poly-sample-ios/e2e05f254e83132da65235d102ba7c61e0161b4a/ARKit/PolySample.xcodeproj/project.xcworkspace/xcuserdata/nirav.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ARKit/PolySample.xcodeproj/xcuserdata/nirav.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 24 | 36 | 37 | 38 | 40 | 52 | 53 | 54 | 56 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /ARKit/PolySample.xcodeproj/xcuserdata/nirav.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | PolySample.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /ARKit/PolySample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface AppDelegate : UIResponder 18 | 19 | @property (strong, nonatomic) UIWindow *window; 20 | 21 | 22 | @end 23 | 24 | -------------------------------------------------------------------------------- /ARKit/PolySample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "AppDelegate.h" 16 | 17 | @interface AppDelegate () 18 | 19 | @end 20 | 21 | @implementation AppDelegate 22 | 23 | 24 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 25 | // Override point for customization after application launch. 26 | return YES; 27 | } 28 | 29 | 30 | - (void)applicationWillResignActive:(UIApplication *)application { 31 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 32 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 33 | } 34 | 35 | 36 | - (void)applicationDidEnterBackground:(UIApplication *)application { 37 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 38 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 39 | } 40 | 41 | 42 | - (void)applicationWillEnterForeground:(UIApplication *)application { 43 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 44 | } 45 | 46 | 47 | - (void)applicationDidBecomeActive:(UIApplication *)application { 48 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 49 | } 50 | 51 | 52 | - (void)applicationWillTerminate:(UIApplication *)application { 53 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 54 | } 55 | 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /ARKit/PolySample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /ARKit/PolySample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /ARKit/PolySample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ARKit/PolySample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | NSCameraUsageDescription 24 | This application will use the camera for Augmented Reality. 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | arkit 33 | 34 | UIStatusBarHidden 35 | 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /ARKit/PolySample/ViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | #import 17 | #import 18 | 19 | @interface ViewController : UIViewController 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ARKit/PolySample/ViewController.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "ViewController.h" 16 | #import 17 | #import 18 | #import 19 | 20 | // IMPORTANT: replace this with your project's API key. 21 | static NSString * const POLY_API_KEY = @"YOUR API KEY"; 22 | static NSString * const POLY_BASE_GET_ASSET_URL = @"https://poly.googleapis.com/v1/assets"; 23 | static NSString * const POLY_ASSET_ID = @"5vbJ5vildOq"; 24 | 25 | @interface ViewController () 26 | 27 | @property (nonatomic, strong) IBOutlet ARSCNView *sceneView; 28 | 29 | // A string of web URLs of files to download locally. 30 | @property (nonatomic, strong) NSMutableArray *fileURLsToDownload; 31 | 32 | // Local path to obj file. 33 | @property (nonatomic, strong) NSURL *objPathURL; 34 | 35 | // Local path to mtl file 36 | @property (nonatomic, strong) NSURL *mtlPathURL; 37 | 38 | // Keep track of total number of files downloaded. 39 | @property (nonatomic) NSInteger totalFilesDownloaded; 40 | 41 | @end 42 | 43 | @implementation ViewController 44 | 45 | - (void)viewDidLoad { 46 | [super viewDidLoad]; 47 | 48 | // Set the view's delegate 49 | self.sceneView.delegate = self; 50 | 51 | // Show statistics such as fps and timing information 52 | self.sceneView.showsStatistics = YES; 53 | 54 | // Set the view's delegate. We don't make a lot of use of that now; if we did plane detection, 55 | // though, this is how we'd get notified about events from ARKit. 56 | self.sceneView.delegate = self; 57 | 58 | // Provide some nice defaults to the scene. 59 | self.sceneView.autoenablesDefaultLighting = YES; 60 | self.sceneView.automaticallyUpdatesLighting = YES; 61 | 62 | // Set total files downloaded to zero. 63 | self.totalFilesDownloaded = 0; 64 | 65 | // Get our json from poly API. 66 | [self getObjectFromPoly]; 67 | 68 | // Download necessary files. 69 | [self downloadFiles]; 70 | } 71 | 72 | - (void)viewWillAppear:(BOOL)animated { 73 | [super viewWillAppear:animated]; 74 | 75 | // Create a session configuration 76 | ARWorldTrackingConfiguration *configuration = [ARWorldTrackingConfiguration new]; 77 | 78 | // Run the view's session 79 | [self.sceneView.session runWithConfiguration:configuration]; 80 | } 81 | 82 | - (void)viewWillDisappear:(BOOL)animated { 83 | [super viewWillDisappear:animated]; 84 | 85 | // Pause the view's session 86 | [self.sceneView.session pause]; 87 | } 88 | 89 | - (void)getObjectFromPoly { 90 | self.fileURLsToDownload = [NSMutableArray array]; 91 | 92 | NSString *polyURLWithKey = [NSString stringWithFormat:@"%@/%@?key=%@", POLY_BASE_GET_ASSET_URL, POLY_ASSET_ID , POLY_API_KEY]; 93 | NSURL *polyURL = [NSURL URLWithString:polyURLWithKey]; 94 | NSError *error; 95 | NSData *data = [NSData dataWithContentsOfURL:polyURL]; 96 | NSMutableArray *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; 97 | 98 | if (!error) { 99 | // If there are no errors, parse our json to retrieve URLs to download. 100 | NSMutableArray *formats = [json valueForKey:@"formats"]; 101 | NSMutableDictionary *format = [formats objectAtIndex:0]; 102 | NSMutableDictionary *root = [format valueForKey:@"root"]; 103 | NSMutableArray *resources = [format valueForKey:@"resources"]; 104 | NSMutableDictionary *resource = [resources objectAtIndex:0]; 105 | 106 | [self.fileURLsToDownload addObject:[root valueForKey:@"url"]]; 107 | [self.fileURLsToDownload addObject:[resource valueForKey:@"url"]]; 108 | 109 | } else { 110 | NSLog(@"Failed to connect to Poly. %@", [error localizedDescription]); 111 | } 112 | } 113 | 114 | - (void)downloadFiles { 115 | // Async download files. 116 | NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; 117 | NSURLSession *session = [NSURLSession sessionWithConfiguration:configuration delegate:self delegateQueue:[NSOperationQueue mainQueue]]; 118 | for (NSString *fileURL in self.fileURLsToDownload) { 119 | NSURL *url = [NSURL URLWithString:fileURL]; 120 | NSURLSessionTask *downloadTask = [session downloadTaskWithURL:url]; 121 | [downloadTask resume]; 122 | } 123 | } 124 | 125 | #pragma mark - NSURLSessionDownloadDelegate 126 | 127 | - (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didFinishDownloadingToURL:(NSURL *)location { 128 | NSString *documentsPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0]; 129 | NSString *finalPath = [documentsPath stringByAppendingPathComponent:[[[downloadTask originalRequest] URL] lastPathComponent]]; 130 | NSFileManager *fileManager = [NSFileManager defaultManager]; 131 | 132 | BOOL success; 133 | NSError *error; 134 | if ([fileManager fileExistsAtPath:finalPath]) { 135 | success = [fileManager removeItemAtPath:finalPath error:&error]; 136 | NSAssert(success, @"removeItemAtPath error: %@", error); 137 | } 138 | 139 | NSURL *finalPathURL = [NSURL fileURLWithPath:finalPath]; 140 | success = [fileManager moveItemAtURL:location toURL:finalPathURL error:&error]; 141 | 142 | if (success) { 143 | self.totalFilesDownloaded++; 144 | if ([[finalPathURL lastPathComponent] containsString:@"obj"]) { 145 | self.objPathURL = finalPathURL; 146 | } else if ([[finalPathURL lastPathComponent] containsString:@"mtl"]) { 147 | self.mtlPathURL = finalPathURL; 148 | } 149 | 150 | // If we've downloaded both files, let's add the asset to our scene. 151 | if (self.totalFilesDownloaded == 2) { 152 | [self loadObjectToScene]; 153 | } 154 | 155 | NSAssert(success, @"moveItemAtURL error: %@", error); 156 | } else { 157 | NSLog(@"Failed to download file. %@", [error localizedDescription]); 158 | } 159 | } 160 | 161 | - (void)loadObjectToScene { 162 | MDLAsset *mdlAsset = [[MDLAsset alloc] initWithURL:self.objPathURL]; 163 | [mdlAsset loadTextures]; 164 | SCNNode *node = [SCNNode nodeWithMDLObject:[mdlAsset objectAtIndex:0]]; 165 | node.scale = SCNVector3Make(.15, .15, .15); 166 | node.position = SCNVector3Make(0, -.2, -.8); 167 | 168 | SCNAction *rotate = 169 | [SCNAction repeatActionForever:[SCNAction rotateByAngle:M_PI aroundAxis:SCNVector3Make(0, 1, 0) duration:3]]; 170 | [node runAction:rotate]; 171 | 172 | [self.sceneView.scene.rootNode addChildNode:node]; 173 | } 174 | 175 | @end 176 | -------------------------------------------------------------------------------- /ARKit/PolySample/main.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | #import "AppDelegate.h" 17 | 18 | int main(int argc, char * argv[]) { 19 | @autoreleasepool { 20 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ARKit/PolySampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ARKit/PolySampleTests/PolySampleTests.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface PolySampleTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation PolySampleTests 22 | 23 | - (void)setUp { 24 | [super setUp]; 25 | // Put setup code here. This method is called before the invocation of each test method in the class. 26 | } 27 | 28 | - (void)tearDown { 29 | // Put teardown code here. This method is called after the invocation of each test method in the class. 30 | [super tearDown]; 31 | } 32 | 33 | - (void)testExample { 34 | // This is an example of a functional test case. 35 | // Use XCTAssert and related functions to verify your tests produce the correct results. 36 | } 37 | 38 | - (void)testPerformanceExample { 39 | // This is an example of a performance test case. 40 | [self measureBlock:^{ 41 | // Put the code you want to measure the time of here. 42 | }]; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ARKit/PolySampleUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ARKit/PolySampleUITests/PolySampleUITests.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface PolySampleUITests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation PolySampleUITests 22 | 23 | - (void)setUp { 24 | [super setUp]; 25 | 26 | // Put setup code here. This method is called before the invocation of each test method in the class. 27 | 28 | // In UI tests it is usually best to stop immediately when a failure occurs. 29 | self.continueAfterFailure = NO; 30 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 31 | [[[XCUIApplication alloc] init] launch]; 32 | 33 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 34 | } 35 | 36 | - (void)tearDown { 37 | // Put teardown code here. This method is called after the invocation of each test method in the class. 38 | [super tearDown]; 39 | } 40 | 41 | - (void)testExample { 42 | // Use recording to get started writing UI tests. 43 | // Use XCTAssert and related functions to verify your tests produce the correct results. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | We do not currently accept pull requests. 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 5 | 1. Definitions. 6 | "License" shall mean the terms and conditions for use, reproduction, 7 | and distribution as defined by Sections 1 through 9 of this document. 8 | "Licensor" shall mean the copyright owner or entity authorized by 9 | the copyright owner that is granting the License. 10 | "Legal Entity" shall mean the union of the acting entity and all 11 | other entities that control, are controlled by, or are under common 12 | control with that entity. For the purposes of this definition, 13 | "control" means (i) the power, direct or indirect, to cause the 14 | direction or management of such entity, whether by contract or 15 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 16 | outstanding shares, or (iii) beneficial ownership of such entity. 17 | "You" (or "Your") shall mean an individual or Legal Entity 18 | exercising permissions granted by this License. 19 | "Source" form shall mean the preferred form for making modifications, 20 | including but not limited to software source code, documentation 21 | source, and configuration files. 22 | "Object" form shall mean any form resulting from mechanical 23 | transformation or translation of a Source form, including but 24 | not limited to compiled object code, generated documentation, 25 | and conversions to other media types. 26 | "Work" shall mean the work of authorship, whether in Source or 27 | Object form, made available under the License, as indicated by a 28 | copyright notice that is included in or attached to the work 29 | (an example is provided in the Appendix below). 30 | "Derivative Works" shall mean any work, whether in Source or Object 31 | form, that is based on (or derived from) the Work and for which the 32 | editorial revisions, annotations, elaborations, or other modifications 33 | represent, as a whole, an original work of authorship. For the purposes 34 | of this License, Derivative Works shall not include works that remain 35 | separable from, or merely link (or bind by name) to the interfaces of, 36 | the Work and Derivative Works thereof. 37 | "Contribution" shall mean any work of authorship, including 38 | the original version of the Work and any modifications or additions 39 | to that Work or Derivative Works thereof, that is intentionally 40 | submitted to Licensor for inclusion in the Work by the copyright owner 41 | or by an individual or Legal Entity authorized to submit on behalf of 42 | the copyright owner. For the purposes of this definition, "submitted" 43 | means any form of electronic, verbal, or written communication sent 44 | to the Licensor or its representatives, including but not limited to 45 | communication on electronic mailing lists, source code control systems, 46 | and issue tracking systems that are managed by, or on behalf of, the 47 | Licensor for the purpose of discussing and improving the Work, but 48 | excluding communication that is conspicuously marked or otherwise 49 | designated in writing by the copyright owner as "Not a Contribution." 50 | "Contributor" shall mean Licensor and any individual or Legal Entity 51 | on behalf of whom a Contribution has been received by Licensor and 52 | subsequently incorporated within the Work. 53 | 2. Grant of Copyright License. Subject to the terms and conditions of 54 | this License, each Contributor hereby grants to You a perpetual, 55 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 56 | copyright license to reproduce, prepare Derivative Works of, 57 | publicly display, publicly perform, sublicense, and distribute the 58 | Work and such Derivative Works in Source or Object form. 59 | 3. Grant of Patent License. Subject to the terms and conditions of 60 | this License, each Contributor hereby grants to You a perpetual, 61 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 62 | (except as stated in this section) patent license to make, have made, 63 | use, offer to sell, sell, import, and otherwise transfer the Work, 64 | where such license applies only to those patent claims licensable 65 | by such Contributor that are necessarily infringed by their 66 | Contribution(s) alone or by combination of their Contribution(s) 67 | with the Work to which such Contribution(s) was submitted. If You 68 | institute patent litigation against any entity (including a 69 | cross-claim or counterclaim in a lawsuit) alleging that the Work 70 | or a Contribution incorporated within the Work constitutes direct 71 | or contributory patent infringement, then any patent licenses 72 | granted to You under this License for that Work shall terminate 73 | as of the date such litigation is filed. 74 | 4. Redistribution. You may reproduce and distribute copies of the 75 | Work or Derivative Works thereof in any medium, with or without 76 | modifications, and in Source or Object form, provided that You 77 | meet the following conditions: 78 | (a) You must give any other recipients of the Work or 79 | Derivative Works a copy of this License; and 80 | (b) You must cause any modified files to carry prominent notices 81 | stating that You changed the files; and 82 | (c) You must retain, in the Source form of any Derivative Works 83 | that You distribute, all copyright, patent, trademark, and 84 | attribution notices from the Source form of the Work, 85 | excluding those notices that do not pertain to any part of 86 | the Derivative Works; and 87 | (d) If the Work includes a "NOTICE" text file as part of its 88 | distribution, then any Derivative Works that You distribute must 89 | include a readable copy of the attribution notices contained 90 | within such NOTICE file, excluding those notices that do not 91 | pertain to any part of the Derivative Works, in at least one 92 | of the following places: within a NOTICE text file distributed 93 | as part of the Derivative Works; within the Source form or 94 | documentation, if provided along with the Derivative Works; or, 95 | within a display generated by the Derivative Works, if and 96 | wherever such third-party notices normally appear. The contents 97 | of the NOTICE file are for informational purposes only and 98 | do not modify the License. You may add Your own attribution 99 | notices within Derivative Works that You distribute, alongside 100 | or as an addendum to the NOTICE text from the Work, provided 101 | that such additional attribution notices cannot be construed 102 | as modifying the License. 103 | You may add Your own copyright statement to Your modifications and 104 | may provide additional or different license terms and conditions 105 | for use, reproduction, or distribution of Your modifications, or 106 | for any such Derivative Works as a whole, provided Your use, 107 | reproduction, and distribution of the Work otherwise complies with 108 | the conditions stated in this License. 109 | 5. Submission of Contributions. Unless You explicitly state otherwise, 110 | any Contribution intentionally submitted for inclusion in the Work 111 | by You to the Licensor shall be under the terms and conditions of 112 | this License, without any additional terms or conditions. 113 | Notwithstanding the above, nothing herein shall supersede or modify 114 | the terms of any separate license agreement you may have executed 115 | with Licensor regarding such Contributions. 116 | 6. Trademarks. This License does not grant permission to use the trade 117 | names, trademarks, service marks, or product names of the Licensor, 118 | except as required for reasonable and customary use in describing the 119 | origin of the Work and reproducing the content of the NOTICE file. 120 | 7. Disclaimer of Warranty. Unless required by applicable law or 121 | agreed to in writing, Licensor provides the Work (and each 122 | Contributor provides its Contributions) on an "AS IS" BASIS, 123 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 124 | implied, including, without limitation, any warranties or conditions 125 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 126 | PARTICULAR PURPOSE. You are solely responsible for determining the 127 | appropriateness of using or redistributing the Work and assume any 128 | risks associated with Your exercise of permissions under this License. 129 | 8. Limitation of Liability. In no event and under no legal theory, 130 | whether in tort (including negligence), contract, or otherwise, 131 | unless required by applicable law (such as deliberate and grossly 132 | negligent acts) or agreed to in writing, shall any Contributor be 133 | liable to You for damages, including any direct, indirect, special, 134 | incidental, or consequential damages of any character arising as a 135 | result of this License or out of the use or inability to use the 136 | Work (including but not limited to damages for loss of goodwill, 137 | work stoppage, computer failure or malfunction, or any and all 138 | other commercial damages or losses), even if such Contributor 139 | has been advised of the possibility of such damages. 140 | 9. Accepting Warranty or Additional Liability. While redistributing 141 | the Work or Derivative Works thereof, You may choose to offer, 142 | and charge a fee for, acceptance of support, warranty, indemnity, 143 | or other liability obligations and/or rights consistent with this 144 | License. However, in accepting such obligations, You may act only 145 | on Your own behalf and on Your sole responsibility, not on behalf 146 | of any other Contributor, and only if You agree to indemnify, 147 | defend, and hold each Contributor harmless for any liability 148 | incurred by, or claims asserted against, such Contributor by reason 149 | of your accepting any such warranty or additional liability. 150 | END OF TERMS AND CONDITIONS 151 | APPENDIX: How to apply the Apache License to your work. 152 | To apply the Apache License to your work, attach the following 153 | boilerplate notice, with the fields enclosed by brackets "[]" 154 | replaced with your own identifying information. (Don't include 155 | the brackets!) The text should be enclosed in the appropriate 156 | comment syntax for the file format. We also recommend that a 157 | file or class name and description of purpose be included on the 158 | same "printed page" as the copyright notice for easier 159 | identification within third-party archives. 160 | Copyright [yyyy] [name of copyright owner] 161 | Licensed under the Apache License, Version 2.0 (the "License"); 162 | you may not use this file except in compliance with the License. 163 | You may obtain a copy of the License at 164 | http://www.apache.org/licenses/LICENSE-2.0 165 | Unless required by applicable law or agreed to in writing, software 166 | distributed under the License is distributed on an "AS IS" BASIS, 167 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 168 | See the License for the specific language governing permissions and 169 | limitations under the License. 170 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Poly API - Samples for iOS 2 | 3 | Copyright (c) 2017 Google Inc. All rights reserved. 4 | 5 | This is a sample project showing how to invoke the 6 | [Poly API](https://developers.google.com/poly) from 7 | an iOS app. 8 | 9 | It displays a 3D object from Poly using SceneKit & ARKit. 10 | 11 | For more information, including setup instructions, refer to the 12 | [online documentation](https://developers.google.com/poly). 13 | 14 | iOS is a trademark of Apple Inc. 15 | 16 | ## License 17 | 18 | For license information, see the LICENSE file. 19 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1992419E1FAA555D0038D53D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1992419D1FAA555D0038D53D /* AppDelegate.m */; }; 11 | 199241A31FAA555D0038D53D /* GameViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 199241A21FAA555D0038D53D /* GameViewController.m */; }; 12 | 199241A61FAA555D0038D53D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 199241A41FAA555D0038D53D /* Main.storyboard */; }; 13 | 199241A81FAA555D0038D53D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 199241A71FAA555D0038D53D /* Assets.xcassets */; }; 14 | 199241AB1FAA555D0038D53D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 199241A91FAA555D0038D53D /* LaunchScreen.storyboard */; }; 15 | 199241AE1FAA555D0038D53D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 199241AD1FAA555D0038D53D /* main.m */; }; 16 | 199241B81FAA555D0038D53D /* PolySampleSceneKitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 199241B71FAA555D0038D53D /* PolySampleSceneKitTests.m */; }; 17 | 199241C31FAA555D0038D53D /* PolySampleSceneKitUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 199241C21FAA555D0038D53D /* PolySampleSceneKitUITests.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 199241B41FAA555D0038D53D /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 199241911FAA555D0038D53D /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 199241981FAA555D0038D53D; 26 | remoteInfo = PolySampleSceneKit; 27 | }; 28 | 199241BF1FAA555D0038D53D /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 199241911FAA555D0038D53D /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 199241981FAA555D0038D53D; 33 | remoteInfo = PolySampleSceneKit; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 199241991FAA555D0038D53D /* PolySampleSceneKit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PolySampleSceneKit.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 1992419C1FAA555D0038D53D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 40 | 1992419D1FAA555D0038D53D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 41 | 199241A11FAA555D0038D53D /* GameViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GameViewController.h; sourceTree = ""; }; 42 | 199241A21FAA555D0038D53D /* GameViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GameViewController.m; sourceTree = ""; }; 43 | 199241A51FAA555D0038D53D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 44 | 199241A71FAA555D0038D53D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 45 | 199241AA1FAA555D0038D53D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 46 | 199241AC1FAA555D0038D53D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 199241AD1FAA555D0038D53D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 48 | 199241B31FAA555D0038D53D /* PolySampleSceneKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PolySampleSceneKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 199241B71FAA555D0038D53D /* PolySampleSceneKitTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PolySampleSceneKitTests.m; sourceTree = ""; }; 50 | 199241B91FAA555D0038D53D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | 199241BE1FAA555D0038D53D /* PolySampleSceneKitUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PolySampleSceneKitUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 199241C21FAA555D0038D53D /* PolySampleSceneKitUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PolySampleSceneKitUITests.m; sourceTree = ""; }; 53 | 199241C41FAA555D0038D53D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 199241961FAA555D0038D53D /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | 199241B01FAA555D0038D53D /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | 199241BB1FAA555D0038D53D /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | 199241901FAA555D0038D53D = { 82 | isa = PBXGroup; 83 | children = ( 84 | 1992419B1FAA555D0038D53D /* PolySampleSceneKit */, 85 | 199241B61FAA555D0038D53D /* PolySampleSceneKitTests */, 86 | 199241C11FAA555D0038D53D /* PolySampleSceneKitUITests */, 87 | 1992419A1FAA555D0038D53D /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | 1992419A1FAA555D0038D53D /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 199241991FAA555D0038D53D /* PolySampleSceneKit.app */, 95 | 199241B31FAA555D0038D53D /* PolySampleSceneKitTests.xctest */, 96 | 199241BE1FAA555D0038D53D /* PolySampleSceneKitUITests.xctest */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | 1992419B1FAA555D0038D53D /* PolySampleSceneKit */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 1992419C1FAA555D0038D53D /* AppDelegate.h */, 105 | 1992419D1FAA555D0038D53D /* AppDelegate.m */, 106 | 199241A11FAA555D0038D53D /* GameViewController.h */, 107 | 199241A21FAA555D0038D53D /* GameViewController.m */, 108 | 199241A41FAA555D0038D53D /* Main.storyboard */, 109 | 199241A71FAA555D0038D53D /* Assets.xcassets */, 110 | 199241A91FAA555D0038D53D /* LaunchScreen.storyboard */, 111 | 199241AC1FAA555D0038D53D /* Info.plist */, 112 | 199241AD1FAA555D0038D53D /* main.m */, 113 | ); 114 | path = PolySampleSceneKit; 115 | sourceTree = ""; 116 | }; 117 | 199241B61FAA555D0038D53D /* PolySampleSceneKitTests */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 199241B71FAA555D0038D53D /* PolySampleSceneKitTests.m */, 121 | 199241B91FAA555D0038D53D /* Info.plist */, 122 | ); 123 | path = PolySampleSceneKitTests; 124 | sourceTree = ""; 125 | }; 126 | 199241C11FAA555D0038D53D /* PolySampleSceneKitUITests */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 199241C21FAA555D0038D53D /* PolySampleSceneKitUITests.m */, 130 | 199241C41FAA555D0038D53D /* Info.plist */, 131 | ); 132 | path = PolySampleSceneKitUITests; 133 | sourceTree = ""; 134 | }; 135 | /* End PBXGroup section */ 136 | 137 | /* Begin PBXNativeTarget section */ 138 | 199241981FAA555D0038D53D /* PolySampleSceneKit */ = { 139 | isa = PBXNativeTarget; 140 | buildConfigurationList = 199241C71FAA555D0038D53D /* Build configuration list for PBXNativeTarget "PolySampleSceneKit" */; 141 | buildPhases = ( 142 | 199241951FAA555D0038D53D /* Sources */, 143 | 199241961FAA555D0038D53D /* Frameworks */, 144 | 199241971FAA555D0038D53D /* Resources */, 145 | ); 146 | buildRules = ( 147 | ); 148 | dependencies = ( 149 | ); 150 | name = PolySampleSceneKit; 151 | productName = PolySampleSceneKit; 152 | productReference = 199241991FAA555D0038D53D /* PolySampleSceneKit.app */; 153 | productType = "com.apple.product-type.application"; 154 | }; 155 | 199241B21FAA555D0038D53D /* PolySampleSceneKitTests */ = { 156 | isa = PBXNativeTarget; 157 | buildConfigurationList = 199241CA1FAA555D0038D53D /* Build configuration list for PBXNativeTarget "PolySampleSceneKitTests" */; 158 | buildPhases = ( 159 | 199241AF1FAA555D0038D53D /* Sources */, 160 | 199241B01FAA555D0038D53D /* Frameworks */, 161 | 199241B11FAA555D0038D53D /* Resources */, 162 | ); 163 | buildRules = ( 164 | ); 165 | dependencies = ( 166 | 199241B51FAA555D0038D53D /* PBXTargetDependency */, 167 | ); 168 | name = PolySampleSceneKitTests; 169 | productName = PolySampleSceneKitTests; 170 | productReference = 199241B31FAA555D0038D53D /* PolySampleSceneKitTests.xctest */; 171 | productType = "com.apple.product-type.bundle.unit-test"; 172 | }; 173 | 199241BD1FAA555D0038D53D /* PolySampleSceneKitUITests */ = { 174 | isa = PBXNativeTarget; 175 | buildConfigurationList = 199241CD1FAA555D0038D53D /* Build configuration list for PBXNativeTarget "PolySampleSceneKitUITests" */; 176 | buildPhases = ( 177 | 199241BA1FAA555D0038D53D /* Sources */, 178 | 199241BB1FAA555D0038D53D /* Frameworks */, 179 | 199241BC1FAA555D0038D53D /* Resources */, 180 | ); 181 | buildRules = ( 182 | ); 183 | dependencies = ( 184 | 199241C01FAA555D0038D53D /* PBXTargetDependency */, 185 | ); 186 | name = PolySampleSceneKitUITests; 187 | productName = PolySampleSceneKitUITests; 188 | productReference = 199241BE1FAA555D0038D53D /* PolySampleSceneKitUITests.xctest */; 189 | productType = "com.apple.product-type.bundle.ui-testing"; 190 | }; 191 | /* End PBXNativeTarget section */ 192 | 193 | /* Begin PBXProject section */ 194 | 199241911FAA555D0038D53D /* Project object */ = { 195 | isa = PBXProject; 196 | attributes = { 197 | LastUpgradeCheck = 0900; 198 | ORGANIZATIONNAME = "Nirav Savjani"; 199 | TargetAttributes = { 200 | 199241981FAA555D0038D53D = { 201 | CreatedOnToolsVersion = 9.0; 202 | ProvisioningStyle = Automatic; 203 | }; 204 | 199241B21FAA555D0038D53D = { 205 | CreatedOnToolsVersion = 9.0; 206 | ProvisioningStyle = Automatic; 207 | TestTargetID = 199241981FAA555D0038D53D; 208 | }; 209 | 199241BD1FAA555D0038D53D = { 210 | CreatedOnToolsVersion = 9.0; 211 | ProvisioningStyle = Automatic; 212 | TestTargetID = 199241981FAA555D0038D53D; 213 | }; 214 | }; 215 | }; 216 | buildConfigurationList = 199241941FAA555D0038D53D /* Build configuration list for PBXProject "PolySampleSceneKit" */; 217 | compatibilityVersion = "Xcode 8.0"; 218 | developmentRegion = en; 219 | hasScannedForEncodings = 0; 220 | knownRegions = ( 221 | en, 222 | Base, 223 | ); 224 | mainGroup = 199241901FAA555D0038D53D; 225 | productRefGroup = 1992419A1FAA555D0038D53D /* Products */; 226 | projectDirPath = ""; 227 | projectRoot = ""; 228 | targets = ( 229 | 199241981FAA555D0038D53D /* PolySampleSceneKit */, 230 | 199241B21FAA555D0038D53D /* PolySampleSceneKitTests */, 231 | 199241BD1FAA555D0038D53D /* PolySampleSceneKitUITests */, 232 | ); 233 | }; 234 | /* End PBXProject section */ 235 | 236 | /* Begin PBXResourcesBuildPhase section */ 237 | 199241971FAA555D0038D53D /* Resources */ = { 238 | isa = PBXResourcesBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | 199241AB1FAA555D0038D53D /* LaunchScreen.storyboard in Resources */, 242 | 199241A81FAA555D0038D53D /* Assets.xcassets in Resources */, 243 | 199241A61FAA555D0038D53D /* Main.storyboard in Resources */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | 199241B11FAA555D0038D53D /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | 199241BC1FAA555D0038D53D /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXResourcesBuildPhase section */ 262 | 263 | /* Begin PBXSourcesBuildPhase section */ 264 | 199241951FAA555D0038D53D /* Sources */ = { 265 | isa = PBXSourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | 199241A31FAA555D0038D53D /* GameViewController.m in Sources */, 269 | 199241AE1FAA555D0038D53D /* main.m in Sources */, 270 | 1992419E1FAA555D0038D53D /* AppDelegate.m in Sources */, 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | 199241AF1FAA555D0038D53D /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 199241B81FAA555D0038D53D /* PolySampleSceneKitTests.m in Sources */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | 199241BA1FAA555D0038D53D /* Sources */ = { 283 | isa = PBXSourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | 199241C31FAA555D0038D53D /* PolySampleSceneKitUITests.m in Sources */, 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | }; 290 | /* End PBXSourcesBuildPhase section */ 291 | 292 | /* Begin PBXTargetDependency section */ 293 | 199241B51FAA555D0038D53D /* PBXTargetDependency */ = { 294 | isa = PBXTargetDependency; 295 | target = 199241981FAA555D0038D53D /* PolySampleSceneKit */; 296 | targetProxy = 199241B41FAA555D0038D53D /* PBXContainerItemProxy */; 297 | }; 298 | 199241C01FAA555D0038D53D /* PBXTargetDependency */ = { 299 | isa = PBXTargetDependency; 300 | target = 199241981FAA555D0038D53D /* PolySampleSceneKit */; 301 | targetProxy = 199241BF1FAA555D0038D53D /* PBXContainerItemProxy */; 302 | }; 303 | /* End PBXTargetDependency section */ 304 | 305 | /* Begin PBXVariantGroup section */ 306 | 199241A41FAA555D0038D53D /* Main.storyboard */ = { 307 | isa = PBXVariantGroup; 308 | children = ( 309 | 199241A51FAA555D0038D53D /* Base */, 310 | ); 311 | name = Main.storyboard; 312 | sourceTree = ""; 313 | }; 314 | 199241A91FAA555D0038D53D /* LaunchScreen.storyboard */ = { 315 | isa = PBXVariantGroup; 316 | children = ( 317 | 199241AA1FAA555D0038D53D /* Base */, 318 | ); 319 | name = LaunchScreen.storyboard; 320 | sourceTree = ""; 321 | }; 322 | /* End PBXVariantGroup section */ 323 | 324 | /* Begin XCBuildConfiguration section */ 325 | 199241C51FAA555D0038D53D /* Debug */ = { 326 | isa = XCBuildConfiguration; 327 | buildSettings = { 328 | ALWAYS_SEARCH_USER_PATHS = NO; 329 | CLANG_ANALYZER_NONNULL = YES; 330 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 331 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 332 | CLANG_CXX_LIBRARY = "libc++"; 333 | CLANG_ENABLE_MODULES = YES; 334 | CLANG_ENABLE_OBJC_ARC = YES; 335 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 336 | CLANG_WARN_BOOL_CONVERSION = YES; 337 | CLANG_WARN_COMMA = YES; 338 | CLANG_WARN_CONSTANT_CONVERSION = YES; 339 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 340 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 341 | CLANG_WARN_EMPTY_BODY = YES; 342 | CLANG_WARN_ENUM_CONVERSION = YES; 343 | CLANG_WARN_INFINITE_RECURSION = YES; 344 | CLANG_WARN_INT_CONVERSION = YES; 345 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 346 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 347 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 348 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 349 | CLANG_WARN_STRICT_PROTOTYPES = YES; 350 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 351 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 352 | CLANG_WARN_UNREACHABLE_CODE = YES; 353 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 354 | CODE_SIGN_IDENTITY = "iPhone Developer"; 355 | COPY_PHASE_STRIP = NO; 356 | DEBUG_INFORMATION_FORMAT = dwarf; 357 | ENABLE_STRICT_OBJC_MSGSEND = YES; 358 | ENABLE_TESTABILITY = YES; 359 | GCC_C_LANGUAGE_STANDARD = gnu11; 360 | GCC_DYNAMIC_NO_PIC = NO; 361 | GCC_NO_COMMON_BLOCKS = YES; 362 | GCC_OPTIMIZATION_LEVEL = 0; 363 | GCC_PREPROCESSOR_DEFINITIONS = ( 364 | "DEBUG=1", 365 | "$(inherited)", 366 | ); 367 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 368 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 369 | GCC_WARN_UNDECLARED_SELECTOR = YES; 370 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 371 | GCC_WARN_UNUSED_FUNCTION = YES; 372 | GCC_WARN_UNUSED_VARIABLE = YES; 373 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 374 | MTL_ENABLE_DEBUG_INFO = YES; 375 | ONLY_ACTIVE_ARCH = YES; 376 | SDKROOT = iphoneos; 377 | }; 378 | name = Debug; 379 | }; 380 | 199241C61FAA555D0038D53D /* Release */ = { 381 | isa = XCBuildConfiguration; 382 | buildSettings = { 383 | ALWAYS_SEARCH_USER_PATHS = NO; 384 | CLANG_ANALYZER_NONNULL = YES; 385 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 387 | CLANG_CXX_LIBRARY = "libc++"; 388 | CLANG_ENABLE_MODULES = YES; 389 | CLANG_ENABLE_OBJC_ARC = YES; 390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 391 | CLANG_WARN_BOOL_CONVERSION = YES; 392 | CLANG_WARN_COMMA = YES; 393 | CLANG_WARN_CONSTANT_CONVERSION = YES; 394 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 395 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 396 | CLANG_WARN_EMPTY_BODY = YES; 397 | CLANG_WARN_ENUM_CONVERSION = YES; 398 | CLANG_WARN_INFINITE_RECURSION = YES; 399 | CLANG_WARN_INT_CONVERSION = YES; 400 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 401 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 402 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 403 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 404 | CLANG_WARN_STRICT_PROTOTYPES = YES; 405 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 406 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 407 | CLANG_WARN_UNREACHABLE_CODE = YES; 408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 409 | CODE_SIGN_IDENTITY = "iPhone Developer"; 410 | COPY_PHASE_STRIP = NO; 411 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 412 | ENABLE_NS_ASSERTIONS = NO; 413 | ENABLE_STRICT_OBJC_MSGSEND = YES; 414 | GCC_C_LANGUAGE_STANDARD = gnu11; 415 | GCC_NO_COMMON_BLOCKS = YES; 416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 417 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 418 | GCC_WARN_UNDECLARED_SELECTOR = YES; 419 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 420 | GCC_WARN_UNUSED_FUNCTION = YES; 421 | GCC_WARN_UNUSED_VARIABLE = YES; 422 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 423 | MTL_ENABLE_DEBUG_INFO = NO; 424 | SDKROOT = iphoneos; 425 | VALIDATE_PRODUCT = YES; 426 | }; 427 | name = Release; 428 | }; 429 | 199241C81FAA555D0038D53D /* Debug */ = { 430 | isa = XCBuildConfiguration; 431 | buildSettings = { 432 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 433 | CODE_SIGN_STYLE = Automatic; 434 | DEVELOPMENT_TEAM = 8S8L4L2477; 435 | INFOPLIST_FILE = PolySampleSceneKit/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleSceneKit; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | TARGETED_DEVICE_FAMILY = "1,2"; 440 | }; 441 | name = Debug; 442 | }; 443 | 199241C91FAA555D0038D53D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | buildSettings = { 446 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 447 | CODE_SIGN_STYLE = Automatic; 448 | DEVELOPMENT_TEAM = 8S8L4L2477; 449 | INFOPLIST_FILE = PolySampleSceneKit/Info.plist; 450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 451 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleSceneKit; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | TARGETED_DEVICE_FAMILY = "1,2"; 454 | }; 455 | name = Release; 456 | }; 457 | 199241CB1FAA555D0038D53D /* Debug */ = { 458 | isa = XCBuildConfiguration; 459 | buildSettings = { 460 | BUNDLE_LOADER = "$(TEST_HOST)"; 461 | CODE_SIGN_STYLE = Automatic; 462 | DEVELOPMENT_TEAM = 8S8L4L2477; 463 | INFOPLIST_FILE = PolySampleSceneKitTests/Info.plist; 464 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 465 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleSceneKitTests; 466 | PRODUCT_NAME = "$(TARGET_NAME)"; 467 | TARGETED_DEVICE_FAMILY = "1,2"; 468 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PolySampleSceneKit.app/PolySampleSceneKit"; 469 | }; 470 | name = Debug; 471 | }; 472 | 199241CC1FAA555D0038D53D /* Release */ = { 473 | isa = XCBuildConfiguration; 474 | buildSettings = { 475 | BUNDLE_LOADER = "$(TEST_HOST)"; 476 | CODE_SIGN_STYLE = Automatic; 477 | DEVELOPMENT_TEAM = 8S8L4L2477; 478 | INFOPLIST_FILE = PolySampleSceneKitTests/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 480 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleSceneKitTests; 481 | PRODUCT_NAME = "$(TARGET_NAME)"; 482 | TARGETED_DEVICE_FAMILY = "1,2"; 483 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PolySampleSceneKit.app/PolySampleSceneKit"; 484 | }; 485 | name = Release; 486 | }; 487 | 199241CE1FAA555D0038D53D /* Debug */ = { 488 | isa = XCBuildConfiguration; 489 | buildSettings = { 490 | CODE_SIGN_STYLE = Automatic; 491 | DEVELOPMENT_TEAM = 8S8L4L2477; 492 | INFOPLIST_FILE = PolySampleSceneKitUITests/Info.plist; 493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 494 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleSceneKitUITests; 495 | PRODUCT_NAME = "$(TARGET_NAME)"; 496 | TARGETED_DEVICE_FAMILY = "1,2"; 497 | TEST_TARGET_NAME = PolySampleSceneKit; 498 | }; 499 | name = Debug; 500 | }; 501 | 199241CF1FAA555D0038D53D /* Release */ = { 502 | isa = XCBuildConfiguration; 503 | buildSettings = { 504 | CODE_SIGN_STYLE = Automatic; 505 | DEVELOPMENT_TEAM = 8S8L4L2477; 506 | INFOPLIST_FILE = PolySampleSceneKitUITests/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 508 | PRODUCT_BUNDLE_IDENTIFIER = com.tinkertrust.PolySampleSceneKitUITests; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | TARGETED_DEVICE_FAMILY = "1,2"; 511 | TEST_TARGET_NAME = PolySampleSceneKit; 512 | }; 513 | name = Release; 514 | }; 515 | /* End XCBuildConfiguration section */ 516 | 517 | /* Begin XCConfigurationList section */ 518 | 199241941FAA555D0038D53D /* Build configuration list for PBXProject "PolySampleSceneKit" */ = { 519 | isa = XCConfigurationList; 520 | buildConfigurations = ( 521 | 199241C51FAA555D0038D53D /* Debug */, 522 | 199241C61FAA555D0038D53D /* Release */, 523 | ); 524 | defaultConfigurationIsVisible = 0; 525 | defaultConfigurationName = Release; 526 | }; 527 | 199241C71FAA555D0038D53D /* Build configuration list for PBXNativeTarget "PolySampleSceneKit" */ = { 528 | isa = XCConfigurationList; 529 | buildConfigurations = ( 530 | 199241C81FAA555D0038D53D /* Debug */, 531 | 199241C91FAA555D0038D53D /* Release */, 532 | ); 533 | defaultConfigurationIsVisible = 0; 534 | defaultConfigurationName = Release; 535 | }; 536 | 199241CA1FAA555D0038D53D /* Build configuration list for PBXNativeTarget "PolySampleSceneKitTests" */ = { 537 | isa = XCConfigurationList; 538 | buildConfigurations = ( 539 | 199241CB1FAA555D0038D53D /* Debug */, 540 | 199241CC1FAA555D0038D53D /* Release */, 541 | ); 542 | defaultConfigurationIsVisible = 0; 543 | defaultConfigurationName = Release; 544 | }; 545 | 199241CD1FAA555D0038D53D /* Build configuration list for PBXNativeTarget "PolySampleSceneKitUITests" */ = { 546 | isa = XCConfigurationList; 547 | buildConfigurations = ( 548 | 199241CE1FAA555D0038D53D /* Debug */, 549 | 199241CF1FAA555D0038D53D /* Release */, 550 | ); 551 | defaultConfigurationIsVisible = 0; 552 | defaultConfigurationName = Release; 553 | }; 554 | /* End XCConfigurationList section */ 555 | }; 556 | rootObject = 199241911FAA555D0038D53D /* Project object */; 557 | } 558 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit.xcodeproj/project.xcworkspace/xcuserdata/nirav.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlevr/poly-sample-ios/e2e05f254e83132da65235d102ba7c61e0161b4a/SceneKit/PolySampleSceneKit.xcodeproj/project.xcworkspace/xcuserdata/nirav.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit.xcodeproj/xcuserdata/nirav.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | PolySampleSceneKit.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface AppDelegate : UIResponder 18 | 19 | @property (strong, nonatomic) UIWindow *window; 20 | 21 | 22 | @end 23 | 24 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "AppDelegate.h" 16 | 17 | @interface AppDelegate () 18 | 19 | @end 20 | 21 | @implementation AppDelegate 22 | 23 | 24 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 25 | // Override point for customization after application launch. 26 | return YES; 27 | } 28 | 29 | 30 | - (void)applicationWillResignActive:(UIApplication *)application { 31 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 32 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 33 | } 34 | 35 | 36 | - (void)applicationDidEnterBackground:(UIApplication *)application { 37 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 38 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 39 | } 40 | 41 | 42 | - (void)applicationWillEnterForeground:(UIApplication *)application { 43 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 44 | } 45 | 46 | 47 | - (void)applicationDidBecomeActive:(UIApplication *)application { 48 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 49 | } 50 | 51 | 52 | - (void)applicationWillTerminate:(UIApplication *)application { 53 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 54 | } 55 | 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit/GameViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | #import 17 | 18 | @interface GameViewController : UIViewController 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit/GameViewController.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import "GameViewController.h" 16 | #import 17 | #import 18 | #import 19 | 20 | // IMPORTANT: replace this with your project's API key. 21 | static NSString * const POLY_API_KEY = @"YOUR KEY HERE"; 22 | static NSString * const POLY_BASE_GET_ASSET_URL = @"https://poly.googleapis.com/v1/assets"; 23 | static NSString * const POLY_ASSET_ID = @"5vbJ5vildOq"; 24 | 25 | @interface GameViewController () 26 | 27 | // A string of web URLs of files to download locally. 28 | @property (nonatomic, strong) NSMutableArray *fileURLsToDownload; 29 | 30 | // Local path to obj file. 31 | @property (nonatomic, strong) NSURL *objPathURL; 32 | 33 | // Local path to mtl file 34 | @property (nonatomic, strong) NSURL *mtlPathURL; 35 | 36 | // Keep track of total number of files downloaded. 37 | @property (nonatomic) NSInteger totalFilesDownloaded; 38 | 39 | @end 40 | 41 | @implementation GameViewController 42 | 43 | - (void)viewDidLoad { 44 | [super viewDidLoad]; 45 | // Set total files downloaded to zero. 46 | self.totalFilesDownloaded = 0; 47 | 48 | // Get our json from poly API. 49 | [self getObjectFromPoly]; 50 | 51 | // Download necessary files. 52 | [self downloadFiles]; 53 | } 54 | 55 | - (BOOL)shouldAutorotate { 56 | return YES; 57 | } 58 | 59 | - (BOOL)prefersStatusBarHidden { 60 | return YES; 61 | } 62 | 63 | - (UIInterfaceOrientationMask)supportedInterfaceOrientations { 64 | if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { 65 | return UIInterfaceOrientationMaskAllButUpsideDown; 66 | } else { 67 | return UIInterfaceOrientationMaskAll; 68 | } 69 | } 70 | 71 | - (void)getObjectFromPoly { 72 | self.fileURLsToDownload = [NSMutableArray array]; 73 | 74 | NSString *polyURLWithKey = [NSString stringWithFormat:@"%@/%@?key=%@", POLY_BASE_GET_ASSET_URL, POLY_ASSET_ID , POLY_API_KEY]; 75 | NSURL *polyURL = [NSURL URLWithString:polyURLWithKey]; 76 | NSError *error; 77 | NSData *data = [NSData dataWithContentsOfURL:polyURL]; 78 | NSMutableArray *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; 79 | if (!error) { 80 | // If there are no errors, parse our json to retrieve URLs to download. 81 | NSMutableArray *formats = [json valueForKey:@"formats"]; 82 | NSMutableDictionary *format = [formats objectAtIndex:0]; 83 | NSMutableDictionary *root = [format valueForKey:@"root"]; 84 | NSMutableArray *resources = [format valueForKey:@"resources"]; 85 | NSMutableDictionary *resource = [resources objectAtIndex:0]; 86 | 87 | [self.fileURLsToDownload addObject:[root valueForKey:@"url"]]; 88 | [self.fileURLsToDownload addObject:[resource valueForKey:@"url"]]; 89 | 90 | } else { 91 | NSLog(@"Failed to connect to Poly. %@", [error localizedDescription]); 92 | } 93 | } 94 | 95 | - (void)downloadFiles { 96 | // Async download files. 97 | NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; 98 | NSURLSession *session = [NSURLSession sessionWithConfiguration:configuration delegate:self delegateQueue:[NSOperationQueue mainQueue]]; 99 | for (NSString *fileURL in self.fileURLsToDownload) { 100 | NSURL *url = [NSURL URLWithString:fileURL]; 101 | NSURLSessionTask *downloadTask = [session downloadTaskWithURL:url]; 102 | [downloadTask resume]; 103 | } 104 | } 105 | 106 | #pragma mark - NSURLSessionDownloadDelegate 107 | 108 | - (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didFinishDownloadingToURL:(NSURL *)location { 109 | NSString *documentsPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0]; 110 | NSString *finalPath = [documentsPath stringByAppendingPathComponent:[[[downloadTask originalRequest] URL] lastPathComponent]]; 111 | NSFileManager *fileManager = [NSFileManager defaultManager]; 112 | 113 | BOOL success; 114 | NSError *error; 115 | if ([fileManager fileExistsAtPath:finalPath]) { 116 | success = [fileManager removeItemAtPath:finalPath error:&error]; 117 | NSAssert(success, @"removeItemAtPath error: %@", error); 118 | } 119 | 120 | NSURL *finalPathURL = [NSURL fileURLWithPath:finalPath]; 121 | success = [fileManager moveItemAtURL:location toURL:finalPathURL error:&error]; 122 | 123 | if (success) { 124 | self.totalFilesDownloaded++; 125 | if ([[finalPathURL lastPathComponent] containsString:@"obj"]) { 126 | self.objPathURL = finalPathURL; 127 | } else if ([[finalPathURL lastPathComponent] containsString:@"mtl"]) { 128 | self.mtlPathURL = finalPathURL; 129 | } 130 | 131 | // If we've downloaded both files, let's add them to our scene. 132 | if (self.totalFilesDownloaded == 2) { 133 | [self loadObjectToScene]; 134 | } 135 | 136 | NSAssert(success, @"moveItemAtURL error: %@", error); 137 | } else { 138 | NSLog(@"Failed to download file. %@", [error localizedDescription]); 139 | } 140 | } 141 | 142 | - (void)loadObjectToScene { 143 | // create a new scene 144 | SCNScene *scene = [SCNScene scene]; 145 | 146 | // create and add a camera to the scene 147 | SCNNode *cameraNode = [SCNNode node]; 148 | cameraNode.camera = [SCNCamera camera]; 149 | [scene.rootNode addChildNode:cameraNode]; 150 | 151 | // place the camera 152 | cameraNode.position = SCNVector3Make(0, 0, 15); 153 | 154 | // create and add a light to the scene 155 | SCNNode *lightNode = [SCNNode node]; 156 | lightNode.light = [SCNLight light]; 157 | lightNode.light.type = SCNLightTypeOmni; 158 | lightNode.position = SCNVector3Make(0, 10, 10); 159 | [scene.rootNode addChildNode:lightNode]; 160 | 161 | // create and add an ambient light to the scene 162 | SCNNode *ambientLightNode = [SCNNode node]; 163 | ambientLightNode.light = [SCNLight light]; 164 | ambientLightNode.light.type = SCNLightTypeAmbient; 165 | ambientLightNode.light.color = [UIColor darkGrayColor]; 166 | [scene.rootNode addChildNode:ambientLightNode]; 167 | 168 | // retrieve the SCNView 169 | SCNView *scnView = (SCNView *)self.view; 170 | 171 | // set the scene to the view 172 | scnView.scene = scene; 173 | 174 | // allows the user to manipulate the camera 175 | scnView.allowsCameraControl = YES; 176 | 177 | // show statistics such as fps and timing information 178 | scnView.showsStatistics = YES; 179 | 180 | // configure the view 181 | scnView.backgroundColor = [UIColor blackColor]; 182 | 183 | MDLAsset *mdlAsset = [[MDLAsset alloc] initWithURL:self.objPathURL]; 184 | [mdlAsset loadTextures]; 185 | SCNNode *node = [SCNNode nodeWithMDLObject:[mdlAsset objectAtIndex:0]]; 186 | node.scale = SCNVector3Make(2, 2, 2); 187 | node.position = SCNVector3Make(0, 0, 0); 188 | 189 | SCNAction *rotate = 190 | [SCNAction repeatActionForever:[SCNAction rotateByAngle:M_PI aroundAxis:SCNVector3Make(0, 1, 0) duration:3]]; 191 | [node runAction:rotate]; 192 | 193 | [scene.rootNode addChildNode:node]; 194 | } 195 | 196 | @end 197 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UIStatusBarHidden 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKit/main.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | #import "AppDelegate.h" 17 | 18 | int main(int argc, char * argv[]) { 19 | @autoreleasepool { 20 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKitTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKitTests/PolySampleSceneKitTests.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface PolySampleSceneKitTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation PolySampleSceneKitTests 22 | 23 | - (void)setUp { 24 | [super setUp]; 25 | // Put setup code here. This method is called before the invocation of each test method in the class. 26 | } 27 | 28 | - (void)tearDown { 29 | // Put teardown code here. This method is called after the invocation of each test method in the class. 30 | [super tearDown]; 31 | } 32 | 33 | - (void)testExample { 34 | // This is an example of a functional test case. 35 | // Use XCTAssert and related functions to verify your tests produce the correct results. 36 | } 37 | 38 | - (void)testPerformanceExample { 39 | // This is an example of a performance test case. 40 | [self measureBlock:^{ 41 | // Put the code you want to measure the time of here. 42 | }]; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKitUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /SceneKit/PolySampleSceneKitUITests/PolySampleSceneKitUITests.m: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #import 16 | 17 | @interface PolySampleSceneKitUITests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation PolySampleSceneKitUITests 22 | 23 | - (void)setUp { 24 | [super setUp]; 25 | 26 | // Put setup code here. This method is called before the invocation of each test method in the class. 27 | 28 | // In UI tests it is usually best to stop immediately when a failure occurs. 29 | self.continueAfterFailure = NO; 30 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 31 | [[[XCUIApplication alloc] init] launch]; 32 | 33 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 34 | } 35 | 36 | - (void)tearDown { 37 | // Put teardown code here. This method is called after the invocation of each test method in the class. 38 | [super tearDown]; 39 | } 40 | 41 | - (void)testExample { 42 | // Use recording to get started writing UI tests. 43 | // Use XCTAssert and related functions to verify your tests produce the correct results. 44 | } 45 | 46 | @end 47 | --------------------------------------------------------------------------------