@webspatial/builder 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/lib/Cli.d.ts +3 -0
  4. package/dist/lib/Cli.js +1 -0
  5. package/dist/lib/cmds/build.d.ts +4 -0
  6. package/dist/lib/cmds/build.js +1 -0
  7. package/dist/lib/cmds/check.d.ts +3 -0
  8. package/dist/lib/cmds/check.js +1 -0
  9. package/dist/lib/cmds/help.d.ts +3 -0
  10. package/dist/lib/cmds/help.js +1 -0
  11. package/dist/lib/cmds/version.d.ts +2 -0
  12. package/dist/lib/cmds/version.js +1 -0
  13. package/dist/lib/pwa/config.d.ts +7 -0
  14. package/dist/lib/pwa/config.js +1 -0
  15. package/dist/lib/pwa/index.d.ts +16 -0
  16. package/dist/lib/pwa/index.js +1 -0
  17. package/dist/lib/pwa/validate.d.ts +4 -0
  18. package/dist/lib/pwa/validate.js +1 -0
  19. package/dist/lib/resource/file.d.ts +2 -0
  20. package/dist/lib/resource/file.js +1 -0
  21. package/dist/lib/resource/imageHelper.d.ts +7 -0
  22. package/dist/lib/resource/imageHelper.js +1 -0
  23. package/dist/lib/resource/index.d.ts +13 -0
  24. package/dist/lib/resource/index.js +1 -0
  25. package/dist/lib/resource/load.d.ts +6 -0
  26. package/dist/lib/resource/load.js +1 -0
  27. package/dist/lib/utils/CustomError.d.ts +13 -0
  28. package/dist/lib/utils/CustomError.js +1 -0
  29. package/dist/lib/utils/FetchUtils-1.d.ts +12 -0
  30. package/dist/lib/utils/FetchUtils-1.js +1 -0
  31. package/dist/lib/utils/Log.d.ts +88 -0
  32. package/dist/lib/utils/Log.js +1 -0
  33. package/dist/lib/utils/fetch.d.ts +5 -0
  34. package/dist/lib/utils/fetch.js +1 -0
  35. package/dist/lib/utils/messages.d.ts +50 -0
  36. package/dist/lib/utils/messages.js +1 -0
  37. package/dist/lib/utils/utils.d.ts +1 -0
  38. package/dist/lib/utils/utils.js +1 -0
  39. package/dist/lib/xcode/index.d.ts +5 -0
  40. package/dist/lib/xcode/index.js +1 -0
  41. package/dist/lib/xcode/manifestSwiftTemplate.d.ts +1 -0
  42. package/dist/lib/xcode/manifestSwiftTemplate.js +1 -0
  43. package/dist/lib/xcode/xcodebuild.d.ts +16 -0
  44. package/dist/lib/xcode/xcodebuild.js +1 -0
  45. package/dist/lib/xcode/xcodeproject.d.ts +11 -0
  46. package/dist/lib/xcode/xcodeproject.js +1 -0
  47. package/dist/lib/xcode/xcrun.d.ts +7 -0
  48. package/dist/lib/xcode/xcrun.js +1 -0
  49. package/package.json +2 -1
  50. package/template/visionOSApp/Packages/RealityKitContent/.build/workspace-state.json +7 -0
  51. package/template/visionOSApp/Packages/RealityKitContent/.swiftpm/xcode/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  52. package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/ProjectData/main.json +11 -0
  53. package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/SceneMetadataList.json +112 -0
  54. package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/Settings.rcprojectdata +17 -0
  55. package/template/visionOSApp/Packages/RealityKitContent/Package.swift +27 -0
  56. package/template/visionOSApp/Packages/RealityKitContent/README.md +3 -0
  57. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda +50 -0
  58. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Materials/GridMaterial.usda +216 -0
  59. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda +59 -0
  60. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.swift +4 -0
  61. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +12 -0
  62. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +6 -0
  63. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Contents.json +17 -0
  64. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +12 -0
  65. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +6 -0
  66. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +12 -0
  67. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +6 -0
  68. package/template/visionOSApp/web-spatial/Assets.xcassets/Contents.json +6 -0
  69. package/template/visionOSApp/web-spatial/Info.plist +33 -0
  70. package/template/visionOSApp/web-spatial/Preview Content/Preview Assets.xcassets/Contents.json +6 -0
  71. package/template/visionOSApp/web-spatial/libs/EventEmitter.swift +32 -0
  72. package/template/visionOSApp/web-spatial/libs/SpatialComponent.swift +31 -0
  73. package/template/visionOSApp/web-spatial/libs/SpatialEntity.swift +179 -0
  74. package/template/visionOSApp/web-spatial/libs/SpatialInputComponent.swift +26 -0
  75. package/template/visionOSApp/web-spatial/libs/SpatialMeshResource.swift +19 -0
  76. package/template/visionOSApp/web-spatial/libs/SpatialModel3DComponent.swift +51 -0
  77. package/template/visionOSApp/web-spatial/libs/SpatialModelComponent.swift +32 -0
  78. package/template/visionOSApp/web-spatial/libs/SpatialObject.swift +144 -0
  79. package/template/visionOSApp/web-spatial/libs/SpatialPhysicallyBasedMaterial.swift +19 -0
  80. package/template/visionOSApp/web-spatial/libs/SpatialViewComponent.swift +15 -0
  81. package/template/visionOSApp/web-spatial/libs/SpatialWindowComponent.swift +420 -0
  82. package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +132 -0
  83. package/template/visionOSApp/web-spatial/libs/Utils/CommandManager.swift +799 -0
  84. package/template/visionOSApp/web-spatial/libs/Utils/Logger.swift +36 -0
  85. package/template/visionOSApp/web-spatial/libs/Utils/SceneManager.swift +108 -0
  86. package/template/visionOSApp/web-spatial/libs/Utils/WindowContainerMgr.swift +113 -0
  87. package/template/visionOSApp/web-spatial/libs/json/JsonParser.swift +52 -0
  88. package/template/visionOSApp/web-spatial/libs/uiKitDelegate/Window.swift +34 -0
  89. package/template/visionOSApp/web-spatial/libs/webView/UpdateSystem.swift +33 -0
  90. package/template/visionOSApp/web-spatial/libs/webView/backend/NativeWebView.swift +319 -0
  91. package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +91 -0
  92. package/template/visionOSApp/web-spatial/static-web/index.html +9 -0
  93. package/template/visionOSApp/web-spatial/views/HideViewModifier.swift +17 -0
  94. package/template/visionOSApp/web-spatial/views/ImmersiveView.swift +24 -0
  95. package/template/visionOSApp/web-spatial/views/LoadingView.swift +25 -0
  96. package/template/visionOSApp/web-spatial/views/MaterialWithBorderCornerModifier.swift +82 -0
  97. package/template/visionOSApp/web-spatial/views/OpenDismissHandlerUI.swift +52 -0
  98. package/template/visionOSApp/web-spatial/views/PlainWindowContainerView.swift +84 -0
  99. package/template/visionOSApp/web-spatial/views/SpatialModel3DView.swift +193 -0
  100. package/template/visionOSApp/web-spatial/views/SpatialViewUI.swift +168 -0
  101. package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +187 -0
  102. package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +34 -0
  103. package/template/visionOSApp/web-spatial/views/ui/NavView.swift +88 -0
  104. package/template/visionOSApp/web-spatial/web_spatialApp.swift +134 -0
  105. package/template/visionOSApp/web-spatial.xcodeproj/project.pbxproj +686 -0
  106. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  107. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  108. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +5 -0
  109. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  110. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/WorkspaceSettings.xcsettings +14 -0
  111. package/template/visionOSApp/web-spatial.xcodeproj/xcshareddata/xcschemes/web-spatial.xcscheme +115 -0
  112. package/template/visionOSApp/web-spatial.xcodeproj/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +27 -0
  113. package/template/visionOSApp/web-spatialTests/web_spatialTests.swift +34 -0
@@ -0,0 +1 @@
1
+ 'use strict';function _0x1f2b(_0xaf098f,_0x443aa2){const _0x5671fc=_0x5671();return _0x1f2b=function(_0x1f2b36,_0x39f457){_0x1f2b36=_0x1f2b36-0x137;let _0x5d2ae2=_0x5671fc[_0x1f2b36];return _0x5d2ae2;},_0x1f2b(_0xaf098f,_0x443aa2);}const _0x4731ea=_0x1f2b;function _0x5671(){const _0x913f05=['3475516KgUtdi','2123QkHxWw','./web-spatial/libs/webView/manifest.swift','debugging','BACK_APPICON_DIRECTORY','SceneHeight','PRODUCT_BUNDLE_IDENTIFIER','./web-spatial/Info.plist','../resource/load','591472OEmRhA','protocol','YOURTEAMID','manifestInfo','scope','mainScene','app-store-connect','Contents.json','writeAsync','</string>','.minimal','replace','.standalone','path','Description','bindManifestInfo','DEVELOPMENT_TEAM','length','parseSync','icon','ExportOptions.plist','../resource','START_URL','json','project','buildSettings','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a','./manifestSwiftTemplate','filename','BUILDTYPE','createImg','\x22),','130065DPgJEr','buildType','utf-8','split','test','updateVersion','log','MIDDLE_APPICON_DIRECTORY','CURRENT_PROJECT_VERSION','updateTeamId','default','fixProjectFunction','protocol_handlers','DEEPLINK','PROJECT_DIRECTORY','138sicvZr','modifySwift','stringify','66ZJzYgC','height','6447644zKFUDT','resizability','buildConfigurationList','\x22,\x20url:\x20\x22','PWAProtocol(protocolValue:\x20\x22','name','url','AppName','134390ABtTda','icon.','PROJECT_BUILD_DIRECTORY','updateExportOptions','../resource/imageHelper','buildConfigurations','start_url','SceneResizability','getMIME','teamId','minimal-ui','objects','writeFileSync','bindIcon','writeSync','description','xcode','ImageHelper','pbxXCConfigurationList','pbxGroupByName','release-testing','loadJsonFromDisk','89502KcCEHJ','updateBuildProperty','126BqtZnl','join','1201335fQiCPX','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string>&lt;none&gt;</string>\x0a</dict>\x0a</plist>','defaultSize','images','icon.png','version','SceneWidth','pbxXCBuildConfigurationSection','SCOPE'];_0x5671=function(){return _0x913f05;};return _0x5671();}(function(_0x21a9da,_0xcc5a72){const _0x124d4f=_0x1f2b,_0x53b130=_0x21a9da();while(!![]){try{const _0x306daa=-parseInt(_0x124d4f(0x164))/0x1+-parseInt(_0x124d4f(0x140))/0x2*(-parseInt(_0x124d4f(0x160))/0x3)+parseInt(_0x124d4f(0x16d))/0x4+parseInt(_0x124d4f(0x196))/0x5*(parseInt(_0x124d4f(0x13d))/0x6)+parseInt(_0x124d4f(0x142))/0x7+-parseInt(_0x124d4f(0x176))/0x8*(-parseInt(_0x124d4f(0x162))/0x9)+parseInt(_0x124d4f(0x14a))/0xa*(-parseInt(_0x124d4f(0x16e))/0xb);if(_0x306daa===_0xcc5a72)break;else _0x53b130['push'](_0x53b130['shift']());}catch(_0x54f16a){_0x53b130['push'](_0x53b130['shift']());}}}(_0x5671,0x959c6));Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=require('fs'),resource_1=require(_0x4731ea(0x18b)),path_1=require(_0x4731ea(0x183)),load_1=require(_0x4731ea(0x175)),imageHelper_1=require(_0x4731ea(0x14e)),manifestSwiftTemplate_1=require(_0x4731ea(0x191)),xcode=require(_0x4731ea(0x15a)),exportOptionsXML=_0x4731ea(0x165),infoPlistXML=_0x4731ea(0x190);let useExportOptionsXML='';class XcodeProject{static async['modify'](_0x5227f7,_0x5d8fb3){const _0x54645d=_0x4731ea;let _0x1b0751=xcode['project'](_0x5227f7);this[_0x54645d(0x139)](_0x1b0751),_0x1b0751[_0x54645d(0x188)]();let _0xffe5ba=_0x5d8fb3[_0x54645d(0x197)];const _0x2f31f8=[_0x54645d(0x15e),_0x54645d(0x17c),_0x54645d(0x170),'enterprise'];useExportOptionsXML=exportOptionsXML[_0x54645d(0x181)](_0x54645d(0x193),_0x2f31f8['includes'](_0xffe5ba)?_0xffe5ba:'release-testing');_0x5d8fb3[_0x54645d(0x153)]&&this[_0x54645d(0x137)](_0x1b0751,_0x5d8fb3['teamId']);this[_0x54645d(0x14d)](),await this[_0x54645d(0x157)](_0x5d8fb3[_0x54645d(0x189)]),this[_0x54645d(0x185)](_0x1b0751,_0x5d8fb3[_0x54645d(0x179)][_0x54645d(0x18d)]);_0x5d8fb3[_0x54645d(0x169)]?this[_0x54645d(0x19b)](_0x1b0751,_0x5d8fb3[_0x54645d(0x169)]):this[_0x54645d(0x19b)](_0x1b0751,'1.0');try{fs['writeFileSync'](_0x5227f7,_0x1b0751[_0x54645d(0x158)]());}catch(_0xb4e1ec){console[_0x54645d(0x19c)](_0xb4e1ec);}}static[_0x4731ea(0x139)](_0x5c7839){const _0xf1be9b=_0x4731ea;_0x5c7839[_0xf1be9b(0x15d)]=function(_0x2e350c){const _0x530b4e=_0xf1be9b;var _0x5239b4=this['hash'][_0x530b4e(0x18e)][_0x530b4e(0x155)]['PBXGroup'],_0x4e0fd0,_0x4efea8;for(_0x4e0fd0 in _0x5239b4){if(!/_comment$/[_0x530b4e(0x19a)](_0x4e0fd0))continue;if(_0x5239b4[_0x4e0fd0]==_0x2e350c)return _0x4efea8=_0x4e0fd0[_0x530b4e(0x199)](/_comment$/)[0x0],_0x5239b4[_0x4efea8];}return![];},_0x5c7839['updateBuildProperty']=function(_0x1f6adb,_0x3083b8,_0x404321,_0x4e6cc5){const _0x2fd67d=_0xf1be9b;let _0x408ad9=[];const _0x16d7ce=/_comment$/;if(_0x4e6cc5){const _0x5e5696=this['pbxTargetByName'](_0x4e6cc5),_0x374221=_0x5e5696&&_0x5e5696[_0x2fd67d(0x144)],_0x33af36=this[_0x2fd67d(0x15c)]();for(const _0x5e2dcf in _0x33af36){if(!_0x16d7ce['test'](_0x5e2dcf)&&_0x374221===_0x5e2dcf){const _0x588826=_0x33af36[_0x5e2dcf][_0x2fd67d(0x14f)];for(const _0x3aabc4 of _0x588826){_0x408ad9['push'](_0x3aabc4['value']);}break;}}}var _0x33018b=this[_0x2fd67d(0x16b)]();for(var _0x3a0bff in _0x33018b){if(!_0x16d7ce[_0x2fd67d(0x19a)](_0x3a0bff)){if(_0x4e6cc5&&!_0x408ad9['includes'](_0x3a0bff))continue;var _0x5e2de8=_0x33018b[_0x3a0bff];(_0x404321&&_0x5e2de8['name']===_0x404321||!_0x404321)&&_0x5e2de8[_0x2fd67d(0x18f)][_0x1f6adb]&&(_0x5e2de8[_0x2fd67d(0x18f)][_0x1f6adb]=_0x3083b8);}}};}static async['bindIcon'](_0x40f4e5){const _0x1d7912=_0x4731ea;if(_0x40f4e5){const _0x9eeb09=(0x0,path_1[_0x1d7912(0x163)])(resource_1[_0x1d7912(0x13c)],resource_1[_0x1d7912(0x171)]),_0x4ebfe0=(0x0,path_1[_0x1d7912(0x163)])(_0x9eeb09,_0x1d7912(0x17d)),_0x81da01=_0x1d7912(0x14b)+_0x40f4e5[_0x1d7912(0x152)]()[_0x1d7912(0x181)]('image/',''),_0x3a38d2=(0x0,path_1[_0x1d7912(0x163)])(_0x9eeb09,_0x81da01);let _0x266763=await(0x0,load_1['loadJsonFromDisk'])(_0x4ebfe0);_0x266763[_0x1d7912(0x167)][0x0]['filename']=_0x81da01,await _0x40f4e5[_0x1d7912(0x17e)](_0x3a38d2),await fs[_0x1d7912(0x156)](_0x4ebfe0,JSON[_0x1d7912(0x13f)](_0x266763));const _0x1badd8=(0x0,path_1['join'])(resource_1[_0x1d7912(0x13c)],resource_1[_0x1d7912(0x19d)]),_0x646811=(0x0,path_1[_0x1d7912(0x163)])(_0x1badd8,'Contents.json'),_0x5ebb6a=_0x1d7912(0x168),_0x185339=(0x0,path_1[_0x1d7912(0x163)])(_0x1badd8,_0x5ebb6a);let _0x55c27d=await(0x0,load_1[_0x1d7912(0x15f)])(_0x646811),_0x1a90b2=imageHelper_1[_0x1d7912(0x15b)][_0x1d7912(0x194)](0x200);_0x55c27d[_0x1d7912(0x167)][0x0][_0x1d7912(0x192)]=_0x5ebb6a,await _0x1a90b2[_0x1d7912(0x17e)](_0x185339),await fs[_0x1d7912(0x156)](_0x646811,JSON[_0x1d7912(0x13f)](_0x55c27d));}}static['updateTeamId'](_0x30641f,_0x55223f){const _0x41a5c0=_0x4731ea;_0x30641f[_0x41a5c0(0x161)](_0x41a5c0(0x186),_0x55223f),useExportOptionsXML=useExportOptionsXML[_0x41a5c0(0x181)](_0x41a5c0(0x178),_0x55223f);}static[_0x4731ea(0x14d)](){const _0x1211e6=_0x4731ea;!fs['existsSync'](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs['mkdirSync'](resource_1[_0x1211e6(0x14c)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1[_0x1211e6(0x163)])(resource_1[_0x1211e6(0x14c)],_0x1211e6(0x18a)),useExportOptionsXML);}static[_0x4731ea(0x185)](_0x226130,_0x1763b0){const _0x31c187=_0x4731ea;var _0xd6d9be;_0x226130['updateProductName'](_0x1763b0['name']),_0x226130['updateBuildProperty'](_0x31c187(0x173),'\x22'+_0x1763b0['id']+'\x22'),this['updateDeeplink']((_0xd6d9be=_0x1763b0[_0x31c187(0x13a)])!==null&&_0xd6d9be!==void 0x0?_0xd6d9be:[]),this[_0x31c187(0x13e)](_0x1763b0);}static[_0x4731ea(0x19b)](_0x322409,_0x2cae32){const _0x500bc1=_0x4731ea;_0x322409[_0x500bc1(0x161)](_0x500bc1(0x19e),_0x2cae32);}static['updateDeeplink'](_0xfeac61){const _0x1ab870=_0x4731ea;let _0x11cd87=(0x0,path_1['join'])(resource_1[_0x1ab870(0x13c)],_0x1ab870(0x174)),_0x36bb07='';for(let _0x1190c7=0x0;_0x1190c7<_0xfeac61[_0x1ab870(0x187)];_0x1190c7++){_0x36bb07+='<string>'+_0xfeac61[_0x1190c7][_0x1ab870(0x177)]+_0x1ab870(0x17f);}const _0x553045=infoPlistXML['replace'](_0x1ab870(0x13b),_0x36bb07);fs['writeFileSync'](_0x11cd87,_0x553045);}static[_0x4731ea(0x13e)](_0x5e24bd){const _0x54e7e3=_0x4731ea,_0x13b751=(0x0,path_1[_0x54e7e3(0x163)])(resource_1['PROJECT_DIRECTORY'],_0x54e7e3(0x16f));let _0x1cca84=manifestSwiftTemplate_1['manifestSwiftTemplate'];_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x18c),_0x5e24bd[_0x54e7e3(0x150)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x16c),_0x5e24bd[_0x54e7e3(0x17a)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x149),_0x5e24bd[_0x54e7e3(0x147)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x184),_0x5e24bd[_0x54e7e3(0x159)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)]('AppID',_0x5e24bd['id']),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x180),_0x5e24bd['display']==_0x54e7e3(0x154)?_0x54e7e3(0x180):_0x54e7e3(0x182));if(_0x5e24bd[_0x54e7e3(0x13a)]){let _0x6f293d='';for(let _0x2b7a4e=0x0;_0x2b7a4e<_0x5e24bd[_0x54e7e3(0x13a)][_0x54e7e3(0x187)];_0x2b7a4e++){_0x6f293d+=_0x54e7e3(0x146)+_0x5e24bd[_0x54e7e3(0x13a)][_0x2b7a4e]['protocol']+_0x54e7e3(0x145)+_0x5e24bd[_0x54e7e3(0x13a)][_0x2b7a4e][_0x54e7e3(0x148)]+_0x54e7e3(0x195);}_0x1cca84=_0x1cca84[_0x54e7e3(0x181)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x6f293d);}_0x1cca84=_0x1cca84['replace'](_0x54e7e3(0x16a),_0x5e24bd[_0x54e7e3(0x17b)][_0x54e7e3(0x166)]['width']),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x172),_0x5e24bd[_0x54e7e3(0x17b)][_0x54e7e3(0x166)][_0x54e7e3(0x141)]),_0x1cca84=_0x1cca84[_0x54e7e3(0x181)](_0x54e7e3(0x151),'\x22'+_0x5e24bd['mainScene'][_0x54e7e3(0x143)]+'\x22'),fs[_0x54e7e3(0x156)](_0x13b751,_0x1cca84,_0x54e7e3(0x198));}}exports[_0x4731ea(0x138)]=XcodeProject;
@@ -0,0 +1,7 @@
1
+ export default class Xcrun {
2
+ static validate(path: string, key1: string, key2: string, useAccount: boolean): Promise<string>;
3
+ static uploadPackage(path: string, key1: string, key2: string, appleId: string, useAccount: boolean): Promise<string>;
4
+ static uploadApp(path: string, key1: string, key2: string, useAccount: boolean): Promise<string>;
5
+ static runWithSimulator(appInfo: any): Promise<void>;
6
+ private static parseListDevices;
7
+ }
@@ -0,0 +1 @@
1
+ 'use strict';const _0x3d82e1=_0x21be;(function(_0x24b983,_0x3ea562){const _0x2f09f0=_0x21be,_0xe82ea0=_0x24b983();while(!![]){try{const _0xfc9e0a=parseInt(_0x2f09f0(0x148))/0x1*(parseInt(_0x2f09f0(0x161))/0x2)+-parseInt(_0x2f09f0(0x157))/0x3+parseInt(_0x2f09f0(0x127))/0x4*(-parseInt(_0x2f09f0(0x176))/0x5)+parseInt(_0x2f09f0(0x130))/0x6+-parseInt(_0x2f09f0(0x125))/0x7*(parseInt(_0x2f09f0(0x160))/0x8)+-parseInt(_0x2f09f0(0x15e))/0x9+parseInt(_0x2f09f0(0x146))/0xa;if(_0xfc9e0a===_0x3ea562)break;else _0xe82ea0['push'](_0xe82ea0['shift']());}catch(_0x293525){_0xe82ea0['push'](_0xe82ea0['shift']());}}}(_0x49dd,0x26e38));function _0x21be(_0x476d54,_0x4b9321){const _0x49ddc4=_0x49dd();return _0x21be=function(_0x21be1a,_0xf6875f){_0x21be1a=_0x21be1a-0x124;let _0x336083=_0x49ddc4[_0x21be1a];return _0x336083;},_0x21be(_0x476d54,_0x4b9321);}Object['defineProperty'](exports,_0x3d82e1(0x14b),{'value':!![]});function _0x49dd(){const _0x139db3=['\x20--apiKey\x20','length','toString','/test','821847hFMasf','launch','listDevices','no\x20visionOS\x20simulator\x20found','trim','simctl','path','2788947HUqoso','uploadPackage','24gYZXqT','1874wNaasU','\x20altool','\x20-u\x20','launch\x20app','\x20--upload-app\x20-f\x20','\x20-p\x20','xcrun','\x20--verbose','name','visionos','parseListDevices','existsSync','find\x20simulator:\x20','\x20--apple-id\x20','list','\x20--apiIssuer\x20','execSync','\x20--upload-package\x20','\x20boot\x20\x22','state','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','470GdXOKH','version','install','uploadApp','444493iVhupK','\x20install\x20\x22','11112YFRPLF','split','shutdown','\x20shutdown\x20booted','.app','/web-spatial.xcodeproj','validate','Build/Products/Debug-xrsimulator/','PROJECT_DIRECTORY','579198XBJVKT','project','../resource','\x22\x20\x22','authApi','\x20list','build\x20success','boot','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','\x20launch\x20\x22','\x20list\x20devices\x20\x22','--\x20visionOS','authAccount','log','\x20simctl','child_process','line','\x20--validate-app\x20-f\x20','Booted','default','includes','install\x20success','9754690wNcJNR','appleId','131UieWYZ','deviceId','start\x20building','__esModule','platform','verbose','XcodebuildCMD','Apple\x20Vision\x20Pro','PROJECT_BUILD_DIRECTORY','altool','mkdirSync'];_0x49dd=function(){return _0x139db3;};return _0x49dd();}const child_process_1=require(_0x3d82e1(0x13f)),resource_1=require(_0x3d82e1(0x132)),path_1=require(_0x3d82e1(0x15d)),fs=require('fs'),xcodebuild_1=require('./xcodebuild');class Xcrun{static async[_0x3d82e1(0x12d)](_0x20ffad,_0x4baac1,_0x353d9,_0xc1b16d){const _0x3c9b6a=_0x3d82e1,_0x207f06=new XcrunCMD()['altool']();_0x207f06['validate'](_0x20ffad);_0xc1b16d?_0x207f06[_0x3c9b6a(0x13c)](_0x4baac1,_0x353d9):_0x207f06['authApi'](_0x4baac1,_0x353d9);_0x207f06[_0x3c9b6a(0x14c)](_0x3c9b6a(0x16a));const _0xc09fe8=(0x0,child_process_1[_0x3c9b6a(0x171)])(_0x207f06[_0x3c9b6a(0x140)]);return _0xc09fe8[_0x3c9b6a(0x155)]();}static async[_0x3d82e1(0x15f)](_0x16420a,_0x138886,_0x5be25e,_0x192af8,_0x560faf){const _0x112d6e=_0x3d82e1,_0x344e88=new XcrunCMD()[_0x112d6e(0x151)]();_0x344e88['uploadPackage'](_0x16420a);_0x560faf?_0x344e88['authAccount'](_0x138886,_0x5be25e):_0x344e88['authApi'](_0x138886,_0x5be25e);_0x344e88[_0x112d6e(0x14c)](_0x112d6e(0x16a)),_0x344e88[_0x112d6e(0x147)](_0x192af8);const _0x1b3166=(0x0,child_process_1[_0x112d6e(0x171)])(_0x344e88[_0x112d6e(0x140)]);return _0x1b3166['toString']();}static async[_0x3d82e1(0x124)](_0x323733,_0x23055e,_0x30c837,_0x5e1c34){const _0x542e95=_0x3d82e1,_0x1c9c08=new XcrunCMD()[_0x542e95(0x151)]();_0x1c9c08['uploadApp'](_0x323733);_0x5e1c34?_0x1c9c08[_0x542e95(0x13c)](_0x23055e,_0x30c837):_0x1c9c08[_0x542e95(0x134)](_0x23055e,_0x30c837);_0x1c9c08[_0x542e95(0x14c)](_0x542e95(0x16a));const _0x35e272=(0x0,child_process_1[_0x542e95(0x171)])(_0x1c9c08['line']);return _0x35e272[_0x542e95(0x155)]();}static async['runWithSimulator'](_0x3d8759){const _0x12c62b=_0x3d82e1;let _0x509a36=new XcrunCMD()[_0x12c62b(0x15c)]();_0x509a36[_0x12c62b(0x159)](_0x12c62b(0x14f));const _0x585fe7=(0x0,child_process_1[_0x12c62b(0x171)])(_0x509a36[_0x12c62b(0x140)]),_0x369a46=this[_0x12c62b(0x16b)](_0x585fe7[_0x12c62b(0x155)]());if(_0x369a46[_0x12c62b(0x154)]===0x0)throw new Error(_0x12c62b(0x15a));let _0x1f985a=_0x369a46[0x0];for(let _0x10bcfb=0x0;_0x10bcfb<_0x369a46[_0x12c62b(0x154)];_0x10bcfb++){if(_0x369a46[_0x10bcfb][_0x12c62b(0x174)]===_0x12c62b(0x142)){_0x1f985a=_0x369a46[_0x10bcfb];break;}}console['log'](_0x12c62b(0x16d)+_0x1f985a['deviceId']);const _0x4231c3=resource_1[_0x12c62b(0x12f)]+_0x12c62b(0x12c),_0x505e31=resource_1[_0x12c62b(0x150)]+_0x12c62b(0x156);!fs[_0x12c62b(0x16c)](resource_1[_0x12c62b(0x150)])&&fs[_0x12c62b(0x152)](resource_1[_0x12c62b(0x150)],{'recursive':!![]});!fs[_0x12c62b(0x16c)](_0x505e31)&&fs['mkdirSync'](_0x505e31,{'recursive':!![]});const _0x1d87a5=new xcodebuild_1[(_0x12c62b(0x14e))]()[_0x12c62b(0x131)](_0x4231c3)[_0x12c62b(0x140)]+(_0x12c62b(0x138)+_0x1f985a[_0x12c62b(0x149)]+'\x27\x20-derivedDataPath\x20'+_0x505e31);console[_0x12c62b(0x13d)](_0x12c62b(0x14a)),(0x0,child_process_1[_0x12c62b(0x171)])(_0x1d87a5),console[_0x12c62b(0x13d)](_0x12c62b(0x136));_0x1f985a[_0x12c62b(0x174)]==='Shutdown'&&(_0x509a36=new XcrunCMD()['simctl'](),_0x509a36[_0x12c62b(0x137)](_0x1f985a[_0x12c62b(0x149)]),(0x0,child_process_1[_0x12c62b(0x171)])(_0x509a36[_0x12c62b(0x140)]));(0x0,child_process_1[_0x12c62b(0x171)])(_0x12c62b(0x175)),console[_0x12c62b(0x13d)]('installing\x20app');const _0x412d89=(0x0,path_1['join'])(_0x505e31,_0x12c62b(0x12e)+_0x3d8759[_0x12c62b(0x169)]+_0x12c62b(0x12b));_0x509a36=new XcrunCMD()[_0x12c62b(0x15c)](),_0x509a36[_0x12c62b(0x178)](_0x1f985a['deviceId'],_0x412d89),(0x0,child_process_1['execSync'])(_0x509a36[_0x12c62b(0x140)]),console[_0x12c62b(0x13d)](_0x12c62b(0x145)),console[_0x12c62b(0x13d)](_0x12c62b(0x164)),_0x509a36=new XcrunCMD()[_0x12c62b(0x15c)](),_0x509a36[_0x12c62b(0x158)](_0x1f985a[_0x12c62b(0x149)],_0x3d8759['id']),(0x0,child_process_1[_0x12c62b(0x171)])(_0x509a36[_0x12c62b(0x140)]);}static[_0x3d82e1(0x16b)](_0xbdec85){const _0x5ffe15=_0x3d82e1;let _0x3acfc0=_0xbdec85['split']('\x0a'),_0x1dfa93=[],_0x83729=-0x1;for(let _0x21db15=0x0;_0x21db15<_0x3acfc0[_0x5ffe15(0x154)];_0x21db15++){if(_0x3acfc0[_0x21db15][_0x5ffe15(0x144)](_0x5ffe15(0x13b)))_0x83729=_0x21db15;else{if(_0x83729>0x0){if(_0x3acfc0[_0x21db15][_0x5ffe15(0x144)]('--\x20'))break;if(_0x3acfc0[_0x21db15]['length']>0x0){const _0xdcf8c0=_0x3acfc0[_0x21db15][_0x5ffe15(0x128)]('('),_0x45ad0d={'name':_0xdcf8c0[0x0]['trim'](),'deviceId':_0xdcf8c0[0x1]['split'](')')[0x0]['trim'](),'state':_0xdcf8c0[0x2][_0x5ffe15(0x128)](')')[0x0][_0x5ffe15(0x15b)]()};_0x1dfa93['push'](_0x45ad0d);}}}}return _0x1dfa93;}}exports[_0x3d82e1(0x143)]=Xcrun;class XcrunCMD{constructor(){const _0x1cb870=_0x3d82e1;this['line']=_0x1cb870(0x167);}[_0x3d82e1(0x151)](){const _0x19cdc4=_0x3d82e1;return this[_0x19cdc4(0x140)]+=_0x19cdc4(0x162),this;}[_0x3d82e1(0x15c)](){const _0x253568=_0x3d82e1;return this[_0x253568(0x140)]+=_0x253568(0x13e),this;}[_0x3d82e1(0x16f)](){const _0x6d10ae=_0x3d82e1;return this[_0x6d10ae(0x140)]+=_0x6d10ae(0x135),this;}[_0x3d82e1(0x159)](_0x5bb0ad){const _0x4ca93f=_0x3d82e1;return this[_0x4ca93f(0x140)]+=_0x4ca93f(0x13a)+_0x5bb0ad+'\x22',this;}['validate'](_0x14841e){const _0xf3161e=_0x3d82e1;return this[_0xf3161e(0x140)]+=_0xf3161e(0x141)+_0x14841e,this;}[_0x3d82e1(0x124)](_0x17e601){const _0x5bdb6e=_0x3d82e1;return this[_0x5bdb6e(0x140)]+=_0x5bdb6e(0x165)+_0x17e601,this;}[_0x3d82e1(0x15f)](_0x528c6c){const _0x198ddf=_0x3d82e1;return this['line']+=_0x198ddf(0x172)+_0x528c6c,this;}[_0x3d82e1(0x13c)](_0x3b94d0,_0x5daa9a){const _0xb408fd=_0x3d82e1;return this[_0xb408fd(0x140)]+=_0xb408fd(0x163)+_0x3b94d0+_0xb408fd(0x166)+_0x5daa9a,this;}[_0x3d82e1(0x134)](_0x1a2d60,_0x4361ee){const _0x4974f3=_0x3d82e1;return this['line']+=_0x4974f3(0x153)+_0x1a2d60+_0x4974f3(0x170)+_0x4361ee,this;}['appleId'](_0x1ca46f){const _0x1c30e7=_0x3d82e1;return this[_0x1c30e7(0x140)]+=_0x1c30e7(0x16e)+_0x1ca46f,this;}['platform'](_0x2e5aad){return this['line']+='\x20-t\x20'+_0x2e5aad,this;}[_0x3d82e1(0x177)](_0x4b4761){const _0x475cc2=_0x3d82e1;return this[_0x475cc2(0x140)]+='\x20--bundle-version\x20'+_0x4b4761,this;}[_0x3d82e1(0x14d)](){const _0x50cb56=_0x3d82e1;return this['line']+=_0x50cb56(0x168),this;}[_0x3d82e1(0x129)](){const _0x57b5c4=_0x3d82e1;return this['line']+=_0x57b5c4(0x12a),this;}[_0x3d82e1(0x137)](_0x24405b){const _0x3cf8e6=_0x3d82e1;return this['line']+=_0x3cf8e6(0x173)+_0x24405b+'\x22',this;}['install'](_0x5dd3ab,_0x1449d2){const _0x1c8c6c=_0x3d82e1;return this['line']+=_0x1c8c6c(0x126)+_0x5dd3ab+_0x1c8c6c(0x133)+_0x1449d2+'\x22',this;}[_0x3d82e1(0x158)](_0x564bb6,_0x1517f0){const _0x707fd4=_0x3d82e1;return this[_0x707fd4(0x140)]+=_0x707fd4(0x139)+_0x564bb6+_0x707fd4(0x133)+_0x1517f0+'\x22',this;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webspatial/builder",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -18,6 +18,7 @@
18
18
  "dist/index.d.ts",
19
19
  "dist/index.js",
20
20
  "bin",
21
+ "template",
21
22
  "package.json"
22
23
  ],
23
24
  "author": "",
@@ -0,0 +1,7 @@
1
+ {
2
+ "object": {
3
+ "artifacts": [],
4
+ "dependencies": []
5
+ },
6
+ "version": 6
7
+ }
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>SchemeUserState</key>
6
+ <dict>
7
+ <key>RealityKitContent.xcscheme_^#shared#^_</key>
8
+ <dict>
9
+ <key>orderHint</key>
10
+ <integer>1</integer>
11
+ </dict>
12
+ </dict>
13
+ </dict>
14
+ </plist>
@@ -0,0 +1,11 @@
1
+ {
2
+ "pathsToIds": {
3
+ "/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/GridMaterial.usda": "CB766F92-EE55-4A63-9401-E7B8C009764D",
4
+ "/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda": "65F6F990-A780-4474-B78B-572E0E4E273D",
5
+ "/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda": "0A9B4653-B11E-4D6A-850E-C6FCB621626C",
6
+ "/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Untitled Scene.usda": "D560BB77-AAF3-4BDE-B7C4-989332A4688B",
7
+ "RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/GridMaterial.usda": "66168B71-AB05-424E-8B6C-D33D6E61B08F",
8
+ "RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda": "AF09ED6F-1707-48FD-8720-65B998362C09",
9
+ "RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda": "D66134B1-3681-4A8E-AFE5-29F257229F3B"
10
+ }
11
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+ "0A9B4653-B11E-4D6A-850E-C6FCB621626C": {
3
+ "cameraTransform": [
4
+ 1, 0, 0, 0, 0, 0.86602545, -0.49999994, 0, 0, 0.49999994, 0.86602545, 0,
5
+ 0.0035969093, 0.35542378, 0.62919164, 1
6
+ ],
7
+ "objectMetadataList": [
8
+ ["0A9B4653-B11E-4D6A-850E-C6FCB621626C", "Root"],
9
+ {
10
+ "isExpanded": true,
11
+ "isLocked": false
12
+ }
13
+ ]
14
+ },
15
+ "65F6F990-A780-4474-B78B-572E0E4E273D": {
16
+ "cameraTransform": [
17
+ 1, 0, -0, 0, -0, 0.86602545, -0.49999988, 0, 0, 0.49999988, 0.86602545, 0,
18
+ 1.1972517e-8, 2.6179132, 0.43191218, 1
19
+ ],
20
+ "objectMetadataList": [
21
+ ["65F6F990-A780-4474-B78B-572E0E4E273D", "Root"],
22
+ {
23
+ "isExpanded": true,
24
+ "isLocked": false
25
+ }
26
+ ]
27
+ },
28
+ "66168B71-AB05-424E-8B6C-D33D6E61B08F": {
29
+ "cameraTransform": [
30
+ 1, 0, -0, 0, -0, 0.8660254, -0.5, 0, 0, 0.5, 0.8660254, 0, 0, 0.23875366,
31
+ 0.4135335, 1
32
+ ],
33
+ "objectMetadataList": [
34
+ ["66168B71-AB05-424E-8B6C-D33D6E61B08F", "Root"],
35
+ {
36
+ "isExpanded": true,
37
+ "isLocked": false
38
+ }
39
+ ]
40
+ },
41
+ "AF09ED6F-1707-48FD-8720-65B998362C09": {
42
+ "cameraTransform": [
43
+ 1, 0, -0, 0, -0, 0.7071069, -0.7071067, 0, 0, 0.7071067, 0.7071069, 0, 0,
44
+ 2.8836339, -0.107588194, 1
45
+ ],
46
+ "objectMetadataList": [
47
+ ["AF09ED6F-1707-48FD-8720-65B998362C09", "Root"],
48
+ {
49
+ "isExpanded": true,
50
+ "isLocked": false
51
+ },
52
+ ["AF09ED6F-1707-48FD-8720-65B998362C09", "Root", "Sphere_Left"],
53
+ {
54
+ "isExpanded": true,
55
+ "isLocked": false
56
+ },
57
+ ["AF09ED6F-1707-48FD-8720-65B998362C09", "Root", "Sphere_Right"],
58
+ {
59
+ "isExpanded": true,
60
+ "isLocked": false
61
+ }
62
+ ]
63
+ },
64
+ "CB766F92-EE55-4A63-9401-E7B8C009764D": {
65
+ "cameraTransform": [
66
+ 1, 0, -0, 0, -0, 0.8660253, -0.5000001, 0, 0, 0.5000001, 0.8660253, 0, 0,
67
+ 0.27093494, 0.4692731, 1
68
+ ],
69
+ "objectMetadataList": [
70
+ ["CB766F92-EE55-4A63-9401-E7B8C009764D", "Root", "GridMaterial"],
71
+ {
72
+ "isExpanded": true,
73
+ "isLocked": false
74
+ },
75
+ ["CB766F92-EE55-4A63-9401-E7B8C009764D", "Root"],
76
+ {
77
+ "isExpanded": true,
78
+ "isLocked": false
79
+ }
80
+ ]
81
+ },
82
+ "D560BB77-AAF3-4BDE-B7C4-989332A4688B": {
83
+ "cameraTransform": [
84
+ 1, 0, -0, 0, -0, 0.8660253, -0.5000001, 0, 0, 0.5000001, 0.8660253, 0, 0,
85
+ 0.27093494, 0.4692731, 1
86
+ ],
87
+ "objectMetadataList": []
88
+ },
89
+ "D66134B1-3681-4A8E-AFE5-29F257229F3B": {
90
+ "cameraTransform": [
91
+ 1, 0, -0, 0, -0, 0.7071069, -0.7071067, 0, 0, 0.7071067, 0.7071069, 0, 0,
92
+ 0.26894823, 0.26934713, 1
93
+ ],
94
+ "objectMetadataList": [
95
+ [
96
+ "D66134B1-3681-4A8E-AFE5-29F257229F3B",
97
+ "Root",
98
+ "GridMaterial",
99
+ "GridMaterial"
100
+ ],
101
+ {
102
+ "isExpanded": true,
103
+ "isLocked": false
104
+ },
105
+ ["D66134B1-3681-4A8E-AFE5-29F257229F3B", "Root"],
106
+ {
107
+ "isExpanded": true,
108
+ "isLocked": false
109
+ }
110
+ ]
111
+ }
112
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "cameraPresets" : {
3
+
4
+ },
5
+ "secondaryToolbarData" : {
6
+ "isGridVisible" : true,
7
+ "sceneReverbPreset" : -1
8
+ },
9
+ "unitDefaults" : {
10
+ "°" : "°",
11
+ "kg" : "g",
12
+ "m" : "cm",
13
+ "m\/s" : "m\/s",
14
+ "m\/s²" : "m\/s²",
15
+ "s" : "s"
16
+ }
17
+ }
@@ -0,0 +1,27 @@
1
+ // swift-tools-version:5.9
2
+ // The swift-tools-version declares the minimum version of Swift required to build this package.
3
+
4
+ import PackageDescription
5
+
6
+ let package = Package(
7
+ name: "RealityKitContent",
8
+ products: [
9
+ // Products define the executables and libraries a package produces, and make them visible to other packages.
10
+ .library(
11
+ name: "RealityKitContent",
12
+ targets: ["RealityKitContent"]
13
+ ),
14
+ ],
15
+ dependencies: [
16
+ // Dependencies declare other packages that this package depends on.
17
+ // .package(url: /* package url */, from: "1.0.0"),
18
+ ],
19
+ targets: [
20
+ // Targets are the basic building blocks of a package. A target can define a module or a test suite.
21
+ // Targets can depend on other targets in this package, and on products in packages this package depends on.
22
+ .target(
23
+ name: "RealityKitContent",
24
+ dependencies: []
25
+ ),
26
+ ]
27
+ )
@@ -0,0 +1,3 @@
1
+ # RealityKitContent
2
+
3
+ A description of this package.
@@ -0,0 +1,50 @@
1
+ #usda 1.0
2
+ (
3
+ defaultPrim = "Root"
4
+ metersPerUnit = 1
5
+ upAxis = "Y"
6
+ )
7
+
8
+ def Xform "Root"
9
+ {
10
+ reorder nameChildren = ["Sphere_Left", "Sphere_Right", "GridMaterial"]
11
+ def Sphere "Sphere_Right" (
12
+ active = true
13
+ prepend apiSchemas = ["MaterialBindingAPI"]
14
+ )
15
+ {
16
+ rel material:binding = </Root/GridMaterial/GridMaterial> (
17
+ bindMaterialAs = "weakerThanDescendants"
18
+ )
19
+ double radius = 0.1
20
+ quatf xformOp:orient = (1, 0, 0, 0)
21
+ float3 xformOp:scale = (1, 1, 1)
22
+ float3 xformOp:translate = (0.5, 1.5, -1.5)
23
+ uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:orient", "xformOp:scale"]
24
+ }
25
+
26
+ def Sphere "Sphere_Left" (
27
+ active = true
28
+ prepend apiSchemas = ["MaterialBindingAPI"]
29
+ )
30
+ {
31
+ rel material:binding = </Root/GridMaterial/GridMaterial> (
32
+ bindMaterialAs = "weakerThanDescendants"
33
+ )
34
+ double radius = 0.1
35
+ quatf xformOp:orient = (1, 0, 0, 0)
36
+ float3 xformOp:scale = (1, 1, 1)
37
+ float3 xformOp:translate = (-0.5, 1.5, -1.5)
38
+ uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:orient", "xformOp:scale"]
39
+ }
40
+
41
+ def "GridMaterial" (
42
+ active = true
43
+ prepend references = @Materials/GridMaterial.usda@
44
+ )
45
+ {
46
+ float3 xformOp:scale = (1, 1, 1)
47
+ uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:orient", "xformOp:scale"]
48
+ }
49
+ }
50
+
@@ -0,0 +1,216 @@
1
+ #usda 1.0
2
+ (
3
+ defaultPrim = "Root"
4
+ metersPerUnit = 1
5
+ upAxis = "Y"
6
+ )
7
+
8
+ def Xform "Root"
9
+ {
10
+ def Material "GridMaterial"
11
+ {
12
+ reorder nameChildren = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "DefaultSurfaceShader", "MaterialXPreviewSurface", "Texcoord", "Add", "Multiply", "Fractional", "LineCounts", "Multiply_1", "Separate2", "Separate2_1", "Ifgreater", "Ifgreater_1", "Max", "Background_Color"]
13
+ token outputs:mtlx:surface.connect = </Root/GridMaterial/MaterialXPreviewSurface.outputs:out>
14
+ token outputs:realitykit:vertex
15
+ token outputs:surface
16
+ float2 ui:nodegraph:realitykit:subgraphOutputs:pos = (2222, 300.5)
17
+ float2 ui:nodegraph:realitykit:subgraphOutputs:size = (182, 89)
18
+ int ui:nodegraph:realitykit:subgraphOutputs:stackingOrder = 749
19
+
20
+ def Shader "DefaultSurfaceShader"
21
+ {
22
+ uniform token info:id = "UsdPreviewSurface"
23
+ color3f inputs:diffuseColor = (1, 1, 1)
24
+ float inputs:roughness = 0.75
25
+ token outputs:surface
26
+ }
27
+
28
+ def Shader "MaterialXPreviewSurface"
29
+ {
30
+ uniform token info:id = "ND_UsdPreviewSurface_surfaceshader"
31
+ float inputs:clearcoat
32
+ float inputs:clearcoatRoughness
33
+ color3f inputs:diffuseColor.connect = </Root/GridMaterial/Remap.outputs:out>
34
+ color3f inputs:emissiveColor
35
+ float inputs:ior
36
+ float inputs:metallic = 0.15
37
+ float3 inputs:normal
38
+ float inputs:occlusion
39
+ float inputs:opacity
40
+ float inputs:opacityThreshold
41
+ float inputs:roughness = 0.5
42
+ token outputs:out
43
+ float2 ui:nodegraph:node:pos = (1967, 300.5)
44
+ float2 ui:nodegraph:node:size = (208, 297)
45
+ int ui:nodegraph:node:stackingOrder = 870
46
+ string[] ui:nodegraph:realitykit:node:attributesShowingChildren = ["Advanced"]
47
+ }
48
+
49
+ def Shader "Texcoord"
50
+ {
51
+ uniform token info:id = "ND_texcoord_vector2"
52
+ float2 outputs:out
53
+ float2 ui:nodegraph:node:pos = (94.14453, 35.29297)
54
+ float2 ui:nodegraph:node:size = (182, 43)
55
+ int ui:nodegraph:node:stackingOrder = 1358
56
+ }
57
+
58
+ def Shader "Multiply"
59
+ {
60
+ uniform token info:id = "ND_multiply_vector2"
61
+ float2 inputs:in1.connect = </Root/GridMaterial/Texcoord.outputs:out>
62
+ float2 inputs:in2 = (32, 15)
63
+ float2 inputs:in2.connect = </Root/GridMaterial/LineCounts.outputs:out>
64
+ float2 outputs:out
65
+ float2 ui:nodegraph:node:pos = (275.64453, 47.29297)
66
+ float2 ui:nodegraph:node:size = (61, 36)
67
+ int ui:nodegraph:node:stackingOrder = 1348
68
+ string[] ui:nodegraph:realitykit:node:attributesShowingChildren = ["inputs:in2"]
69
+ }
70
+
71
+ def Shader "Fractional"
72
+ {
73
+ uniform token info:id = "ND_realitykit_fractional_vector2"
74
+ float2 inputs:in.connect = </Root/GridMaterial/Multiply.outputs:out>
75
+ float2 outputs:out
76
+ float2 ui:nodegraph:node:pos = (440.5, 49.5)
77
+ float2 ui:nodegraph:node:size = (155, 99)
78
+ int ui:nodegraph:node:stackingOrder = 1345
79
+ }
80
+
81
+ def Shader "BaseColor"
82
+ {
83
+ uniform token info:id = "ND_constant_color3"
84
+ color3f inputs:value = (0.89737034, 0.89737034, 0.89737034) (
85
+ colorSpace = "Input - Texture - sRGB - sRGB"
86
+ )
87
+ color3f inputs:value.connect = None
88
+ color3f outputs:out
89
+ float2 ui:nodegraph:node:pos = (1537.5977, 363.07812)
90
+ float2 ui:nodegraph:node:size = (150, 43)
91
+ int ui:nodegraph:node:stackingOrder = 1353
92
+ }
93
+
94
+ def Shader "LineColor"
95
+ {
96
+ uniform token info:id = "ND_constant_color3"
97
+ color3f inputs:value = (0.55945957, 0.55945957, 0.55945957) (
98
+ colorSpace = "Input - Texture - sRGB - sRGB"
99
+ )
100
+ color3f inputs:value.connect = None
101
+ color3f outputs:out
102
+ float2 ui:nodegraph:node:pos = (1536.9844, 287.86328)
103
+ float2 ui:nodegraph:node:size = (146, 43)
104
+ int ui:nodegraph:node:stackingOrder = 1355
105
+ }
106
+
107
+ def Shader "LineWidths"
108
+ {
109
+ uniform token info:id = "ND_combine2_vector2"
110
+ float inputs:in1 = 0.1
111
+ float inputs:in2 = 0.1
112
+ float2 outputs:out
113
+ float2 ui:nodegraph:node:pos = (443.64453, 233.79297)
114
+ float2 ui:nodegraph:node:size = (151, 43)
115
+ int ui:nodegraph:node:stackingOrder = 1361
116
+ }
117
+
118
+ def Shader "LineCounts"
119
+ {
120
+ uniform token info:id = "ND_combine2_vector2"
121
+ float inputs:in1 = 24
122
+ float inputs:in2 = 12
123
+ float2 outputs:out
124
+ float2 ui:nodegraph:node:pos = (94.14453, 138.29297)
125
+ float2 ui:nodegraph:node:size = (153, 43)
126
+ int ui:nodegraph:node:stackingOrder = 1359
127
+ }
128
+
129
+ def Shader "Remap"
130
+ {
131
+ uniform token info:id = "ND_remap_color3"
132
+ color3f inputs:in.connect = </Root/GridMaterial/Combine3.outputs:out>
133
+ color3f inputs:inhigh.connect = None
134
+ color3f inputs:inlow.connect = None
135
+ color3f inputs:outhigh.connect = </Root/GridMaterial/BaseColor.outputs:out>
136
+ color3f inputs:outlow.connect = </Root/GridMaterial/LineColor.outputs:out>
137
+ color3f outputs:out
138
+ float2 ui:nodegraph:node:pos = (1755.5, 300.5)
139
+ float2 ui:nodegraph:node:size = (95, 171)
140
+ int ui:nodegraph:node:stackingOrder = 1282
141
+ string[] ui:nodegraph:realitykit:node:attributesShowingChildren = ["inputs:outlow"]
142
+ }
143
+
144
+ def Shader "Separate2"
145
+ {
146
+ uniform token info:id = "ND_separate2_vector2"
147
+ float2 inputs:in.connect = </Root/GridMaterial/Range.outputs:out>
148
+ float outputs:outx
149
+ float outputs:outy
150
+ float2 ui:nodegraph:node:pos = (1212.6445, 128.91797)
151
+ float2 ui:nodegraph:node:size = (116, 117)
152
+ int ui:nodegraph:node:stackingOrder = 1363
153
+ }
154
+
155
+ def Shader "Combine3"
156
+ {
157
+ uniform token info:id = "ND_combine3_color3"
158
+ float inputs:in1.connect = </Root/GridMaterial/Min.outputs:out>
159
+ float inputs:in2.connect = </Root/GridMaterial/Min.outputs:out>
160
+ float inputs:in3.connect = </Root/GridMaterial/Min.outputs:out>
161
+ color3f outputs:out
162
+ float2 ui:nodegraph:node:pos = (1578.1445, 128.91797)
163
+ float2 ui:nodegraph:node:size = (146, 54)
164
+ int ui:nodegraph:node:stackingOrder = 1348
165
+ }
166
+
167
+ def Shader "Range"
168
+ {
169
+ uniform token info:id = "ND_range_vector2"
170
+ bool inputs:doclamp = 1
171
+ float2 inputs:gamma = (2, 2)
172
+ float2 inputs:in.connect = </Root/GridMaterial/Absval.outputs:out>
173
+ float2 inputs:inhigh.connect = </Root/GridMaterial/LineWidths.outputs:out>
174
+ float2 inputs:inlow = (0.02, 0.02)
175
+ float2 inputs:outhigh
176
+ float2 inputs:outlow
177
+ float2 outputs:out
178
+ float2 ui:nodegraph:node:pos = (990.64453, 128.91797)
179
+ float2 ui:nodegraph:node:size = (98, 207)
180
+ int ui:nodegraph:node:stackingOrder = 1364
181
+ }
182
+
183
+ def Shader "Subtract"
184
+ {
185
+ uniform token info:id = "ND_subtract_vector2"
186
+ float2 inputs:in1.connect = </Root/GridMaterial/Fractional.outputs:out>
187
+ float2 inputs:in2.connect = </Root/GridMaterial/LineWidths.outputs:out>
188
+ float2 outputs:out
189
+ float2 ui:nodegraph:node:pos = (612.64453, 87.04297)
190
+ float2 ui:nodegraph:node:size = (63, 36)
191
+ int ui:nodegraph:node:stackingOrder = 1348
192
+ }
193
+
194
+ def Shader "Absval"
195
+ {
196
+ uniform token info:id = "ND_absval_vector2"
197
+ float2 inputs:in.connect = </Root/GridMaterial/Subtract.outputs:out>
198
+ float2 outputs:out
199
+ float2 ui:nodegraph:node:pos = (765.64453, 87.04297)
200
+ float2 ui:nodegraph:node:size = (123, 43)
201
+ int ui:nodegraph:node:stackingOrder = 1348
202
+ }
203
+
204
+ def Shader "Min"
205
+ {
206
+ uniform token info:id = "ND_min_float"
207
+ float inputs:in1.connect = </Root/GridMaterial/Separate2.outputs:outx>
208
+ float inputs:in2.connect = </Root/GridMaterial/Separate2.outputs:outy>
209
+ float outputs:out
210
+ float2 ui:nodegraph:node:pos = (1388.1445, 128.91797)
211
+ float2 ui:nodegraph:node:size = (114, 36)
212
+ int ui:nodegraph:node:stackingOrder = 1363
213
+ }
214
+ }
215
+ }
216
+
@@ -0,0 +1,59 @@
1
+ #usda 1.0
2
+ (
3
+ defaultPrim = "Root"
4
+ metersPerUnit = 1
5
+ upAxis = "Y"
6
+ )
7
+
8
+ def Xform "Root"
9
+ {
10
+ reorder nameChildren = ["GridMaterial", "Sphere"]
11
+ rel material:binding = None (
12
+ bindMaterialAs = "weakerThanDescendants"
13
+ )
14
+
15
+ def Sphere "Sphere" (
16
+ active = true
17
+ prepend apiSchemas = ["MaterialBindingAPI"]
18
+ )
19
+ {
20
+ rel material:binding = </Root/GridMaterial/GridMaterial> (
21
+ bindMaterialAs = "weakerThanDescendants"
22
+ )
23
+ double radius = 0.05
24
+ quatf xformOp:orient = (1, 0, 0, 0)
25
+ float3 xformOp:scale = (1, 1, 1)
26
+ float3 xformOp:translate = (0, 0, 0.0004)
27
+ uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:orient", "xformOp:scale"]
28
+
29
+ def RealityKitComponent "Collider"
30
+ {
31
+ uint group = 1
32
+ uniform token info:id = "RealityKit.Collider"
33
+ uint mask = 4294967295
34
+ token type = "Default"
35
+
36
+ def RealityKitStruct "Shape"
37
+ {
38
+ float3 extent = (0.2, 0.2, 0.2)
39
+ float radius = 0.05
40
+ token shapeType = "Sphere"
41
+ }
42
+ }
43
+
44
+ def RealityKitComponent "InputTarget"
45
+ {
46
+ uniform token info:id = "RealityKit.InputTarget"
47
+ }
48
+ }
49
+
50
+ def "GridMaterial" (
51
+ active = true
52
+ prepend references = @Materials/GridMaterial.usda@
53
+ )
54
+ {
55
+ float3 xformOp:scale = (1, 1, 1)
56
+ uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:orient", "xformOp:scale"]
57
+ }
58
+ }
59
+
@@ -0,0 +1,4 @@
1
+ import Foundation
2
+
3
+ /// Bundle for the RealityKitContent project
4
+ public let realityKitContentBundle = Bundle.module
@@ -0,0 +1,12 @@
1
+ {
2
+ "images": [
3
+ {
4
+ "idiom": "vision",
5
+ "scale": "2x"
6
+ }
7
+ ],
8
+ "info": {
9
+ "author": "xcode",
10
+ "version": 1
11
+ }
12
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "info": {
3
+ "author": "xcode",
4
+ "version": 1
5
+ },
6
+ "layers": [
7
+ {
8
+ "filename": "Front.solidimagestacklayer"
9
+ },
10
+ {
11
+ "filename": "Middle.solidimagestacklayer"
12
+ },
13
+ {
14
+ "filename": "Back.solidimagestacklayer"
15
+ }
16
+ ]
17
+ }