@webspatial/builder 0.0.9 → 0.0.11

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 (92) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/Cli.js +1 -1
  3. package/dist/lib/cmds/build.d.ts +1 -1
  4. package/dist/lib/cmds/build.js +1 -1
  5. package/dist/lib/cmds/check.js +1 -1
  6. package/dist/lib/cmds/help.js +1 -1
  7. package/dist/lib/cmds/version.js +1 -1
  8. package/dist/lib/pwa/config.js +1 -1
  9. package/dist/lib/pwa/index.js +1 -1
  10. package/dist/lib/pwa/validate.js +1 -1
  11. package/dist/lib/resource/file.js +1 -1
  12. package/dist/lib/resource/imageHelper.js +1 -1
  13. package/dist/lib/resource/index.d.ts +10 -3
  14. package/dist/lib/resource/index.js +1 -1
  15. package/dist/lib/resource/load.js +1 -1
  16. package/dist/lib/utils/CustomError.js +1 -1
  17. package/dist/lib/utils/FetchUtils-1.js +1 -1
  18. package/dist/lib/utils/Log.js +1 -1
  19. package/dist/lib/utils/fetch.js +1 -1
  20. package/dist/lib/utils/messages.js +1 -1
  21. package/dist/lib/utils/utils.d.ts +9 -0
  22. package/dist/lib/utils/utils.js +1 -1
  23. package/dist/lib/xcode/index.js +1 -1
  24. package/dist/lib/xcode/manifestSwiftTemplate.d.ts +1 -1
  25. package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
  26. package/dist/lib/xcode/xcodebuild.js +1 -1
  27. package/dist/lib/xcode/xcodeproject.js +1 -1
  28. package/dist/lib/xcode/xcrun.js +1 -1
  29. package/package.json +3 -2
  30. package/template/visionOSApp/Packages/RealityKitContent/.build/workspace-state.json +0 -7
  31. package/template/visionOSApp/Packages/RealityKitContent/.swiftpm/xcode/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  32. package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/ProjectData/main.json +0 -11
  33. package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/SceneMetadataList.json +0 -112
  34. package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/Settings.rcprojectdata +0 -17
  35. package/template/visionOSApp/Packages/RealityKitContent/Package.swift +0 -27
  36. package/template/visionOSApp/Packages/RealityKitContent/README.md +0 -3
  37. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda +0 -50
  38. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Materials/GridMaterial.usda +0 -216
  39. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda +0 -59
  40. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.swift +0 -4
  41. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +0 -12
  42. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +0 -6
  43. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Contents.json +0 -17
  44. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +0 -12
  45. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +0 -6
  46. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +0 -12
  47. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +0 -6
  48. package/template/visionOSApp/web-spatial/Assets.xcassets/Contents.json +0 -6
  49. package/template/visionOSApp/web-spatial/Info.plist +0 -33
  50. package/template/visionOSApp/web-spatial/Preview Content/Preview Assets.xcassets/Contents.json +0 -6
  51. package/template/visionOSApp/web-spatial/libs/EventEmitter.swift +0 -32
  52. package/template/visionOSApp/web-spatial/libs/SpatialComponent.swift +0 -31
  53. package/template/visionOSApp/web-spatial/libs/SpatialEntity.swift +0 -179
  54. package/template/visionOSApp/web-spatial/libs/SpatialInputComponent.swift +0 -26
  55. package/template/visionOSApp/web-spatial/libs/SpatialMeshResource.swift +0 -19
  56. package/template/visionOSApp/web-spatial/libs/SpatialModel3DComponent.swift +0 -51
  57. package/template/visionOSApp/web-spatial/libs/SpatialModelComponent.swift +0 -32
  58. package/template/visionOSApp/web-spatial/libs/SpatialObject.swift +0 -144
  59. package/template/visionOSApp/web-spatial/libs/SpatialPhysicallyBasedMaterial.swift +0 -19
  60. package/template/visionOSApp/web-spatial/libs/SpatialViewComponent.swift +0 -15
  61. package/template/visionOSApp/web-spatial/libs/SpatialWindowComponent.swift +0 -420
  62. package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +0 -149
  63. package/template/visionOSApp/web-spatial/libs/Utils/CommandManager.swift +0 -800
  64. package/template/visionOSApp/web-spatial/libs/Utils/Logger.swift +0 -36
  65. package/template/visionOSApp/web-spatial/libs/Utils/SceneManager.swift +0 -108
  66. package/template/visionOSApp/web-spatial/libs/Utils/WindowContainerMgr.swift +0 -113
  67. package/template/visionOSApp/web-spatial/libs/json/JsonParser.swift +0 -52
  68. package/template/visionOSApp/web-spatial/libs/uiKitDelegate/Window.swift +0 -34
  69. package/template/visionOSApp/web-spatial/libs/webView/UpdateSystem.swift +0 -33
  70. package/template/visionOSApp/web-spatial/libs/webView/backend/NativeWebView.swift +0 -319
  71. package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +0 -92
  72. package/template/visionOSApp/web-spatial/static-web/index.html +0 -9
  73. package/template/visionOSApp/web-spatial/views/HideViewModifier.swift +0 -17
  74. package/template/visionOSApp/web-spatial/views/ImmersiveView.swift +0 -24
  75. package/template/visionOSApp/web-spatial/views/LoadingView.swift +0 -25
  76. package/template/visionOSApp/web-spatial/views/MaterialWithBorderCornerModifier.swift +0 -82
  77. package/template/visionOSApp/web-spatial/views/OpenDismissHandlerUI.swift +0 -52
  78. package/template/visionOSApp/web-spatial/views/PlainWindowContainerView.swift +0 -84
  79. package/template/visionOSApp/web-spatial/views/SpatialModel3DView.swift +0 -193
  80. package/template/visionOSApp/web-spatial/views/SpatialViewUI.swift +0 -168
  81. package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +0 -186
  82. package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +0 -38
  83. package/template/visionOSApp/web-spatial/views/ui/NavView.swift +0 -125
  84. package/template/visionOSApp/web-spatial/web_spatialApp.swift +0 -158
  85. package/template/visionOSApp/web-spatial.xcodeproj/project.pbxproj +0 -686
  86. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  87. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  88. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -5
  89. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/WorkspaceSettings.xcsettings +0 -14
  90. package/template/visionOSApp/web-spatial.xcodeproj/xcshareddata/xcschemes/web-spatial.xcscheme +0 -115
  91. package/template/visionOSApp/web-spatial.xcodeproj/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +0 -27
  92. package/template/visionOSApp/web-spatialTests/web_spatialTests.swift +0 -34
@@ -1 +1 @@
1
- 'use strict';const _0x43d680=_0x4a8a;function _0x4a8a(_0x16cfb5,_0x8df0bd){const _0x1327b3=_0x1327();return _0x4a8a=function(_0x4a8a4e,_0x5b397b){_0x4a8a4e=_0x4a8a4e-0xe3;let _0x160f0=_0x1327b3[_0x4a8a4e];return _0x160f0;},_0x4a8a(_0x16cfb5,_0x8df0bd);}(function(_0x5ec66b,_0x5a112c){const _0x51f9a1=_0x4a8a,_0x6c1638=_0x5ec66b();while(!![]){try{const _0x3bef26=parseInt(_0x51f9a1(0x100))/0x1+-parseInt(_0x51f9a1(0xef))/0x2*(-parseInt(_0x51f9a1(0xfd))/0x3)+-parseInt(_0x51f9a1(0x105))/0x4+-parseInt(_0x51f9a1(0xf0))/0x5+parseInt(_0x51f9a1(0x11c))/0x6+-parseInt(_0x51f9a1(0xe8))/0x7+-parseInt(_0x51f9a1(0x119))/0x8*(parseInt(_0x51f9a1(0xff))/0x9);if(_0x3bef26===_0x5a112c)break;else _0x6c1638['push'](_0x6c1638['shift']());}catch(_0x4ac332){_0x6c1638['push'](_0x6c1638['shift']());}}}(_0x1327,0x3a83e));Object[_0x43d680(0xfc)](exports,'__esModule',{'value':!![]}),exports['messages']=void 0x0;const colors_1=require(_0x43d680(0xe6));exports[_0x43d680(0xf1)]={'promptInstallJdk':_0x43d680(0x102),'promptJdkPath':_0x43d680(0xe3),'messageDownloadJdk':'Downloading\x20JDK\x2011\x20to\x20','messageDownloadJdkSrc':_0x43d680(0xfe),'messageDecompressJdkSrc':_0x43d680(0x10e),'messageDownloadJdkBin':_0x43d680(0x112),'messageDecompressJdkBin':_0x43d680(0x117),'promptInstallSdk':'Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20Android\x20SDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20Android\x20SDK\x20installation)','promptSdkPath':_0x43d680(0xfb),'messageDownloadSdk':_0x43d680(0x11b),'errorSdkTerms':_0x43d680(0x114),'promptSdkTerms':_0x43d680(0x108)+(0x0,colors_1[_0x43d680(0xea)])(_0x43d680(0x118))+'?','messageDownloadAndroidSdk':_0x43d680(0x113),'messageDecompressAndroidSdk':'Decompressing\x20the\x20Android\x20SDK...','messageInstallingBuildTools':_0x43d680(0xee)+_0x43d680(0x11e),'messageGeneratingAndroidProject':_0x43d680(0x106),'messageCheckSuccess':(_0x21cf76,_0x46db05)=>{const _0x20d2a4=_0x43d680;return _0x20d2a4(0x104)+(0x0,colors_1['cyan'])(_0x21cf76)+'\x20'+(_0x46db05?_0x20d2a4(0xfa)+(0x0,colors_1[_0x20d2a4(0x121)])(_0x46db05):'')+_0x20d2a4(0xe5);},'errorMissingManifestParameter':_0x43d680(0x11a)+((0x0,colors_1[_0x43d680(0x121)])(_0x43d680(0xec))+_0x43d680(0x103)+(0x0,colors_1[_0x43d680(0x121)])('--manifest')),'messageInitializingWebManifest':_0x46855a=>{const _0x58cfad=_0x43d680;return _0x58cfad(0x115)+(0x0,colors_1[_0x58cfad(0x121)])(_0x46855a);},'messageInitializingLocalManifest':_0x4d46e1=>{const _0x3a219f=_0x43d680;return _0x3a219f(0xe9)+(0x0,colors_1[_0x3a219f(0x121)])(_0x4d46e1);},'messageInvalidIcon':_0x3cfc56=>{const _0x197527=_0x43d680;return _0x197527(0xeb)+(0x0,colors_1['cyan'])(_0x3cfc56);},'errorStartUrlNotReachable':_0x1e3ec0=>_0x43d680(0x10a)+_0x1e3ec0+'\x20can\x20not\x20be\x20accessible.'+'Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','warnFamilyPolicy':(0x0,colors_1[_0x43d680(0xf7)])((0x0,colors_1[_0x43d680(0xe7)])('WARNING:\x20'))+'Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible'+'\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.'+_0x43d680(0x101)+_0x43d680(0xf4)+(0x0,colors_1[_0x43d680(0x121)])(_0x43d680(0x110)),'promptIconUrl':_0x43d680(0x107),'errorInvalidUrl':_0x41a261=>{return'Invalid\x20URL:\x20'+_0x41a261;},'errorUrlMustBeImage':_0xd89f7b=>{const _0x4ff9a9=_0x43d680;return _0x4ff9a9(0x116)+_0xd89f7b+'.';},'promptVersionCode':_0x43d680(0x10f),'promptVersionName':_0x43d680(0xf8),'messageSigningKeyInformation':(0x0,colors_1['underline'])(_0x43d680(0x11d)+(0x0,colors_1['green'])(_0x43d680(0xf5))),'messageProjectGeneratedSuccess':_0x43d680(0xf6),'messageSigningKeyCreation':(0x0,colors_1[_0x43d680(0xea)])('\x0aSigning\x20key\x20creation'),'messageSigningKeyNotFound':_0x53d1dd=>{const _0x591b19=_0x43d680;return _0x591b19(0x111)+_0x53d1dd+_0x591b19(0x109);},'promptCreateKey':'Do\x20you\x20want\x20to\x20create\x20one\x20now?','promptKeyFullName':_0x43d680(0x10d),'promptKeyOrganizationalUnit':_0x43d680(0x10b),'promptKeyOrganization':'Organization\x20(eg:\x20Company\x20Name):','promptKeyCountry':_0x43d680(0xf9),'promptKeystorePassword':_0x43d680(0x10c),'promptKeyPassword':_0x43d680(0xed),'messageBuildingApp':'\x0aBuilding\x20the\x20Android\x20App...','messageEnterPasswords':(_0x37c03a,_0x10654a)=>{const _0x165e26=_0x43d680;return _0x165e26(0xf3)+(0x0,colors_1['cyan'])(_0x37c03a)+_0x165e26(0x11f)+(0x0,colors_1[_0x165e26(0x121)])(_0x10654a)+'.\x0a';},'errorMinLength':(_0x224505,_0x363253)=>{const _0x4e8c0a=_0x43d680;return _0x4e8c0a(0xf2)+_0x224505+_0x4e8c0a(0xe4)+_0x363253+'.';},'errorMaxLength':(_0x585b11,_0x269ef2)=>{const _0xd228d1=_0x43d680;return _0xd228d1(0x123)+_0x585b11+_0xd228d1(0xe4)+_0x269ef2+'.';},'errorInvalidInteger':_0x4e2a5b=>{const _0x5c86d6=_0x43d680;return _0x5c86d6(0x120)+_0x4e2a5b;},'messageApkSuccess':_0x29a712=>{const _0x55303f=_0x43d680;return'\x09-\x20Generated\x20Android\x20APK\x20at\x20'+(0x0,colors_1[_0x55303f(0x121)])(_0x29a712);},'missingUrlToCheck':_0x43d680(0x11a)+(''+(0x0,colors_1[_0x43d680(0x121)])(_0x43d680(0x122)))};function _0x1327(){const _0x1e8043=['defineProperty','1084449eZUrEX','Downloading\x20the\x20JDK\x2011\x20Sources...','225fsaUUO','393399PHvsSE','\x20Check\x20out\x20the\x20Play\x20for','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20JDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20JDK\x2011\x20installation)','\x20or\x20','\x20URL\x20','1318104IufmbN','Generating\x20Android\x20Project.','Icon\x20URL:','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','\x22.\x0a','URL\x20','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','Password\x20for\x20the\x20Key\x20Store:','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','Decompressing\x20the\x20JDK\x2011\x20Sources...','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','https://play.google.com/console/about/families/','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','Downloading\x20the\x20JDK\x2011\x20Binaries...','Downloading\x20the\x20Android\x20SDK...','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','Decompressing\x20the\x20JDK\x2011\x20Binaries...','https://developer.android.com/studio/terms.html','66384vySlvs','Missing\x20required\x20parameter\x20','Downloading\x20Android\x20SDK\x20to\x20','1405968cyiuxB','\x0aSigning\x20key\x20information\x20','license\x20agreement.','\x20and\x20alias\x20','Invalid\x20integer\x20provided:\x20','cyan','--url','Maximum\x20length\x20is\x20','Path\x20to\x20your\x20existing\x20JDK\x2011:','\x20but\x20input\x20is\x20','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','colors','yellow','743274GzWiDG','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','underline','Invalid\x20icon\x20path:\x20','--manifest-url','Password\x20for\x20the\x20Key:','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','2NDrIvW','531870OxjhQW','messages','Minimum\x20length\x20is\x20','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','(5/5)','\x0aProject\x20generated\x20successfully.','bold','Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','Country\x20(2\x20letter\x20code):','redirected\x20to\x20','Path\x20to\x20your\x20existing\x20Android\x20SDK:'];_0x1327=function(){return _0x1e8043;};return _0x1327();}
1
+ 'use strict';function _0x1f89(){const _0x27590d=['Downloading\x20JDK\x2011\x20to\x20','275678eBEADg','2934008SOBVHl','3RXnPhQ','Icon\x20URL:','Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','Path\x20to\x20your\x20existing\x20Android\x20SDK:','6EZzanJ','Downloading\x20Android\x20SDK\x20to\x20','WARNING:\x20','Decompressing\x20the\x20JDK\x2011\x20Binaries...','(5/5)','\x22.\x0a','defineProperty','1431864JEImlz','Minimum\x20length\x20is\x20','\x0aSigning\x20key\x20information\x20','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','Downloading\x20the\x20JDK\x2011\x20Binaries...','Missing\x20required\x20parameter\x20','Password\x20for\x20the\x20Key:','Country\x20(2\x20letter\x20code):','https://developer.android.com/studio/terms.html','Decompressing\x20the\x20JDK\x2011\x20Sources...','Do\x20you\x20want\x20to\x20create\x20one\x20now?','colors','Invalid\x20icon\x20path:\x20','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','\x20but\x20input\x20is\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','bold','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20Android\x20SDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20Android\x20SDK\x20installation)','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20JDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20JDK\x2011\x20installation)','underline','Downloading\x20the\x20JDK\x2011\x20Sources...','URL\x20','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','https://play.google.com/console/about/families/','green','Downloading\x20the\x20Android\x20SDK...','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','Password\x20for\x20the\x20Key\x20Store:','\x20and\x20alias\x20','--manifest','\x0aBuilding\x20the\x20Android\x20App...','355684WhpazB','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','cyan','\x20can\x20not\x20be\x20accessible.','582755NXiDEG','Invalid\x20URL:\x20','Maximum\x20length\x20is\x20','\x20or\x20','Decompressing\x20the\x20Android\x20SDK...','757388QIVbBO','\x20Check\x20out\x20the\x20Play\x20for','56510pzvxqT','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','messages','\x09-\x20Generated\x20Android\x20APK\x20at\x20','Generating\x20Android\x20Project.','927CzCtkn','\x0aProject\x20generated\x20successfully.','Invalid\x20integer\x20provided:\x20','\x0aSigning\x20key\x20creation'];_0x1f89=function(){return _0x27590d;};return _0x1f89();}const _0x50d904=_0x35bf;(function(_0xfdf6cd,_0x1928ab){const _0x303a08=_0x35bf,_0x496e10=_0xfdf6cd();while(!![]){try{const _0x363c9f=parseInt(_0x303a08(0xf9))/0x1+parseInt(_0x303a08(0x10f))/0x2+parseInt(_0x303a08(0xcc))/0x3*(parseInt(_0x303a08(0x103))/0x4)+parseInt(_0x303a08(0xfe))/0x5*(-parseInt(_0x303a08(0xd0))/0x6)+parseInt(_0x303a08(0xcb))/0x7+-parseInt(_0x303a08(0xd7))/0x8+-parseInt(_0x303a08(0x10a))/0x9*(parseInt(_0x303a08(0x105))/0xa);if(_0x363c9f===_0x1928ab)break;else _0x496e10['push'](_0x496e10['shift']());}catch(_0x1d1267){_0x496e10['push'](_0x496e10['shift']());}}}(_0x1f89,0x36cab));Object[_0x50d904(0xd6)](exports,'__esModule',{'value':!![]}),exports[_0x50d904(0x107)]=void 0x0;function _0x35bf(_0x3f6321,_0x33b9a2){const _0x1f890c=_0x1f89();return _0x35bf=function(_0x35bf6f,_0x375756){_0x35bf6f=_0x35bf6f-0xcb;let _0x54bc2f=_0x1f890c[_0x35bf6f];return _0x54bc2f;},_0x35bf(_0x3f6321,_0x33b9a2);}const colors_1=require(_0x50d904(0xe3));exports['messages']={'promptInstallJdk':_0x50d904(0xeb),'promptJdkPath':'Path\x20to\x20your\x20existing\x20JDK\x2011:','messageDownloadJdk':_0x50d904(0x10e),'messageDownloadJdkSrc':_0x50d904(0xed),'messageDecompressJdkSrc':_0x50d904(0xe1),'messageDownloadJdkBin':_0x50d904(0xdc),'messageDecompressJdkBin':_0x50d904(0xd3),'promptInstallSdk':_0x50d904(0xea),'promptSdkPath':_0x50d904(0xcf),'messageDownloadSdk':_0x50d904(0xd1),'errorSdkTerms':_0x50d904(0xe8),'promptSdkTerms':_0x50d904(0xfb)+(0x0,colors_1[_0x50d904(0xec)])(_0x50d904(0xe0))+'?','messageDownloadAndroidSdk':_0x50d904(0xf3),'messageDecompressAndroidSdk':_0x50d904(0x102),'messageInstallingBuildTools':_0x50d904(0xf0)+'license\x20agreement.','messageGeneratingAndroidProject':_0x50d904(0x109),'messageCheckSuccess':(_0x5363e6,_0x263252)=>{const _0x52cfdc=_0x50d904;return'\x20URL\x20'+(0x0,colors_1[_0x52cfdc(0xfc)])(_0x5363e6)+'\x20'+(_0x263252?'redirected\x20to\x20'+(0x0,colors_1['cyan'])(_0x263252):'')+'\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:';},'errorMissingManifestParameter':_0x50d904(0xdd)+((0x0,colors_1[_0x50d904(0xfc)])('--manifest-url')+_0x50d904(0x101)+(0x0,colors_1['cyan'])(_0x50d904(0xf7))),'messageInitializingWebManifest':_0x2fdeb4=>{const _0x28fcd5=_0x50d904;return'Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0x28fcd5(0xfc)])(_0x2fdeb4);},'messageInitializingLocalManifest':_0x3d4e24=>{const _0x9b9ec7=_0x50d904;return'Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0x9b9ec7(0xfc)])(_0x3d4e24);},'messageInvalidIcon':_0xd3c8c1=>{const _0x1a38b2=_0x50d904;return _0x1a38b2(0xe4)+(0x0,colors_1[_0x1a38b2(0xfc)])(_0xd3c8c1);},'errorStartUrlNotReachable':_0x5d1664=>_0x50d904(0xee)+_0x5d1664+_0x50d904(0xfd)+_0x50d904(0xfa),'warnFamilyPolicy':(0x0,colors_1[_0x50d904(0xe9)])((0x0,colors_1['yellow'])(_0x50d904(0xd2)))+_0x50d904(0xe5)+_0x50d904(0xda)+_0x50d904(0x104)+'\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a'+(0x0,colors_1[_0x50d904(0xfc)])(_0x50d904(0xf1)),'promptIconUrl':_0x50d904(0xcd),'errorInvalidUrl':_0x469308=>{const _0x1b871b=_0x50d904;return _0x1b871b(0xff)+_0x469308;},'errorUrlMustBeImage':_0x168b59=>{const _0x206ff4=_0x50d904;return _0x206ff4(0xdb)+_0x168b59+'.';},'promptVersionCode':_0x50d904(0xf4),'promptVersionName':_0x50d904(0xce),'messageSigningKeyInformation':(0x0,colors_1[_0x50d904(0xec)])(_0x50d904(0xd9)+(0x0,colors_1[_0x50d904(0xf2)])(_0x50d904(0xd4))),'messageProjectGeneratedSuccess':_0x50d904(0x10b),'messageSigningKeyCreation':(0x0,colors_1[_0x50d904(0xec)])(_0x50d904(0x10d)),'messageSigningKeyNotFound':_0x34985b=>{const _0x4fabeb=_0x50d904;return _0x4fabeb(0x106)+_0x34985b+_0x4fabeb(0xd5);},'promptCreateKey':_0x50d904(0xe2),'promptKeyFullName':_0x50d904(0xef),'promptKeyOrganizationalUnit':'Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','promptKeyOrganization':'Organization\x20(eg:\x20Company\x20Name):','promptKeyCountry':_0x50d904(0xdf),'promptKeystorePassword':_0x50d904(0xf5),'promptKeyPassword':_0x50d904(0xde),'messageBuildingApp':_0x50d904(0xf8),'messageEnterPasswords':(_0x86f437,_0x118e65)=>{const _0x4fbe47=_0x50d904;return _0x4fbe47(0xe6)+(0x0,colors_1[_0x4fbe47(0xfc)])(_0x86f437)+_0x4fbe47(0xf6)+(0x0,colors_1[_0x4fbe47(0xfc)])(_0x118e65)+'.\x0a';},'errorMinLength':(_0x172ab1,_0x3fd92c)=>{const _0x16e3b0=_0x50d904;return _0x16e3b0(0xd8)+_0x172ab1+'\x20but\x20input\x20is\x20'+_0x3fd92c+'.';},'errorMaxLength':(_0x4893b7,_0x135b84)=>{const _0x30c1cf=_0x50d904;return _0x30c1cf(0x100)+_0x4893b7+_0x30c1cf(0xe7)+_0x135b84+'.';},'errorInvalidInteger':_0x2d20ed=>{const _0x45f4e8=_0x50d904;return _0x45f4e8(0x10c)+_0x2d20ed;},'messageApkSuccess':_0xa995b0=>{const _0x54843d=_0x50d904;return _0x54843d(0x108)+(0x0,colors_1['cyan'])(_0xa995b0);},'missingUrlToCheck':_0x50d904(0xdd)+(''+(0x0,colors_1['cyan'])('--url'))};
@@ -1 +1,10 @@
1
1
  export declare function parseRouter(url: string): string;
2
+ /**
3
+ * get webspatial avp url
4
+ *
5
+ *
6
+ * @export
7
+ * @param {string} url
8
+ * @return {*} {string}
9
+ */
10
+ export declare function getAVPVersionUrl(url: string): string;
@@ -1 +1 @@
1
- 'use strict';const _0x43d6cd=_0x5db2;function _0x5db2(_0x10b58f,_0x14c9ce){const _0x32c2e3=_0x32c2();return _0x5db2=function(_0x5db204,_0x17b789){_0x5db204=_0x5db204-0x198;let _0x3d9184=_0x32c2e3[_0x5db204];return _0x3d9184;},_0x5db2(_0x10b58f,_0x14c9ce);}(function(_0x38d9f7,_0x37f594){const _0xa78400=_0x5db2,_0x3bdc7a=_0x38d9f7();while(!![]){try{const _0x2d054d=-parseInt(_0xa78400(0x19b))/0x1*(parseInt(_0xa78400(0x19c))/0x2)+parseInt(_0xa78400(0x1a1))/0x3+-parseInt(_0xa78400(0x1a6))/0x4*(-parseInt(_0xa78400(0x198))/0x5)+-parseInt(_0xa78400(0x19f))/0x6+parseInt(_0xa78400(0x19a))/0x7+-parseInt(_0xa78400(0x1a0))/0x8*(-parseInt(_0xa78400(0x1a4))/0x9)+parseInt(_0xa78400(0x1a5))/0xa*(parseInt(_0xa78400(0x19d))/0xb);if(_0x2d054d===_0x37f594)break;else _0x3bdc7a['push'](_0x3bdc7a['shift']());}catch(_0x5a7052){_0x3bdc7a['push'](_0x3bdc7a['shift']());}}}(_0x32c2,0xa996a));Object['defineProperty'](exports,_0x43d6cd(0x199),{'value':!![]}),exports[_0x43d6cd(0x1a2)]=parseRouter;function _0x32c2(){const _0x45433e=['4620138WJSNdf','53192SpmhvH','841323EfzxYp','parseRouter','pop','63IIAdMQ','3889010LCJwSI','308jGErKv','indexOf','14185KplhNo','__esModule','8371279uSJiFD','371xHcAfy','3588gcbgzF','11vefGKz','replace'];_0x32c2=function(){return _0x45433e;};return _0x32c2();}function parseRouter(_0x2885c5){const _0x4a3e69=_0x43d6cd;let _0x711fcd=_0x2885c5['split']('/');_0x711fcd[_0x4a3e69(0x1a3)]();let _0x1faf72=_0x711fcd['join']();while(_0x1faf72[_0x4a3e69(0x1a7)](',')>=0x0){_0x1faf72=_0x1faf72[_0x4a3e69(0x19e)](',','/');}return _0x1faf72;}
1
+ 'use strict';const _0x43bc65=_0x947d;function _0x947d(_0x546e1a,_0xc2b88d){const _0x3ffca5=_0x3ffc();return _0x947d=function(_0x947d7f,_0x46df55){_0x947d7f=_0x947d7f-0x15a;let _0x1bcf3a=_0x3ffca5[_0x947d7f];return _0x1bcf3a;},_0x947d(_0x546e1a,_0xc2b88d);}(function(_0x45f3ea,_0x22112e){const _0xe30fec=_0x947d,_0x2bc952=_0x45f3ea();while(!![]){try{const _0x40b620=-parseInt(_0xe30fec(0x16a))/0x1+-parseInt(_0xe30fec(0x167))/0x2*(-parseInt(_0xe30fec(0x164))/0x3)+parseInt(_0xe30fec(0x15d))/0x4*(-parseInt(_0xe30fec(0x168))/0x5)+parseInt(_0xe30fec(0x169))/0x6+parseInt(_0xe30fec(0x15a))/0x7*(parseInt(_0xe30fec(0x166))/0x8)+-parseInt(_0xe30fec(0x16d))/0x9*(parseInt(_0xe30fec(0x161))/0xa)+parseInt(_0xe30fec(0x15f))/0xb*(parseInt(_0xe30fec(0x160))/0xc);if(_0x40b620===_0x22112e)break;else _0x2bc952['push'](_0x2bc952['shift']());}catch(_0x2ef3){_0x2bc952['push'](_0x2bc952['shift']());}}}(_0x3ffc,0x67816));function _0x3ffc(){const _0x13a46d=['348XgHZqU','3060ZpFXZu','getAVPVersionUrl','split','3FfHtXq','slice','8fzonHp','542188cOBjVy','115YzUMlF','995250uNVeMy','324035JAZiUE','webspatial/avp/','indexOf','12546QQiYVz','4296733KmHNYj','defineProperty','__esModule','12468ktjsDC','pop','74140QZWoZr'];_0x3ffc=function(){return _0x13a46d;};return _0x3ffc();}Object[_0x43bc65(0x15b)](exports,_0x43bc65(0x15c),{'value':!![]}),exports['parseRouter']=parseRouter,exports[_0x43bc65(0x162)]=getAVPVersionUrl;function parseRouter(_0x446e3b){const _0x3f00e9=_0x43bc65;let _0x276d33=_0x446e3b[_0x3f00e9(0x163)]('/');_0x276d33[_0x3f00e9(0x15e)]();let _0x573394=_0x276d33['join']();while(_0x573394[_0x3f00e9(0x16c)](',')>=0x0){_0x573394=_0x573394['replace'](',','/');}return _0x573394;}function getAVPVersionUrl(_0xba9c0){const _0x543997=_0x43bc65,_0x3d5514=_0xba9c0['endsWith']('/'),_0x284945=_0x3d5514?_0xba9c0[_0x543997(0x165)](0x0,-0x1):_0xba9c0;if(_0x284945['endsWith']('/webspatial/avp'))return _0xba9c0;const _0x5bca02=_0x3d5514?'':'/';return''+_0xba9c0+_0x5bca02+_0x543997(0x16b);}
@@ -1 +1 @@
1
- 'use strict';const _0x2e8532=_0x3f32;(function(_0x6704f8,_0x2967e7){const _0x8b37d1=_0x3f32,_0x4d9ba1=_0x6704f8();while(!![]){try{const _0x1ebd5c=-parseInt(_0x8b37d1(0x1f0))/0x1+-parseInt(_0x8b37d1(0x209))/0x2*(-parseInt(_0x8b37d1(0x1f8))/0x3)+-parseInt(_0x8b37d1(0x1ff))/0x4+-parseInt(_0x8b37d1(0x1f4))/0x5*(parseInt(_0x8b37d1(0x20d))/0x6)+-parseInt(_0x8b37d1(0x1fe))/0x7*(parseInt(_0x8b37d1(0x1f2))/0x8)+parseInt(_0x8b37d1(0x1ef))/0x9+parseInt(_0x8b37d1(0x1ee))/0xa;if(_0x1ebd5c===_0x2967e7)break;else _0x4d9ba1['push'](_0x4d9ba1['shift']());}catch(_0x13d0cf){_0x4d9ba1['push'](_0x4d9ba1['shift']());}}}(_0x1579,0x69c2e));Object[_0x2e8532(0x1f3)](exports,_0x2e8532(0x1f9),{'value':!![]}),exports['XcodeManager']=void 0x0;const fs=require('fs'),resource_1=require(_0x2e8532(0x20b)),xcodeproject_1=require(_0x2e8532(0x1f5)),xcodebuild_1=require(_0x2e8532(0x205)),xcrun_1=require(_0x2e8532(0x1fa)),path_1=require(_0x2e8532(0x203));class XcodeManager{static async['parseProject'](_0x498cf1,_0x860068=![]){const _0x503882=_0x2e8532,_0x3f9c87=resource_1[_0x503882(0x204)]+_0x503882(0x1fb);await xcodeproject_1[_0x503882(0x208)][_0x503882(0x1fc)](_0x3f9c87,_0x498cf1),console['log'](_0x503882(0x1f7));!fs[_0x503882(0x207)](resource_1['PROJECT_EXPORT_DIRECTORY'])&&fs[_0x503882(0x1f1)](resource_1[_0x503882(0x1fd)],{'recursive':!![]});if(!_0x860068)await xcodebuild_1['default']['archive'](_0x498cf1[_0x503882(0x206)]);}static async[_0x2e8532(0x1f6)](_0x5abaea,_0x3d625a){const _0x583b50=_0x2e8532;if(_0x5abaea['u']&&_0x5abaea['p'])xcrun_1[_0x583b50(0x208)][_0x583b50(0x202)]((0x0,path_1[_0x583b50(0x200)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x3d625a[_0x583b50(0x20c)]+_0x583b50(0x20a)),_0x5abaea['u'],_0x5abaea['p'],!![]);else _0x5abaea['k']&&_0x5abaea['i']&&xcrun_1['default'][_0x583b50(0x202)]((0x0,path_1['join'])(resource_1[_0x583b50(0x1fd)],_0x3d625a[_0x583b50(0x20c)]+'.ipa'),_0x5abaea['k'],_0x5abaea['i'],![]);}static async[_0x2e8532(0x201)](_0x370c26){const _0x4c8011=_0x2e8532;await xcrun_1[_0x4c8011(0x208)]['runWithSimulator'](_0x370c26);}}function _0x3f32(_0x2374d9,_0xa4e4a1){const _0x157954=_0x1579();return _0x3f32=function(_0x3f32cf,_0x3cf261){_0x3f32cf=_0x3f32cf-0x1ee;let _0x353e7d=_0x157954[_0x3f32cf];return _0x353e7d;},_0x3f32(_0x2374d9,_0xa4e4a1);}exports['XcodeManager']=XcodeManager;function _0x1579(){const _0x3b26d3=['./xcodebuild','export','existsSync','default','54734ZFUTfW','.ipa','../resource','name','210EOyHAZ','9764700ZQziNC','3170880wsgSik','572818XMmjDn','mkdirSync','4176UwaENp','defineProperty','10325rSCniS','./xcodeproject','upload','write\x20project.pbxproj:\x20ok','75GPHLFU','__esModule','./xcrun','/web-spatial.xcodeproj/project.pbxproj','modify','PROJECT_EXPORT_DIRECTORY','10577UOgrTN','583728cWZzOE','join','runWithSimulator','uploadApp','path','PROJECT_DIRECTORY'];_0x1579=function(){return _0x3b26d3;};return _0x1579();}
1
+ 'use strict';const _0x214b83=_0x3380;(function(_0x2e0bbb,_0x274cf2){const _0x1240dd=_0x3380,_0x449348=_0x2e0bbb();while(!![]){try{const _0x30382b=-parseInt(_0x1240dd(0xca))/0x1+-parseInt(_0x1240dd(0xe9))/0x2*(-parseInt(_0x1240dd(0xe2))/0x3)+parseInt(_0x1240dd(0xcb))/0x4+-parseInt(_0x1240dd(0xd0))/0x5*(-parseInt(_0x1240dd(0xe5))/0x6)+-parseInt(_0x1240dd(0xcd))/0x7+parseInt(_0x1240dd(0xdf))/0x8*(parseInt(_0x1240dd(0xcf))/0x9)+parseInt(_0x1240dd(0xe4))/0xa*(-parseInt(_0x1240dd(0xdd))/0xb);if(_0x30382b===_0x274cf2)break;else _0x449348['push'](_0x449348['shift']());}catch(_0x398661){_0x449348['push'](_0x449348['shift']());}}}(_0x155f,0xe40d6));function _0x155f(){const _0xce6fb6=['PROJECT_DIRECTORY','./xcodeproject','/web-spatial.xcodeproj/project.pbxproj','PROJECT_EXPORT_DIRECTORY','../resource','11ZoMJmB','name','232COdXwK','join','modify','2817GHBCzn','upload','15015370EBrVFz','1101882OkBNdI','existsSync','uploadApp','.ipa','950FgijId','424740SuMedo','1747984KLRHpc','write\x20project.pbxproj:\x20ok','95592jbWpQr','archive','560907WjdJQI','5twBwCr','defineProperty','log','default','export','./xcrun','XcodeManager','path'];_0x155f=function(){return _0xce6fb6;};return _0x155f();}Object[_0x214b83(0xd1)](exports,'__esModule',{'value':!![]}),exports[_0x214b83(0xd6)]=void 0x0;function _0x3380(_0x3a5bc6,_0x4ebecd){const _0x155fc8=_0x155f();return _0x3380=function(_0x3380b8,_0x54a4b0){_0x3380b8=_0x3380b8-0xca;let _0x1feb78=_0x155fc8[_0x3380b8];return _0x1feb78;},_0x3380(_0x3a5bc6,_0x4ebecd);}const fs=require('fs'),resource_1=require(_0x214b83(0xdc)),xcodeproject_1=require(_0x214b83(0xd9)),xcodebuild_1=require('./xcodebuild'),xcrun_1=require(_0x214b83(0xd5)),path_1=require(_0x214b83(0xd7));class XcodeManager{static async['parseProject'](_0x595eef,_0x420b73=![]){const _0x593f5a=_0x214b83,_0x54ca6f=resource_1[_0x593f5a(0xd8)]+_0x593f5a(0xda);await xcodeproject_1['default'][_0x593f5a(0xe1)](_0x54ca6f,_0x595eef),console[_0x593f5a(0xd2)](_0x593f5a(0xcc));!fs[_0x593f5a(0xe6)](resource_1[_0x593f5a(0xdb)])&&fs['mkdirSync'](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]});if(!_0x420b73)await xcodebuild_1[_0x593f5a(0xd3)][_0x593f5a(0xce)](_0x595eef[_0x593f5a(0xd4)]);}static async[_0x214b83(0xe3)](_0x825742,_0x4c69e4){const _0x54fba4=_0x214b83;if(_0x825742['u']&&_0x825742['p'])xcrun_1[_0x54fba4(0xd3)]['uploadApp']((0x0,path_1[_0x54fba4(0xe0)])(resource_1[_0x54fba4(0xdb)],_0x4c69e4[_0x54fba4(0xde)]+'.ipa'),_0x825742['u'],_0x825742['p'],!![]);else _0x825742['k']&&_0x825742['i']&&xcrun_1[_0x54fba4(0xd3)][_0x54fba4(0xe7)]((0x0,path_1[_0x54fba4(0xe0)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x4c69e4[_0x54fba4(0xde)]+_0x54fba4(0xe8)),_0x825742['k'],_0x825742['i'],![]);}static async['runWithSimulator'](_0x35e44d){const _0x105553=_0x214b83;await xcrun_1[_0x105553(0xd3)]['runWithSimulator'](_0x35e44d);}}exports['XcodeManager']=XcodeManager;
@@ -1 +1 @@
1
- export declare const manifestSwiftTemplate = "\nimport Foundation\n\nvar pwaManager = PWAManager()\n\nstruct PWAManager: Codable {\n var isLocal: Bool = false\n var start_url: String = \"START_URL\"\n var scope: String = \"SCOPE\"\n var id: String = \"AppID\"\n\n var name: String = \"AppName\"\n var short_name: String = \"name\"\n var description: String = \"Description\"\n\n var display: PWADisplayMode = .minimal\n var display_override: [PWADisplayMode] = []\n var protocol_handlers: [PWAProtocol] = [PWAProtocol(protocolValue: \"\", url: \"\")]\n var mainScene: WindowContainerOptions = .init(\n defaultSize: .init(\n width: SceneWidth,\n height: SceneHeight\n ),\n resizability: SceneResizability\n )\n var useMainScene: Bool = true\n\n mutating func _init() {\n let urlType = start_url.split(separator: \"://\").first\n if !(urlType == \"http\" || urlType == \"https\") {\n start_url = Bundle.main.url(forResource: start_url, withExtension: \"\", subdirectory: \"\")!.absoluteString\n scope = \"file://\" + Bundle.main.bundlePath + \"/\" + scope\n scope = scope.replacingOccurrences(of: \" \", with: \"%20\")\n isLocal = true\n }\n\n if display_override.count > 0 {\n display = display_override[0]\n }\n\n for i in 0 ... protocol_handlers.count - 1 {\n let item = protocol_handlers[i]\n protocol_handlers[i].updateUrl(scope + item.url)\n }\n }\n\n func checkInScope(url: String) -> Bool {\n return url.starts(with: scope)\n }\n\n // web+spatial://test\n func checkInDeeplink(url: String) -> String {\n var linkUrl: String = url\n for item in protocol_handlers {\n if linkUrl.starts(with: item.protocolValue) {\n let queryString: String = linkUrl.replacingOccurrences(of: item.protocolValue, with: \"\").addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!\n linkUrl = item.url.replacingOccurrences(of: \"%s\", with: item.protocolValue + queryString)\n }\n }\n logger.debug(linkUrl)\n return linkUrl\n }\n \n func getLocalResourceURL(url: String) -> String{\n let path:String = String(url.split(separator: \"file://\").first!.split(separator: \"?\").first!)\n let root:String = String(url.split(separator: \"?\").first!)\n let params = String(url.split(separator: \"file://\" + root).first!)\n var resource:String = Bundle.main.url(forResource: path, withExtension: \"\", subdirectory: \"\")?.absoluteString ?? \"\"\n if resource == \"\" {\n resource = Bundle.main.url(forResource: \"static-web\" + path, withExtension: \"\", subdirectory: \"\")?.absoluteString ?? \"\"\n }\n if resource == \"\" {\n return url\n }\n resource += \"?\" + params\n return resource\n }\n}\n\nenum PWADisplayMode: Codable {\n case minimal\n case standalone\n}\n\nstruct PWAProtocol: Codable {\n var protocolValue: String = \"\"\n var url: String = \"\"\n\n mutating func updateUrl(_ str: String) {\n url = str\n }\n}\n\n";
1
+ export declare const manifestSwiftTemplate = "\nimport Foundation\n\nvar pwaManager = PWAManager()\n\nstruct PWAManager: Codable {\n var isLocal: Bool = false\n var start_url: String = \"START_URL\"\n var scope: String = \"SCOPE\"\n var id: String = \"AppID\"\n\n var name: String = \"AppName\"\n var short_name: String = \"name\"\n var description: String = \"Description\"\n\n var display: PWADisplayMode = .minimal\n var display_override: [PWADisplayMode] = []\n var protocol_handlers: [PWAProtocol] = [PWAProtocol(protocolValue: \"\", url: \"\")]\n var mainScene: WindowContainerOptions = .init(\n defaultSize: .init(\n width: SceneWidth,\n height: SceneHeight\n ),\n resizability: SceneResizability\n )\n var useMainScene: Bool = USE_MAIN_SCENE\n\n mutating func _init() {\n let urlType = start_url.split(separator: \"://\").first\n if !(urlType == \"http\" || urlType == \"https\") {\n start_url = Bundle.main.url(forResource: start_url, withExtension: \"\", subdirectory: \"\")!.absoluteString\n scope = \"file://\" + Bundle.main.bundlePath + \"/\" + scope\n scope = scope.replacingOccurrences(of: \" \", with: \"%20\")\n isLocal = true\n }\n\n if display_override.count > 0 {\n display = display_override[0]\n }\n\n for i in 0 ... protocol_handlers.count - 1 {\n let item = protocol_handlers[i]\n protocol_handlers[i].updateUrl(scope + item.url)\n }\n }\n\n func checkInScope(url: String) -> Bool {\n return url.starts(with: scope)\n }\n\n // web+spatial://test\n func checkInDeeplink(url: String) -> String {\n var linkUrl: String = url\n for item in protocol_handlers {\n if linkUrl.starts(with: item.protocolValue) {\n let queryString: String = linkUrl.replacingOccurrences(of: item.protocolValue, with: \"\").addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!\n linkUrl = item.url.replacingOccurrences(of: \"%s\", with: item.protocolValue + queryString)\n }\n }\n logger.debug(linkUrl)\n return linkUrl\n }\n \n func getLocalResourceURL(url: String) -> String{\n let path:String = String(url.split(separator: \"file://\").first!.split(separator: \"?\").first!)\n let root:String = String(url.split(separator: \"?\").first!)\n let params = String(url.split(separator: \"file://\" + root).first!)\n var resource:String = Bundle.main.url(forResource: path, withExtension: \"\", subdirectory: \"\")?.absoluteString ?? \"\"\n if resource == \"\" {\n resource = Bundle.main.url(forResource: \"static-web\" + path, withExtension: \"\", subdirectory: \"\")?.absoluteString ?? \"\"\n }\n if resource == \"\" {\n return url\n }\n resource += \"?\" + params\n return resource\n }\n}\n\nenum PWADisplayMode: Codable {\n case minimal\n case standalone\n}\n\nstruct PWAProtocol: Codable {\n var protocolValue: String = \"\"\n var url: String = \"\"\n\n mutating func updateUrl(_ str: String) {\n url = str\n }\n}\n\n";
@@ -1 +1 @@
1
- 'use strict';var _0x1af3c0=_0x32dc;function _0x2426(){var _0x30295e=['73927wPHqUJ','5xfavoS','2913310ixgtQb','190viqldY','5255968ZNxDNt','manifestSwiftTemplate','1094LnloJl','defineProperty','__esModule','300rrffkX','9FIwFpT','64163KGfnRj','228XGPQXQ','365940cLUUAf','812703pCyPOL','\x0aimport\x20Foundation\x0a\x0avar\x20pwaManager\x20=\x20PWAManager()\x0a\x0astruct\x20PWAManager:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20isLocal:\x20Bool\x20=\x20false\x0a\x20\x20\x20\x20var\x20start_url:\x20String\x20=\x20\x22START_URL\x22\x0a\x20\x20\x20\x20var\x20scope:\x20String\x20=\x20\x22SCOPE\x22\x0a\x20\x20\x20\x20var\x20id:\x20String\x20=\x20\x22AppID\x22\x0a\x0a\x20\x20\x20\x20var\x20name:\x20String\x20=\x20\x22AppName\x22\x0a\x20\x20\x20\x20var\x20short_name:\x20String\x20=\x20\x22name\x22\x0a\x20\x20\x20\x20var\x20description:\x20String\x20=\x20\x22Description\x22\x0a\x0a\x20\x20\x20\x20var\x20display:\x20PWADisplayMode\x20=\x20.minimal\x0a\x20\x20\x20\x20var\x20display_override:\x20[PWADisplayMode]\x20=\x20[]\x0a\x20\x20\x20\x20var\x20protocol_handlers:\x20[PWAProtocol]\x20=\x20[PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)]\x0a\x20\x20\x20\x20var\x20mainScene:\x20WindowContainerOptions\x20=\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20defaultSize:\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20SceneWidth,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20SceneHeight\x0a\x20\x20\x20\x20\x20\x20\x20\x20),\x0a\x20\x20\x20\x20\x20\x20\x20\x20resizability:\x20SceneResizability\x0a\x20\x20\x20\x20)\x0a\x20\x20\x20\x20var\x20useMainScene:\x20Bool\x20=\x20true\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22file://\x22\x20+\x20Bundle.main.bundlePath\x20+\x20\x22/\x22\x20+\x20scope\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20scope.replacingOccurrences(of:\x20\x22\x20\x22,\x20with:\x20\x22%20\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path:String\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20root:String\x20=\x20String(url.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20params\x20=\x20String(url.split(separator:\x20\x22file://\x22\x20+\x20root).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:String\x20=\x20Bundle.main.url(forResource:\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20params\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a'];_0x2426=function(){return _0x30295e;};return _0x2426();}(function(_0x108367,_0x3a3c9e){var _0x5ac62f=_0x32dc,_0x32dc03=_0x108367();while(!![]){try{var _0xd4e979=parseInt(_0x5ac62f(0x6c))/0x1*(-parseInt(_0x5ac62f(0x79))/0x2)+parseInt(_0x5ac62f(0x74))/0x3+parseInt(_0x5ac62f(0x73))/0x4*(-parseInt(_0x5ac62f(0x77))/0x5)+parseInt(_0x5ac62f(0x72))/0x6*(-parseInt(_0x5ac62f(0x76))/0x7)+-parseInt(_0x5ac62f(0x6a))/0x8*(-parseInt(_0x5ac62f(0x70))/0x9)+parseInt(_0x5ac62f(0x78))/0xa+-parseInt(_0x5ac62f(0x71))/0xb*(parseInt(_0x5ac62f(0x6f))/0xc);if(_0xd4e979===_0x3a3c9e)break;else _0x32dc03['push'](_0x32dc03['shift']());}catch(_0x524e8f){_0x32dc03['push'](_0x32dc03['shift']());}}}(_0x2426,0x745fe));function _0x32dc(_0x238ab9,_0x272713){var _0x2426d0=_0x2426();return _0x32dc=function(_0x32dcc6,_0x4688ce){_0x32dcc6=_0x32dcc6-0x6a;var _0x19eac1=_0x2426d0[_0x32dcc6];return _0x19eac1;},_0x32dc(_0x238ab9,_0x272713);}Object[_0x1af3c0(0x6d)](exports,_0x1af3c0(0x6e),{'value':!![]}),exports[_0x1af3c0(0x6b)]=void 0x0,exports['manifestSwiftTemplate']=_0x1af3c0(0x75);
1
+ 'use strict';var _0x284a49=_0x2d1a;(function(_0x4fe391,_0xf535c4){var _0x3c381c=_0x2d1a,_0x380353=_0x4fe391();while(!![]){try{var _0x23733d=-parseInt(_0x3c381c(0x1d2))/0x1+-parseInt(_0x3c381c(0x1cf))/0x2*(-parseInt(_0x3c381c(0x1d6))/0x3)+parseInt(_0x3c381c(0x1cd))/0x4*(-parseInt(_0x3c381c(0x1ce))/0x5)+-parseInt(_0x3c381c(0x1d7))/0x6+-parseInt(_0x3c381c(0x1d0))/0x7+parseInt(_0x3c381c(0x1d3))/0x8*(-parseInt(_0x3c381c(0x1d5))/0x9)+-parseInt(_0x3c381c(0x1d4))/0xa*(-parseInt(_0x3c381c(0x1d9))/0xb);if(_0x23733d===_0xf535c4)break;else _0x380353['push'](_0x380353['shift']());}catch(_0xd7d9ca){_0x380353['push'](_0x380353['shift']());}}}(_0x1a50,0x437fd));Object[_0x284a49(0x1d1)](exports,'__esModule',{'value':!![]}),exports['manifestSwiftTemplate']=void 0x0,exports[_0x284a49(0x1d8)]='\x0aimport\x20Foundation\x0a\x0avar\x20pwaManager\x20=\x20PWAManager()\x0a\x0astruct\x20PWAManager:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20isLocal:\x20Bool\x20=\x20false\x0a\x20\x20\x20\x20var\x20start_url:\x20String\x20=\x20\x22START_URL\x22\x0a\x20\x20\x20\x20var\x20scope:\x20String\x20=\x20\x22SCOPE\x22\x0a\x20\x20\x20\x20var\x20id:\x20String\x20=\x20\x22AppID\x22\x0a\x0a\x20\x20\x20\x20var\x20name:\x20String\x20=\x20\x22AppName\x22\x0a\x20\x20\x20\x20var\x20short_name:\x20String\x20=\x20\x22name\x22\x0a\x20\x20\x20\x20var\x20description:\x20String\x20=\x20\x22Description\x22\x0a\x0a\x20\x20\x20\x20var\x20display:\x20PWADisplayMode\x20=\x20.minimal\x0a\x20\x20\x20\x20var\x20display_override:\x20[PWADisplayMode]\x20=\x20[]\x0a\x20\x20\x20\x20var\x20protocol_handlers:\x20[PWAProtocol]\x20=\x20[PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)]\x0a\x20\x20\x20\x20var\x20mainScene:\x20WindowContainerOptions\x20=\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20defaultSize:\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20SceneWidth,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20SceneHeight\x0a\x20\x20\x20\x20\x20\x20\x20\x20),\x0a\x20\x20\x20\x20\x20\x20\x20\x20resizability:\x20SceneResizability\x0a\x20\x20\x20\x20)\x0a\x20\x20\x20\x20var\x20useMainScene:\x20Bool\x20=\x20USE_MAIN_SCENE\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22file://\x22\x20+\x20Bundle.main.bundlePath\x20+\x20\x22/\x22\x20+\x20scope\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20scope.replacingOccurrences(of:\x20\x22\x20\x22,\x20with:\x20\x22%20\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path:String\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20root:String\x20=\x20String(url.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20params\x20=\x20String(url.split(separator:\x20\x22file://\x22\x20+\x20root).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:String\x20=\x20Bundle.main.url(forResource:\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20params\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a';function _0x2d1a(_0x42d8aa,_0x383434){var _0x1a50bf=_0x1a50();return _0x2d1a=function(_0x2d1a5c,_0x836217){_0x2d1a5c=_0x2d1a5c-0x1cd;var _0x3a5c35=_0x1a50bf[_0x2d1a5c];return _0x3a5c35;},_0x2d1a(_0x42d8aa,_0x383434);}function _0x1a50(){var _0x4e9da4=['240qoXqbv','1803429GOpRdS','147999MkRMnh','1630860ysZfpY','manifestSwiftTemplate','473121qtPanf','4wVvdCM','1753595KserEK','6TrxTil','370335LQNSJJ','defineProperty','27971HgqcFk','8IltUsn'];_0x1a50=function(){return _0x4e9da4;};return _0x1a50();}
@@ -1 +1 @@
1
- 'use strict';const _0x46d3c5=_0x2b97;(function(_0x5967f6,_0x476db8){const _0xda2712=_0x2b97,_0x509d0e=_0x5967f6();while(!![]){try{const _0x54ed81=-parseInt(_0xda2712(0xb1))/0x1+-parseInt(_0xda2712(0xc8))/0x2*(-parseInt(_0xda2712(0xdc))/0x3)+-parseInt(_0xda2712(0xda))/0x4+parseInt(_0xda2712(0xca))/0x5*(-parseInt(_0xda2712(0xd2))/0x6)+parseInt(_0xda2712(0xc9))/0x7+-parseInt(_0xda2712(0xb7))/0x8+parseInt(_0xda2712(0xd5))/0x9*(parseInt(_0xda2712(0xb0))/0xa);if(_0x54ed81===_0x476db8)break;else _0x509d0e['push'](_0x509d0e['shift']());}catch(_0x51ae85){_0x509d0e['push'](_0x509d0e['shift']());}}}(_0x427c,0x76035));function _0x427c(){const _0x2cb715=['../resource','74nzpOKB','533099qPkZlN','5TNITys','PROJECT_DIRECTORY','./pack','join','PROJECT_EXPORT_DIRECTORY','mkdirSync','list','line','1643286CZfgiM','XcodebuildCMD','\x20-scheme\x20','18VirlZC','\x20-destination\x20\x27','allowProvisioningUpdates','\x20-allowProvisioningUpdates','project','1570436xZhUKr','web-spatial','19821mKyHuJ','destination','clean','\x20-archivePath\x20','xcodebuild','existsSync','4568930zIkLtW','77774dMvnhG','toString','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','\x20-list','\x20-exportArchive\x20-archivePath\x20','ExportOptions.plist','54056bXeYJw','PROJECT_BUILD_DIRECTORY','child_process','output','EXPORT\x20SUCCEEDED','defineProperty','\x20clean','copyDir','\x20archive','../resource/file','\x20-exportPath\x20','scheme','log','__esModule','pack.xcarchive','archive'];_0x427c=function(){return _0x2cb715;};return _0x427c();}Object[_0x46d3c5(0xbc)](exports,_0x46d3c5(0xc4),{'value':!![]}),exports[_0x46d3c5(0xd3)]=void 0x0;function _0x2b97(_0x741c95,_0x580d06){const _0x427c18=_0x427c();return _0x2b97=function(_0x2b970f,_0x305fcf){_0x2b970f=_0x2b970f-0xac;let _0x16ee40=_0x427c18[_0x2b970f];return _0x16ee40;},_0x2b97(_0x741c95,_0x580d06);}const fs=require('fs'),path_1=require('path'),resource_1=require(_0x46d3c5(0xc7)),semver_1=require('semver'),file_1=require(_0x46d3c5(0xc0)),{execSync,exec}=require(_0x46d3c5(0xb9));class Xcodebuild{static async[_0x46d3c5(0xd9)](){const _0x318f9a=_0x46d3c5;try{await new Promise((_0x4ba206,_0xccd9c)=>{const _0x185718=_0x2b97,_0x21eee0=resource_1[_0x185718(0xcb)]+'/web-spatial.xcodeproj',_0x5bb26a=execSync(new XcodebuildCMD()[_0x185718(0xd9)](_0x21eee0)[_0x185718(0xd0)]()[_0x185718(0xd1)]);console[_0x185718(0xc3)](_0x5bb26a[_0x185718(0xb2)]()),_0x4ba206(_0x5bb26a);});}catch(_0x3c5795){console[_0x318f9a(0xc3)](_0x3c5795);}}static async['list'](){const _0x15fbee=_0x46d3c5;try{await new Promise((_0x1b66bb,_0x31c19f)=>{const _0x2aba87=_0x2b97,_0x3ab537=resource_1[_0x2aba87(0xcb)]+'/web-spatial.xcodeproj',_0x3f1976=execSync(new XcodebuildCMD()[_0x2aba87(0xd9)](_0x3ab537)[_0x2aba87(0xd0)]()['line']);console[_0x2aba87(0xc3)](_0x3f1976[_0x2aba87(0xb2)]()),_0x1b66bb(_0x3f1976);});}catch(_0x1230fb){console[_0x15fbee(0xc3)](_0x1230fb);}}static async[_0x46d3c5(0xc6)](_0x1e04e6){const _0x593f97=_0x46d3c5;try{return console['log']('start\x20archive'),!fs[_0x593f97(0xaf)](resource_1[_0x593f97(0xce)])&&fs[_0x593f97(0xcf)](resource_1[_0x593f97(0xce)],{'recursive':!![]}),await new Promise((_0x53d495,_0x38ee2c)=>{const _0x4b11e0=_0x593f97,_0x23c859=resource_1['PROJECT_DIRECTORY']+'/web-spatial.xcodeproj',_0x3df410=execSync(new XcodebuildCMD()['project'](_0x23c859)[_0x4b11e0(0xc2)](_0x4b11e0(0xdb))['archive']((0x0,path_1[_0x4b11e0(0xcd)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x4b11e0(0xcc)))[_0x4b11e0(0xac)]()['line']);let _0x4765f7=_0x3df410[_0x4b11e0(0xb2)]();if(_0x4765f7['indexOf']('ARCHIVE\x20SUCCEEDED')>0x0){console[_0x4b11e0(0xc3)]('-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------'),console[_0x4b11e0(0xc3)]('start\x20export');const _0xeea92d=execSync(new XcodebuildCMD()[_0x4b11e0(0xba)]((0x0,path_1[_0x4b11e0(0xcd)])(resource_1[_0x4b11e0(0xb8)],_0x4b11e0(0xc5)),resource_1['PROJECT_EXPORT_DIRECTORY'],(0x0,path_1[_0x4b11e0(0xcd)])(resource_1[_0x4b11e0(0xb8)],_0x4b11e0(0xb6)))[_0x4b11e0(0xd7)]()[_0x4b11e0(0xd1)]);_0x4765f7=_0xeea92d[_0x4b11e0(0xb2)]();if(_0x4765f7['indexOf'](_0x4b11e0(0xbb))>0x0){if(_0x1e04e6){const _0x1d2916=(0x0,path_1['join'])(process['cwd'](),_0x1e04e6);!fs[_0x4b11e0(0xaf)](_0x1d2916)&&fs[_0x4b11e0(0xcf)](_0x1d2916,{'recursive':!![]}),(0x0,file_1[_0x4b11e0(0xbe)])(resource_1[_0x4b11e0(0xce)],_0x1d2916);}console[_0x4b11e0(0xc3)](_0x4b11e0(0xb3)),_0x53d495(!![]);}(0x0,semver_1[_0x4b11e0(0xac)])(resource_1[_0x4b11e0(0xb8)]);}_0x53d495(![]);});}catch(_0x266ab0){console[_0x593f97(0xc3)](_0x266ab0);}}}exports['default']=Xcodebuild;class XcodebuildCMD{constructor(){const _0x282586=_0x46d3c5;this['line']=_0x282586(0xae);}[_0x46d3c5(0xd9)](_0x35fc4b){const _0x20a992=_0x46d3c5;return this[_0x20a992(0xd1)]+='\x20-project\x20'+_0x35fc4b,this;}[_0x46d3c5(0xd0)](){const _0x598714=_0x46d3c5;return this[_0x598714(0xd1)]+=_0x598714(0xb4),this;}['scheme'](_0x4c6709){const _0x27f392=_0x46d3c5;return this['line']+=_0x27f392(0xd4)+_0x4c6709,this;}[_0x46d3c5(0xc6)](_0x4f2083){const _0x2dabbc=_0x46d3c5;return this[_0x2dabbc(0xd1)]+=_0x2dabbc(0xad)+_0x4f2083+_0x2dabbc(0xbf),this;}['allowProvisioningUpdates'](){const _0x5234e1=_0x46d3c5;return this[_0x5234e1(0xd1)]+=_0x5234e1(0xd8),this;}[_0x46d3c5(0xdd)](_0x4d2741){const _0x3f7133=_0x46d3c5;return this[_0x3f7133(0xd1)]+=_0x3f7133(0xd6)+_0x4d2741+'\x27',this;}[_0x46d3c5(0xba)](_0xd5441c,_0x1d8188,_0x383e8c){const _0x183471=_0x46d3c5;return this['line']+=_0x183471(0xb5)+_0xd5441c+_0x183471(0xc1)+_0x1d8188+'\x20-exportOptionsPlist\x20'+_0x383e8c,this;}[_0x46d3c5(0xac)](){const _0x3a12ee=_0x46d3c5;return this[_0x3a12ee(0xd1)]+=_0x3a12ee(0xbd),this;}}exports['XcodebuildCMD']=XcodebuildCMD;
1
+ 'use strict';const _0x206dec=_0xaf45;(function(_0x1f6240,_0x7295db){const _0x5a1aac=_0xaf45,_0x557bd4=_0x1f6240();while(!![]){try{const _0xdad1c2=-parseInt(_0x5a1aac(0xf6))/0x1+-parseInt(_0x5a1aac(0x108))/0x2+-parseInt(_0x5a1aac(0xe6))/0x3*(parseInt(_0x5a1aac(0xe0))/0x4)+-parseInt(_0x5a1aac(0x10b))/0x5*(-parseInt(_0x5a1aac(0xdf))/0x6)+-parseInt(_0x5a1aac(0x10a))/0x7+parseInt(_0x5a1aac(0xfe))/0x8+parseInt(_0x5a1aac(0xff))/0x9*(parseInt(_0x5a1aac(0x10c))/0xa);if(_0xdad1c2===_0x7295db)break;else _0x557bd4['push'](_0x557bd4['shift']());}catch(_0x3c5564){_0x557bd4['push'](_0x557bd4['shift']());}}}(_0x2aa5,0xd3370));function _0x2aa5(){const _0x54d4ff=['\x20-exportOptionsPlist\x20','2963456vJUZYP','279bNPpKO','project','\x20-project\x20','__esModule','archive','defineProperty','log','PROJECT_BUILD_DIRECTORY','start\x20export','777086tgxYsp','output','1652350aQHNrl','2605EJTnsb','204950KBjdoj','mkdirSync','web-spatial','toString','list','16866iXnJqs','1484kjaBZo','existsSync','cwd','PROJECT_DIRECTORY','ARCHIVE\x20SUCCEEDED','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','6759GXCBXV','copyDir','semver','indexOf','../resource','allowProvisioningUpdates','clean','line','PROJECT_EXPORT_DIRECTORY','\x20-scheme\x20','default','start\x20archive','/web-spatial.xcodeproj','\x20-exportPath\x20','scheme','\x20clean','144716oAJNNh','child_process','./pack','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','ExportOptions.plist','XcodebuildCMD','join'];_0x2aa5=function(){return _0x54d4ff;};return _0x2aa5();}Object[_0x206dec(0x104)](exports,_0x206dec(0x102),{'value':!![]}),exports[_0x206dec(0xfb)]=void 0x0;const fs=require('fs'),path_1=require('path'),resource_1=require(_0x206dec(0xea)),semver_1=require(_0x206dec(0xe8)),file_1=require('../resource/file'),{execSync,exec}=require(_0x206dec(0xf7));class Xcodebuild{static async['project'](){const _0x13cf9e=_0x206dec;try{await new Promise((_0x2aa1cf,_0x21fd5f)=>{const _0x1033d5=_0xaf45,_0x4a90a2=resource_1[_0x1033d5(0xe3)]+_0x1033d5(0xf2),_0x4e3ad2=execSync(new XcodebuildCMD()[_0x1033d5(0x100)](_0x4a90a2)[_0x1033d5(0xde)]()[_0x1033d5(0xed)]);console[_0x1033d5(0x105)](_0x4e3ad2[_0x1033d5(0xdd)]()),_0x2aa1cf(_0x4e3ad2);});}catch(_0x2ec05a){console[_0x13cf9e(0x105)](_0x2ec05a);}}static async[_0x206dec(0xde)](){const _0x274db6=_0x206dec;try{await new Promise((_0x2f54a3,_0x5970a3)=>{const _0x174265=_0xaf45,_0x57446c=resource_1[_0x174265(0xe3)]+'/web-spatial.xcodeproj',_0x34c069=execSync(new XcodebuildCMD()[_0x174265(0x100)](_0x57446c)[_0x174265(0xde)]()['line']);console[_0x174265(0x105)](_0x34c069[_0x174265(0xdd)]()),_0x2f54a3(_0x34c069);});}catch(_0xc241c4){console[_0x274db6(0x105)](_0xc241c4);}}static async[_0x206dec(0x103)](_0xc61d09){const _0x30ba12=_0x206dec;try{return console[_0x30ba12(0x105)](_0x30ba12(0xf1)),!fs[_0x30ba12(0xe1)](resource_1[_0x30ba12(0xee)])&&fs[_0x30ba12(0xdb)](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]}),await new Promise((_0x17e984,_0x23ac27)=>{const _0x1fce01=_0x30ba12,_0x4acd1c=resource_1[_0x1fce01(0xe3)]+_0x1fce01(0xf2),_0x469245=execSync(new XcodebuildCMD()[_0x1fce01(0x100)](_0x4acd1c)[_0x1fce01(0xf4)](_0x1fce01(0xdc))['archive']((0x0,path_1[_0x1fce01(0xfc)])(resource_1[_0x1fce01(0x106)],_0x1fce01(0xf8)))[_0x1fce01(0xec)]()['line']);let _0xbc8608=_0x469245['toString']();if(_0xbc8608[_0x1fce01(0xe9)](_0x1fce01(0xe4))>0x0){console[_0x1fce01(0x105)](_0x1fce01(0xf9)),console[_0x1fce01(0x105)](_0x1fce01(0x107));const _0x587be4=execSync(new XcodebuildCMD()[_0x1fce01(0x109)]((0x0,path_1[_0x1fce01(0xfc)])(resource_1[_0x1fce01(0x106)],'pack.xcarchive'),resource_1['PROJECT_EXPORT_DIRECTORY'],(0x0,path_1['join'])(resource_1[_0x1fce01(0x106)],_0x1fce01(0xfa)))['allowProvisioningUpdates']()['line']);_0xbc8608=_0x587be4[_0x1fce01(0xdd)]();if(_0xbc8608[_0x1fce01(0xe9)]('EXPORT\x20SUCCEEDED')>0x0){if(_0xc61d09){const _0x8ce001=(0x0,path_1[_0x1fce01(0xfc)])(process[_0x1fce01(0xe2)](),_0xc61d09);!fs[_0x1fce01(0xe1)](_0x8ce001)&&fs[_0x1fce01(0xdb)](_0x8ce001,{'recursive':!![]}),(0x0,file_1[_0x1fce01(0xe7)])(resource_1[_0x1fce01(0xee)],_0x8ce001);}console['log'](_0x1fce01(0xe5)),_0x17e984(!![]);}(0x0,semver_1['clean'])(resource_1[_0x1fce01(0x106)]);}_0x17e984(![]);});}catch(_0x46929d){console[_0x30ba12(0x105)](_0x46929d);}}}exports[_0x206dec(0xf0)]=Xcodebuild;function _0xaf45(_0x130760,_0x3869da){const _0x2aa5ad=_0x2aa5();return _0xaf45=function(_0xaf45c5,_0x2b02fa){_0xaf45c5=_0xaf45c5-0xdb;let _0x3b66e3=_0x2aa5ad[_0xaf45c5];return _0x3b66e3;},_0xaf45(_0x130760,_0x3869da);}class XcodebuildCMD{constructor(){const _0x590981=_0x206dec;this[_0x590981(0xed)]='xcodebuild';}[_0x206dec(0x100)](_0x51d0ed){const _0x5b732e=_0x206dec;return this['line']+=_0x5b732e(0x101)+_0x51d0ed,this;}[_0x206dec(0xde)](){const _0x464e68=_0x206dec;return this[_0x464e68(0xed)]+='\x20-list',this;}[_0x206dec(0xf4)](_0x305fe8){const _0x28df03=_0x206dec;return this[_0x28df03(0xed)]+=_0x28df03(0xef)+_0x305fe8,this;}[_0x206dec(0x103)](_0x5941fe){const _0x716c07=_0x206dec;return this[_0x716c07(0xed)]+='\x20-archivePath\x20'+_0x5941fe+'\x20archive',this;}[_0x206dec(0xeb)](){const _0x4c864c=_0x206dec;return this[_0x4c864c(0xed)]+='\x20-allowProvisioningUpdates',this;}['destination'](_0x268fab){const _0x3a2cc7=_0x206dec;return this[_0x3a2cc7(0xed)]+='\x20-destination\x20\x27'+_0x268fab+'\x27',this;}['output'](_0x28c797,_0x331eb3,_0x1013e8){const _0x12b23d=_0x206dec;return this['line']+='\x20-exportArchive\x20-archivePath\x20'+_0x28c797+_0x12b23d(0xf3)+_0x331eb3+_0x12b23d(0xfd)+_0x1013e8,this;}[_0x206dec(0xec)](){const _0x189c86=_0x206dec;return this[_0x189c86(0xed)]+=_0x189c86(0xf5),this;}}exports[_0x206dec(0xfb)]=XcodebuildCMD;
@@ -1 +1 @@
1
- 'use strict';const _0x4aa411=_0x29c6;(function(_0x39078a,_0x1b28e4){const _0x5c9a34=_0x29c6,_0x20a4f1=_0x39078a();while(!![]){try{const _0x122427=-parseInt(_0x5c9a34(0x12e))/0x1+-parseInt(_0x5c9a34(0x157))/0x2*(parseInt(_0x5c9a34(0x10f))/0x3)+parseInt(_0x5c9a34(0x147))/0x4+-parseInt(_0x5c9a34(0x123))/0x5*(-parseInt(_0x5c9a34(0x158))/0x6)+parseInt(_0x5c9a34(0x15b))/0x7*(parseInt(_0x5c9a34(0x15a))/0x8)+parseInt(_0x5c9a34(0x13e))/0x9*(-parseInt(_0x5c9a34(0x146))/0xa)+parseInt(_0x5c9a34(0x15e))/0xb*(-parseInt(_0x5c9a34(0x12a))/0xc);if(_0x122427===_0x1b28e4)break;else _0x20a4f1['push'](_0x20a4f1['shift']());}catch(_0x3925c7){_0x20a4f1['push'](_0x20a4f1['shift']());}}}(_0x5f38,0xe7f0b));function _0x29c6(_0x25147b,_0xbcbf81){const _0x5f38e4=_0x5f38();return _0x29c6=function(_0x29c692,_0x262d65){_0x29c692=_0x29c692-0x10d;let _0x3c7628=_0x5f38e4[_0x29c692];return _0x3c7628;},_0x29c6(_0x25147b,_0xbcbf81);}Object[_0x4aa411(0x11c)](exports,_0x4aa411(0x170),{'value':!![]});const fs=require('fs'),resource_1=require(_0x4aa411(0x16d)),path_1=require(_0x4aa411(0x150)),load_1=require(_0x4aa411(0x131)),imageHelper_1=require(_0x4aa411(0x167)),manifestSwiftTemplate_1=require(_0x4aa411(0x113)),xcode=require('xcode'),exportOptionsXML=_0x4aa411(0x16a),infoPlistXML='<?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';let useExportOptionsXML='';function _0x5f38(){const _0x56d182=['app-store-connect','5nkmsfr','split','</string>','SceneResizability','START_URL','project','description','13876116nZDDIP','writeFileSync','PRODUCT_BUNDLE_IDENTIFIER','debugging','100598dugLoi','protocol_handlers','PWAProtocol(protocolValue:\x20\x22','../resource/load','SceneHeight','bindIcon','enterprise','scope','stringify','minimal-ui','Contents.json','icon.png','loadJsonFromDisk','buildConfigurationList','defaultSize','push','1089WCKWbu','DEEPLINK','existsSync','getMIME','updateDeeplink','length','updateProductName','manifestInfo','71210sBhcMW','3572588YaYvmF','SCOPE','updateVersion','default','updateExportOptions','modifySwift','.minimal','version','release-testing','path','image/','./web-spatial/libs/webView/manifest.swift','PROJECT_BUILD_DIRECTORY','DEVELOPMENT_TEAM','mainScene','AppName','591106ESQTZq','8661252nwsuzg','updateTeamId','10584208fsRAdY','7psaUhB','writeAsync','protocol','11mivcmp','width','display','join','json','images','updateBuildProperty','BACK_APPICON_DIRECTORY','1.0','../resource/imageHelper','\x22,\x20url:\x20\x22','writeSync','<?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>','modify','filename','../resource','PROJECT_DIRECTORY','value','__esModule','buildSettings','replace','teamId','6YzrtJu','includes','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','ImageHelper','./manifestSwiftTemplate','log','manifestSwiftTemplate','bindManifestInfo','objects','<string>','AppID','pbxGroupByName','ExportOptions.plist','defineProperty','BUILDTYPE','icon','buildType','name','fixProjectFunction'];_0x5f38=function(){return _0x56d182;};return _0x5f38();}class XcodeProject{static async[_0x4aa411(0x16b)](_0xf3892,_0x340bb3){const _0x412e2e=_0x4aa411;let _0x41c3d5=xcode[_0x412e2e(0x128)](_0xf3892);this[_0x412e2e(0x121)](_0x41c3d5),_0x41c3d5['parseSync']();let _0x151806=_0x340bb3[_0x412e2e(0x11f)];const _0x5749ba=[_0x412e2e(0x14f),_0x412e2e(0x122),_0x412e2e(0x12d),_0x412e2e(0x134)];useExportOptionsXML=exportOptionsXML[_0x412e2e(0x10d)](_0x412e2e(0x11d),_0x5749ba[_0x412e2e(0x110)](_0x151806)?_0x151806:'release-testing');_0x340bb3[_0x412e2e(0x10e)]&&this[_0x412e2e(0x159)](_0x41c3d5,_0x340bb3[_0x412e2e(0x10e)]);this[_0x412e2e(0x14b)](),await this[_0x412e2e(0x133)](_0x340bb3[_0x412e2e(0x11e)]),this[_0x412e2e(0x116)](_0x41c3d5,_0x340bb3[_0x412e2e(0x145)][_0x412e2e(0x162)]);_0x340bb3[_0x412e2e(0x14e)]?this['updateVersion'](_0x41c3d5,_0x340bb3[_0x412e2e(0x14e)]):this[_0x412e2e(0x149)](_0x41c3d5,_0x412e2e(0x166));try{fs['writeFileSync'](_0xf3892,_0x41c3d5[_0x412e2e(0x169)]());}catch(_0x18a341){console[_0x412e2e(0x114)](_0x18a341);}}static['fixProjectFunction'](_0x3d920c){const _0x54b9c4=_0x4aa411;_0x3d920c[_0x54b9c4(0x11a)]=function(_0xfa20e2){const _0x5f39a=_0x54b9c4;var _0x9fe67b=this['hash'][_0x5f39a(0x128)][_0x5f39a(0x117)]['PBXGroup'],_0x2e9b2a,_0x2ac1a4;for(_0x2e9b2a in _0x9fe67b){if(!/_comment$/['test'](_0x2e9b2a))continue;if(_0x9fe67b[_0x2e9b2a]==_0xfa20e2)return _0x2ac1a4=_0x2e9b2a[_0x5f39a(0x124)](/_comment$/)[0x0],_0x9fe67b[_0x2ac1a4];}return![];},_0x3d920c[_0x54b9c4(0x164)]=function(_0x1794fb,_0x216acf,_0x2cbb1c,_0x2625c5){const _0x107443=_0x54b9c4;let _0x2cef62=[];const _0x304ebb=/_comment$/;if(_0x2625c5){const _0x320864=this['pbxTargetByName'](_0x2625c5),_0x3a9104=_0x320864&&_0x320864[_0x107443(0x13b)],_0x48e08b=this['pbxXCConfigurationList']();for(const _0x3d5454 in _0x48e08b){if(!_0x304ebb['test'](_0x3d5454)&&_0x3a9104===_0x3d5454){const _0x2f7733=_0x48e08b[_0x3d5454]['buildConfigurations'];for(const _0x2ded9d of _0x2f7733){_0x2cef62[_0x107443(0x13d)](_0x2ded9d[_0x107443(0x16f)]);}break;}}}var _0x34f867=this['pbxXCBuildConfigurationSection']();for(var _0x19ec3d in _0x34f867){if(!_0x304ebb['test'](_0x19ec3d)){if(_0x2625c5&&!_0x2cef62[_0x107443(0x110)](_0x19ec3d))continue;var _0x6a641a=_0x34f867[_0x19ec3d];(_0x2cbb1c&&_0x6a641a['name']===_0x2cbb1c||!_0x2cbb1c)&&_0x6a641a[_0x107443(0x171)][_0x1794fb]&&(_0x6a641a[_0x107443(0x171)][_0x1794fb]=_0x216acf);}}};}static async[_0x4aa411(0x133)](_0x16a241){const _0x15c9b3=_0x4aa411;if(_0x16a241){const _0x27fa26=(0x0,path_1[_0x15c9b3(0x161)])(resource_1[_0x15c9b3(0x16e)],resource_1[_0x15c9b3(0x165)]),_0x4746bd=(0x0,path_1[_0x15c9b3(0x161)])(_0x27fa26,_0x15c9b3(0x138)),_0x38ba87='icon.'+_0x16a241[_0x15c9b3(0x141)]()[_0x15c9b3(0x10d)](_0x15c9b3(0x151),''),_0xca9ec5=(0x0,path_1[_0x15c9b3(0x161)])(_0x27fa26,_0x38ba87);let _0x28664c=await(0x0,load_1['loadJsonFromDisk'])(_0x4746bd);_0x28664c[_0x15c9b3(0x163)][0x0]['filename']=_0x38ba87,await _0x16a241[_0x15c9b3(0x15c)](_0xca9ec5),await fs[_0x15c9b3(0x12b)](_0x4746bd,JSON[_0x15c9b3(0x136)](_0x28664c));const _0x4e569a=(0x0,path_1[_0x15c9b3(0x161)])(resource_1[_0x15c9b3(0x16e)],resource_1['MIDDLE_APPICON_DIRECTORY']),_0x2d2b8a=(0x0,path_1[_0x15c9b3(0x161)])(_0x4e569a,_0x15c9b3(0x138)),_0x3a3e82=_0x15c9b3(0x139),_0x280221=(0x0,path_1[_0x15c9b3(0x161)])(_0x4e569a,_0x3a3e82);let _0x5e9314=await(0x0,load_1[_0x15c9b3(0x13a)])(_0x2d2b8a),_0x5cefb9=imageHelper_1[_0x15c9b3(0x112)]['createImg'](0x200);_0x5e9314[_0x15c9b3(0x163)][0x0][_0x15c9b3(0x16c)]=_0x3a3e82,await _0x5cefb9[_0x15c9b3(0x15c)](_0x280221),await fs[_0x15c9b3(0x12b)](_0x2d2b8a,JSON[_0x15c9b3(0x136)](_0x5e9314));}}static[_0x4aa411(0x159)](_0x479927,_0x4c65b9){const _0x1079ce=_0x4aa411;_0x479927[_0x1079ce(0x164)](_0x1079ce(0x154),_0x4c65b9),useExportOptionsXML=useExportOptionsXML[_0x1079ce(0x10d)]('YOURTEAMID',_0x4c65b9);}static['updateExportOptions'](){const _0x127d11=_0x4aa411;!fs[_0x127d11(0x140)](resource_1[_0x127d11(0x153)])&&fs['mkdirSync'](resource_1[_0x127d11(0x153)],{'recursive':!![]}),fs[_0x127d11(0x12b)]((0x0,path_1[_0x127d11(0x161)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x127d11(0x11b)),useExportOptionsXML);}static['bindManifestInfo'](_0x315b03,_0x1bd2d2){const _0x73b6be=_0x4aa411;var _0x16edd8;_0x315b03[_0x73b6be(0x144)](_0x1bd2d2[_0x73b6be(0x120)]),_0x315b03[_0x73b6be(0x164)](_0x73b6be(0x12c),'\x22'+_0x1bd2d2['id']+'\x22'),this['updateDeeplink']((_0x16edd8=_0x1bd2d2[_0x73b6be(0x12f)])!==null&&_0x16edd8!==void 0x0?_0x16edd8:[]),this[_0x73b6be(0x14c)](_0x1bd2d2);}static[_0x4aa411(0x149)](_0x3a6ec8,_0x5ba9fc){_0x3a6ec8['updateBuildProperty']('CURRENT_PROJECT_VERSION',_0x5ba9fc);}static[_0x4aa411(0x142)](_0x349e08){const _0x12917e=_0x4aa411;let _0x16344f=(0x0,path_1['join'])(resource_1[_0x12917e(0x16e)],'./web-spatial/Info.plist'),_0x139a06='';for(let _0x1a9362=0x0;_0x1a9362<_0x349e08[_0x12917e(0x143)];_0x1a9362++){_0x139a06+=_0x12917e(0x118)+_0x349e08[_0x1a9362][_0x12917e(0x15d)]+_0x12917e(0x125);}const _0x3d8ee1=infoPlistXML[_0x12917e(0x10d)](_0x12917e(0x13f),_0x139a06);fs[_0x12917e(0x12b)](_0x16344f,_0x3d8ee1);}static['modifySwift'](_0x586c6b){const _0x469959=_0x4aa411,_0xbea8f5=(0x0,path_1[_0x469959(0x161)])(resource_1[_0x469959(0x16e)],_0x469959(0x152));let _0x55b306=manifestSwiftTemplate_1[_0x469959(0x115)];_0x55b306=_0x55b306[_0x469959(0x10d)](_0x469959(0x127),_0x586c6b['start_url']),_0x55b306=_0x55b306['replace'](_0x469959(0x148),_0x586c6b[_0x469959(0x135)]),_0x55b306=_0x55b306[_0x469959(0x10d)](_0x469959(0x156),_0x586c6b[_0x469959(0x120)]),_0x55b306=_0x55b306['replace']('Description',_0x586c6b[_0x469959(0x129)]),_0x55b306=_0x55b306[_0x469959(0x10d)](_0x469959(0x119),_0x586c6b['id']),_0x55b306=_0x55b306[_0x469959(0x10d)](_0x469959(0x14d),_0x586c6b[_0x469959(0x160)]==_0x469959(0x137)?_0x469959(0x14d):'.standalone');if(_0x586c6b[_0x469959(0x12f)]){let _0x14005f='';for(let _0x44c5d0=0x0;_0x44c5d0<_0x586c6b[_0x469959(0x12f)][_0x469959(0x143)];_0x44c5d0++){_0x14005f+=_0x469959(0x130)+_0x586c6b[_0x469959(0x12f)][_0x44c5d0][_0x469959(0x15d)]+_0x469959(0x168)+_0x586c6b[_0x469959(0x12f)][_0x44c5d0]['url']+'\x22),';}_0x55b306=_0x55b306[_0x469959(0x10d)](_0x469959(0x111),_0x14005f);}_0x55b306=_0x55b306['replace']('SceneWidth',_0x586c6b[_0x469959(0x155)][_0x469959(0x13c)][_0x469959(0x15f)]),_0x55b306=_0x55b306[_0x469959(0x10d)](_0x469959(0x132),_0x586c6b['mainScene'][_0x469959(0x13c)]['height']),_0x55b306=_0x55b306['replace'](_0x469959(0x126),'\x22'+_0x586c6b['mainScene']['resizability']+'\x22'),fs['writeFileSync'](_0xbea8f5,_0x55b306,'utf-8');}}exports[_0x4aa411(0x14a)]=XcodeProject;
1
+ 'use strict';function _0x2735(){const _0x2455a2=['<?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>','updateBuildProperty','MIDDLE_APPICON_DIRECTORY','hash','507669lNGOWX','YOURTEAMID','.standalone','writeFileSync','SceneWidth','createImg','true','name','loadJsonFromDisk','AppID','includes','updateTeamId','PROJECT_BUILD_DIRECTORY','images','parseSync','xcode','USE_MAIN_SCENE','PBXGroup','1122054nleHHl','modifySwift','updateVersion','updateExportOptions','\x22,\x20url:\x20\x22','Description','updateProductName','resizability','push','join','PROJECT_DIRECTORY','pbxGroupByName','mainScene','SceneHeight','image/','buildSettings','AppName','buildConfigurationList','BACK_APPICON_DIRECTORY','value','stringify','2030409GLRXKi','Contents.json','updateDeeplink','debugging','log','project','CURRENT_PROJECT_VERSION','display','false','buildType','\x22automatic\x22','498480OWNQmS','path','icon.png','replace','pbxXCConfigurationList','scope','minimal-ui','width','enterprise','defaultSize','writeAsync','teamId','protocol','writeSync','DEEPLINK','5dwZuZh','description','29403ScakRS','<?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','PWAProtocol(protocolValue:\x20\x22','test','DEVELOPMENT_TEAM','manifestInfo','PRODUCT_BUNDLE_IDENTIFIER','20Sqvcwh','existsSync','BUILDTYPE','pbxXCBuildConfigurationSection','protocol_handlers','bindManifestInfo','length','filename','SceneResizability','fixProjectFunction','default','icon','mkdirSync','getMIME','4bhHhnA','<string>','310614XiZLuW','281939vrkzkY','../resource/imageHelper','defineProperty','release-testing','manifestSwiftTemplate','bindIcon','./web-spatial/libs/webView/manifest.swift'];_0x2735=function(){return _0x2455a2;};return _0x2735();}const _0x5de2f3=_0x26f5;(function(_0x4344f4,_0x52fe02){const _0x44ce61=_0x26f5,_0x39198c=_0x4344f4();while(!![]){try{const _0x5b1ca7=parseInt(_0x44ce61(0x1fe))/0x1+parseInt(_0x44ce61(0x215))/0x2+-parseInt(_0x44ce61(0x221))/0x3*(-parseInt(_0x44ce61(0x213))/0x4)+parseInt(_0x44ce61(0x1fc))/0x5*(parseInt(_0x44ce61(0x1cd))/0x6)+-parseInt(_0x44ce61(0x216))/0x7+parseInt(_0x44ce61(0x1ed))/0x8+-parseInt(_0x44ce61(0x1e2))/0x9*(parseInt(_0x44ce61(0x205))/0xa);if(_0x5b1ca7===_0x52fe02)break;else _0x39198c['push'](_0x39198c['shift']());}catch(_0x1602fb){_0x39198c['push'](_0x39198c['shift']());}}}(_0x2735,0x1b49d));Object[_0x5de2f3(0x218)](exports,'__esModule',{'value':!![]});const fs=require('fs'),resource_1=require('../resource'),path_1=require(_0x5de2f3(0x1ee)),load_1=require('../resource/load'),imageHelper_1=require(_0x5de2f3(0x217)),manifestSwiftTemplate_1=require('./manifestSwiftTemplate'),xcode=require(_0x5de2f3(0x230)),exportOptionsXML=_0x5de2f3(0x21d),infoPlistXML=_0x5de2f3(0x1ff);let useExportOptionsXML='';function _0x26f5(_0x8f2dee,_0xc7bde6){const _0x2735aa=_0x2735();return _0x26f5=function(_0x26f539,_0x9c3904){_0x26f539=_0x26f539-0x1cd;let _0x32a18c=_0x2735aa[_0x26f539];return _0x32a18c;},_0x26f5(_0x8f2dee,_0xc7bde6);}class XcodeProject{static async['modify'](_0x5d6917,_0x4e9768){const _0x1048ed=_0x5de2f3;let _0x4f70b3=xcode[_0x1048ed(0x1e7)](_0x5d6917);this[_0x1048ed(0x20e)](_0x4f70b3),_0x4f70b3[_0x1048ed(0x22f)]();let _0x1dc3be=_0x4e9768[_0x1048ed(0x1eb)];const _0x40be81=[_0x1048ed(0x219),'app-store-connect',_0x1048ed(0x1e5),_0x1048ed(0x1f5)];useExportOptionsXML=exportOptionsXML['replace'](_0x1048ed(0x207),_0x40be81[_0x1048ed(0x22b)](_0x1dc3be)?_0x1dc3be:'release-testing');_0x4e9768[_0x1048ed(0x1f8)]&&this[_0x1048ed(0x22c)](_0x4f70b3,_0x4e9768[_0x1048ed(0x1f8)]);this[_0x1048ed(0x1d0)](),await this[_0x1048ed(0x21b)](_0x4e9768[_0x1048ed(0x210)]),this['bindManifestInfo'](_0x4f70b3,_0x4e9768[_0x1048ed(0x203)]['json']);_0x4e9768['version']?this['updateVersion'](_0x4f70b3,_0x4e9768['version']):this[_0x1048ed(0x1cf)](_0x4f70b3,'1.0');try{fs[_0x1048ed(0x224)](_0x5d6917,_0x4f70b3[_0x1048ed(0x1fa)]());}catch(_0x5db888){console[_0x1048ed(0x1e6)](_0x5db888);}}static[_0x5de2f3(0x20e)](_0x17379e){const _0x41bcd7=_0x5de2f3;_0x17379e[_0x41bcd7(0x1d8)]=function(_0x3e2cd8){const _0x1a163c=_0x41bcd7;var _0x10ae86=this[_0x1a163c(0x220)][_0x1a163c(0x1e7)]['objects'][_0x1a163c(0x232)],_0x15f4cc,_0x1de164;for(_0x15f4cc in _0x10ae86){if(!/_comment$/[_0x1a163c(0x201)](_0x15f4cc))continue;if(_0x10ae86[_0x15f4cc]==_0x3e2cd8)return _0x1de164=_0x15f4cc['split'](/_comment$/)[0x0],_0x10ae86[_0x1de164];}return![];},_0x17379e['updateBuildProperty']=function(_0x1c4e6c,_0x4ccc47,_0x3b11f1,_0x35d5a6){const _0x2c80af=_0x41bcd7;let _0x3237e4=[];const _0x1cd86d=/_comment$/;if(_0x35d5a6){const _0x4a1159=this['pbxTargetByName'](_0x35d5a6),_0x1bc186=_0x4a1159&&_0x4a1159[_0x2c80af(0x1de)],_0x4f6578=this[_0x2c80af(0x1f1)]();for(const _0x4be2bf in _0x4f6578){if(!_0x1cd86d[_0x2c80af(0x201)](_0x4be2bf)&&_0x1bc186===_0x4be2bf){const _0x3d728a=_0x4f6578[_0x4be2bf]['buildConfigurations'];for(const _0x587ede of _0x3d728a){_0x3237e4[_0x2c80af(0x1d5)](_0x587ede[_0x2c80af(0x1e0)]);}break;}}}var _0x3d1e26=this[_0x2c80af(0x208)]();for(var _0x402ff5 in _0x3d1e26){if(!_0x1cd86d[_0x2c80af(0x201)](_0x402ff5)){if(_0x35d5a6&&!_0x3237e4[_0x2c80af(0x22b)](_0x402ff5))continue;var _0x106955=_0x3d1e26[_0x402ff5];(_0x3b11f1&&_0x106955[_0x2c80af(0x228)]===_0x3b11f1||!_0x3b11f1)&&_0x106955[_0x2c80af(0x1dc)][_0x1c4e6c]&&(_0x106955[_0x2c80af(0x1dc)][_0x1c4e6c]=_0x4ccc47);}}};}static async[_0x5de2f3(0x21b)](_0x1873f9){const _0x3a2d1b=_0x5de2f3;if(_0x1873f9){const _0x2e2d30=(0x0,path_1[_0x3a2d1b(0x1d6)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x3a2d1b(0x1df)]),_0x226750=(0x0,path_1[_0x3a2d1b(0x1d6)])(_0x2e2d30,_0x3a2d1b(0x1e3)),_0xb464c0='icon.'+_0x1873f9[_0x3a2d1b(0x212)]()[_0x3a2d1b(0x1f0)](_0x3a2d1b(0x1db),''),_0x56c605=(0x0,path_1[_0x3a2d1b(0x1d6)])(_0x2e2d30,_0xb464c0);let _0x41ae13=await(0x0,load_1[_0x3a2d1b(0x229)])(_0x226750);_0x41ae13['images'][0x0]['filename']=_0xb464c0,await _0x1873f9['writeAsync'](_0x56c605),await fs[_0x3a2d1b(0x224)](_0x226750,JSON[_0x3a2d1b(0x1e1)](_0x41ae13));const _0x2abeff=(0x0,path_1[_0x3a2d1b(0x1d6)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x3a2d1b(0x21f)]),_0x30a52f=(0x0,path_1[_0x3a2d1b(0x1d6)])(_0x2abeff,_0x3a2d1b(0x1e3)),_0x59a042=_0x3a2d1b(0x1ef),_0x427a8e=(0x0,path_1[_0x3a2d1b(0x1d6)])(_0x2abeff,_0x59a042);let _0x57663d=await(0x0,load_1[_0x3a2d1b(0x229)])(_0x30a52f),_0x38b3a9=imageHelper_1['ImageHelper'][_0x3a2d1b(0x226)](0x200);_0x57663d[_0x3a2d1b(0x22e)][0x0][_0x3a2d1b(0x20c)]=_0x59a042,await _0x38b3a9[_0x3a2d1b(0x1f7)](_0x427a8e),await fs[_0x3a2d1b(0x224)](_0x30a52f,JSON[_0x3a2d1b(0x1e1)](_0x57663d));}}static[_0x5de2f3(0x22c)](_0x3ecd65,_0x591710){const _0x551037=_0x5de2f3;_0x3ecd65[_0x551037(0x21e)](_0x551037(0x202),_0x591710),useExportOptionsXML=useExportOptionsXML[_0x551037(0x1f0)](_0x551037(0x222),_0x591710);}static[_0x5de2f3(0x1d0)](){const _0x5ba722=_0x5de2f3;!fs[_0x5ba722(0x206)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x5ba722(0x211)](resource_1[_0x5ba722(0x22d)],{'recursive':!![]}),fs[_0x5ba722(0x224)]((0x0,path_1[_0x5ba722(0x1d6)])(resource_1[_0x5ba722(0x22d)],'ExportOptions.plist'),useExportOptionsXML);}static[_0x5de2f3(0x20a)](_0x366d4a,_0x2b9bc7){const _0x3e5825=_0x5de2f3;var _0xa8f574;_0x366d4a[_0x3e5825(0x1d3)](_0x2b9bc7[_0x3e5825(0x228)]),_0x366d4a[_0x3e5825(0x21e)](_0x3e5825(0x204),'\x22'+_0x2b9bc7['id']+'\x22'),this[_0x3e5825(0x1e4)]((_0xa8f574=_0x2b9bc7[_0x3e5825(0x209)])!==null&&_0xa8f574!==void 0x0?_0xa8f574:[]),this['modifySwift'](_0x2b9bc7);}static['updateVersion'](_0x27ab89,_0x37fd0e){const _0x21405f=_0x5de2f3;_0x27ab89[_0x21405f(0x21e)](_0x21405f(0x1e8),_0x37fd0e);}static[_0x5de2f3(0x1e4)](_0x2da026){const _0x295342=_0x5de2f3;let _0x2e9c1b=(0x0,path_1[_0x295342(0x1d6)])(resource_1[_0x295342(0x1d7)],'./web-spatial/Info.plist'),_0x2bec8a='';for(let _0xde9f34=0x0;_0xde9f34<_0x2da026[_0x295342(0x20b)];_0xde9f34++){_0x2bec8a+=_0x295342(0x214)+_0x2da026[_0xde9f34]['protocol']+'</string>';}const _0x4a15fe=infoPlistXML[_0x295342(0x1f0)](_0x295342(0x1fb),_0x2bec8a);fs[_0x295342(0x224)](_0x2e9c1b,_0x4a15fe);}static[_0x5de2f3(0x1ce)](_0x2a22df){const _0x4f03a7=_0x5de2f3,_0x53d2f5=(0x0,path_1[_0x4f03a7(0x1d6)])(resource_1['PROJECT_DIRECTORY'],_0x4f03a7(0x21c));let _0x530b83=manifestSwiftTemplate_1[_0x4f03a7(0x21a)];_0x530b83=_0x530b83['replace']('START_URL',_0x2a22df['start_url']),_0x530b83=_0x530b83[_0x4f03a7(0x1f0)]('SCOPE',_0x2a22df[_0x4f03a7(0x1f2)]),_0x530b83=_0x530b83[_0x4f03a7(0x1f0)](_0x4f03a7(0x1dd),_0x2a22df[_0x4f03a7(0x228)]),_0x530b83=_0x530b83[_0x4f03a7(0x1f0)](_0x4f03a7(0x1d2),_0x2a22df[_0x4f03a7(0x1fd)]),_0x530b83=_0x530b83[_0x4f03a7(0x1f0)](_0x4f03a7(0x22a),_0x2a22df['id']),_0x530b83=_0x530b83['replace']('.minimal',_0x2a22df[_0x4f03a7(0x1e9)]==_0x4f03a7(0x1f3)?'.minimal':_0x4f03a7(0x223));if(_0x2a22df[_0x4f03a7(0x209)]){let _0x1a71d3='';for(let _0x2624fe=0x0;_0x2624fe<_0x2a22df[_0x4f03a7(0x209)][_0x4f03a7(0x20b)];_0x2624fe++){_0x1a71d3+=_0x4f03a7(0x200)+_0x2a22df['protocol_handlers'][_0x2624fe][_0x4f03a7(0x1f9)]+_0x4f03a7(0x1d1)+_0x2a22df[_0x4f03a7(0x209)][_0x2624fe]['url']+'\x22),';}_0x530b83=_0x530b83[_0x4f03a7(0x1f0)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x1a71d3);}typeof _0x2a22df['mainScene']==='object'?(_0x530b83=_0x530b83['replace']('SceneWidth',_0x2a22df[_0x4f03a7(0x1d9)][_0x4f03a7(0x1f6)][_0x4f03a7(0x1f4)]),_0x530b83=_0x530b83[_0x4f03a7(0x1f0)](_0x4f03a7(0x1da),_0x2a22df[_0x4f03a7(0x1d9)][_0x4f03a7(0x1f6)]['height']),_0x530b83=_0x530b83[_0x4f03a7(0x1f0)](_0x4f03a7(0x20d),'\x22'+_0x2a22df['mainScene'][_0x4f03a7(0x1d4)]+'\x22'),_0x530b83=_0x530b83[_0x4f03a7(0x1f0)](_0x4f03a7(0x231),_0x4f03a7(0x227))):(_0x530b83=_0x530b83[_0x4f03a7(0x1f0)](_0x4f03a7(0x225),'1280'),_0x530b83=_0x530b83['replace'](_0x4f03a7(0x1da),'1280'),_0x530b83=_0x530b83[_0x4f03a7(0x1f0)](_0x4f03a7(0x20d),_0x4f03a7(0x1ec)),_0x530b83=_0x530b83[_0x4f03a7(0x1f0)]('USE_MAIN_SCENE',_0x4f03a7(0x1ea))),fs[_0x4f03a7(0x224)](_0x53d2f5,_0x530b83,'utf-8');}}exports[_0x5de2f3(0x20f)]=XcodeProject;
@@ -1 +1 @@
1
- 'use strict';const _0x4c4096=_0x362f;function _0x299d(){const _0x4535b0=['\x20list','\x20--apiIssuer\x20','5613236dkJMlK','mkdirSync','10056730GHezAG','platform','/web-spatial.xcodeproj','boot','line','2429IGDMpU','version','includes','\x20list\x20devices\x20\x22','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','authAccount','\x20-u\x20','.app','runWithSimulator','launch\x20app','18WYXCAM','\x20launch\x20\x22','\x20-p\x20','appleId','\x20--upload-app\x20-f\x20','\x20--upload-package\x20','../resource','\x20--apple-id\x20','listDevices','\x20simctl','shutdown','toString','Apple\x20Vision\x20Pro','child_process','build\x20success','defineProperty','10590rIquax','launch','Build/Products/Debug-xrsimulator/','no\x20visionOS\x20simulator\x20found','install','verbose','1118LWVDvk','execSync','\x20-t\x20','Booted','XcodebuildCMD','__esModule','\x20--verbose','\x20--bundle-version\x20','path','visionos','--\x20','parseListDevices','trim','deviceId','name','existsSync','simctl','state','uploadApp','\x20install\x20\x22','split','installing\x20app','\x20--apiKey\x20','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','authApi','start\x20building','altool','uploadPackage','113cZmmQE','validate','install\x20success','length','list','\x20shutdown\x20booted','PROJECT_DIRECTORY','5934165EenPry','4523960ABUWsf','3242001dLJGTX','PROJECT_BUILD_DIRECTORY','./xcodebuild','log','\x22\x20\x22'];_0x299d=function(){return _0x4535b0;};return _0x299d();}(function(_0x21e017,_0x533be2){const _0x56917e=_0x362f,_0x58ccc5=_0x21e017();while(!![]){try{const _0x422003=-parseInt(_0x56917e(0x9a))/0x1*(-parseInt(_0x56917e(0x7e))/0x2)+-parseInt(_0x56917e(0xa3))/0x3+parseInt(_0x56917e(0xaa))/0x4+parseInt(_0x56917e(0xa1))/0x5+parseInt(_0x56917e(0x78))/0x6*(parseInt(_0x56917e(0xb1))/0x7)+parseInt(_0x56917e(0xa2))/0x8+-parseInt(_0x56917e(0xbb))/0x9*(parseInt(_0x56917e(0xac))/0xa);if(_0x422003===_0x533be2)break;else _0x58ccc5['push'](_0x58ccc5['shift']());}catch(_0xa69f0e){_0x58ccc5['push'](_0x58ccc5['shift']());}}}(_0x299d,0xb47ae));Object[_0x4c4096(0x77)](exports,_0x4c4096(0x83),{'value':!![]});function _0x362f(_0x134202,_0x98d2ab){const _0x299dfa=_0x299d();return _0x362f=function(_0x362f9b,_0x1d6098){_0x362f9b=_0x362f9b-0x74;let _0x237d3e=_0x299dfa[_0x362f9b];return _0x237d3e;},_0x362f(_0x134202,_0x98d2ab);}const child_process_1=require(_0x4c4096(0x75)),resource_1=require(_0x4c4096(0xc1)),path_1=require(_0x4c4096(0x86)),fs=require('fs'),xcodebuild_1=require(_0x4c4096(0xa5));class Xcrun{static async[_0x4c4096(0x9b)](_0x4c8276,_0x5e7ccd,_0xad8d0b,_0x49754a){const _0x3ed274=_0x4c4096,_0x7c4118=new XcrunCMD()[_0x3ed274(0x98)]();_0x7c4118[_0x3ed274(0x9b)](_0x4c8276);_0x49754a?_0x7c4118[_0x3ed274(0xb6)](_0x5e7ccd,_0xad8d0b):_0x7c4118['authApi'](_0x5e7ccd,_0xad8d0b);_0x7c4118['platform'](_0x3ed274(0x87));const _0x775cfd=(0x0,child_process_1[_0x3ed274(0x7f)])(_0x7c4118[_0x3ed274(0xb0)]);return _0x775cfd[_0x3ed274(0xc6)]();}static async[_0x4c4096(0x99)](_0x1fd8a5,_0x166f03,_0x30e3d8,_0x4b4de8,_0x22ba7d){const _0x54d136=_0x4c4096,_0x1229ad=new XcrunCMD()[_0x54d136(0x98)]();_0x1229ad[_0x54d136(0x99)](_0x1fd8a5);_0x22ba7d?_0x1229ad[_0x54d136(0xb6)](_0x166f03,_0x30e3d8):_0x1229ad[_0x54d136(0x96)](_0x166f03,_0x30e3d8);_0x1229ad[_0x54d136(0xad)](_0x54d136(0x87)),_0x1229ad[_0x54d136(0xbe)](_0x4b4de8);const _0x507f24=(0x0,child_process_1[_0x54d136(0x7f)])(_0x1229ad[_0x54d136(0xb0)]);return _0x507f24[_0x54d136(0xc6)]();}static async[_0x4c4096(0x90)](_0x57141a,_0x129167,_0x25a440,_0xb6060e){const _0xa5b965=_0x4c4096,_0x300df4=new XcrunCMD()['altool']();_0x300df4[_0xa5b965(0x90)](_0x57141a);_0xb6060e?_0x300df4['authAccount'](_0x129167,_0x25a440):_0x300df4[_0xa5b965(0x96)](_0x129167,_0x25a440);_0x300df4[_0xa5b965(0xad)](_0xa5b965(0x87));const _0xe008be=(0x0,child_process_1[_0xa5b965(0x7f)])(_0x300df4[_0xa5b965(0xb0)]);return _0xe008be[_0xa5b965(0xc6)]();}static async[_0x4c4096(0xb9)](_0x1f25ee){const _0x214b81=_0x4c4096;let _0x2fda7a=new XcrunCMD()[_0x214b81(0x8e)]();_0x2fda7a[_0x214b81(0xc3)](_0x214b81(0x74));const _0x45c2ce=(0x0,child_process_1['execSync'])(_0x2fda7a[_0x214b81(0xb0)]),_0x2345c0=this[_0x214b81(0x89)](_0x45c2ce[_0x214b81(0xc6)]());if(_0x2345c0[_0x214b81(0x9d)]===0x0)throw new Error(_0x214b81(0x7b));let _0x1a19bc=_0x2345c0[0x0];for(let _0x2bbc39=0x0;_0x2bbc39<_0x2345c0['length'];_0x2bbc39++){if(_0x2345c0[_0x2bbc39][_0x214b81(0x8f)]===_0x214b81(0x81)){_0x1a19bc=_0x2345c0[_0x2bbc39];break;}}console[_0x214b81(0xa6)]('find\x20simulator:\x20'+_0x1a19bc[_0x214b81(0x8b)]);const _0x52795e=resource_1[_0x214b81(0xa0)]+_0x214b81(0xae),_0x3566dc=resource_1['PROJECT_BUILD_DIRECTORY']+'/test';!fs[_0x214b81(0x8d)](resource_1[_0x214b81(0xa4)])&&fs[_0x214b81(0xab)](resource_1[_0x214b81(0xa4)],{'recursive':!![]});!fs[_0x214b81(0x8d)](_0x3566dc)&&fs[_0x214b81(0xab)](_0x3566dc,{'recursive':!![]});const _0x3bd7af=new xcodebuild_1[(_0x214b81(0x82))]()['project'](_0x52795e)[_0x214b81(0xb0)]+(_0x214b81(0xb5)+_0x1a19bc[_0x214b81(0x8b)]+'\x27\x20-derivedDataPath\x20'+_0x3566dc);console['log'](_0x214b81(0x97)),(0x0,child_process_1[_0x214b81(0x7f)])(_0x3bd7af),console[_0x214b81(0xa6)](_0x214b81(0x76));_0x1a19bc['state']==='Shutdown'&&(_0x2fda7a=new XcrunCMD()[_0x214b81(0x8e)](),_0x2fda7a[_0x214b81(0xaf)](_0x1a19bc[_0x214b81(0x8b)]),(0x0,child_process_1[_0x214b81(0x7f)])(_0x2fda7a[_0x214b81(0xb0)]));(0x0,child_process_1[_0x214b81(0x7f)])(_0x214b81(0x95)),console[_0x214b81(0xa6)](_0x214b81(0x93));const _0x4c122c=(0x0,path_1['join'])(_0x3566dc,_0x214b81(0x7a)+_0x1f25ee[_0x214b81(0x8c)]+_0x214b81(0xb8));_0x2fda7a=new XcrunCMD()['simctl'](),_0x2fda7a[_0x214b81(0x7c)](_0x1a19bc[_0x214b81(0x8b)],_0x4c122c),(0x0,child_process_1[_0x214b81(0x7f)])(_0x2fda7a[_0x214b81(0xb0)]),console[_0x214b81(0xa6)](_0x214b81(0x9c)),console[_0x214b81(0xa6)](_0x214b81(0xba)),_0x2fda7a=new XcrunCMD()[_0x214b81(0x8e)](),_0x2fda7a[_0x214b81(0x79)](_0x1a19bc[_0x214b81(0x8b)],_0x1f25ee['id']),(0x0,child_process_1[_0x214b81(0x7f)])(_0x2fda7a[_0x214b81(0xb0)]);}static[_0x4c4096(0x89)](_0x52544b){const _0x51ad50=_0x4c4096;let _0x1f3636=_0x52544b[_0x51ad50(0x92)]('\x0a'),_0x1e6874=[],_0x5b6fa0=-0x1;for(let _0x172714=0x0;_0x172714<_0x1f3636[_0x51ad50(0x9d)];_0x172714++){if(_0x1f3636[_0x172714][_0x51ad50(0xb3)]('--\x20visionOS'))_0x5b6fa0=_0x172714;else{if(_0x5b6fa0>0x0){if(_0x1f3636[_0x172714]['includes'](_0x51ad50(0x88)))break;if(_0x1f3636[_0x172714][_0x51ad50(0x9d)]>0x0){const _0x243704=_0x1f3636[_0x172714][_0x51ad50(0x92)]('('),_0x4dca58={'name':_0x243704[0x0][_0x51ad50(0x8a)](),'deviceId':_0x243704[0x1][_0x51ad50(0x92)](')')[0x0][_0x51ad50(0x8a)](),'state':_0x243704[0x2]['split'](')')[0x0][_0x51ad50(0x8a)]()};_0x1e6874['push'](_0x4dca58);}}}}return _0x1e6874;}}exports['default']=Xcrun;class XcrunCMD{constructor(){const _0x22b541=_0x4c4096;this[_0x22b541(0xb0)]='xcrun';}[_0x4c4096(0x98)](){return this['line']+='\x20altool',this;}[_0x4c4096(0x8e)](){const _0x543c24=_0x4c4096;return this['line']+=_0x543c24(0xc4),this;}[_0x4c4096(0x9e)](){const _0x3a2fa0=_0x4c4096;return this[_0x3a2fa0(0xb0)]+=_0x3a2fa0(0xa8),this;}[_0x4c4096(0xc3)](_0x5441ba){const _0xc0b87=_0x4c4096;return this[_0xc0b87(0xb0)]+=_0xc0b87(0xb4)+_0x5441ba+'\x22',this;}['validate'](_0x9479a5){const _0x4d77f3=_0x4c4096;return this[_0x4d77f3(0xb0)]+='\x20--validate-app\x20-f\x20'+_0x9479a5,this;}[_0x4c4096(0x90)](_0x511958){const _0x575010=_0x4c4096;return this['line']+=_0x575010(0xbf)+_0x511958,this;}[_0x4c4096(0x99)](_0x20c9cb){const _0x5a52e0=_0x4c4096;return this[_0x5a52e0(0xb0)]+=_0x5a52e0(0xc0)+_0x20c9cb,this;}[_0x4c4096(0xb6)](_0x16f90b,_0x589415){const _0x283a6d=_0x4c4096;return this[_0x283a6d(0xb0)]+=_0x283a6d(0xb7)+_0x16f90b+_0x283a6d(0xbd)+_0x589415,this;}['authApi'](_0x3b1778,_0x579942){const _0x469867=_0x4c4096;return this['line']+=_0x469867(0x94)+_0x3b1778+_0x469867(0xa9)+_0x579942,this;}[_0x4c4096(0xbe)](_0x28afee){const _0x5cdd2b=_0x4c4096;return this[_0x5cdd2b(0xb0)]+=_0x5cdd2b(0xc2)+_0x28afee,this;}[_0x4c4096(0xad)](_0x2a1df8){const _0x34579e=_0x4c4096;return this[_0x34579e(0xb0)]+=_0x34579e(0x80)+_0x2a1df8,this;}[_0x4c4096(0xb2)](_0x550047){const _0x3dbd59=_0x4c4096;return this[_0x3dbd59(0xb0)]+=_0x3dbd59(0x85)+_0x550047,this;}[_0x4c4096(0x7d)](){const _0x1de3a1=_0x4c4096;return this['line']+=_0x1de3a1(0x84),this;}[_0x4c4096(0xc5)](){const _0x534674=_0x4c4096;return this['line']+=_0x534674(0x9f),this;}[_0x4c4096(0xaf)](_0x1331c4){const _0x243d76=_0x4c4096;return this[_0x243d76(0xb0)]+='\x20boot\x20\x22'+_0x1331c4+'\x22',this;}['install'](_0x4fb10d,_0x1662e5){const _0x3e6f1e=_0x4c4096;return this[_0x3e6f1e(0xb0)]+=_0x3e6f1e(0x91)+_0x4fb10d+_0x3e6f1e(0xa7)+_0x1662e5+'\x22',this;}[_0x4c4096(0x79)](_0x253d4a,_0x38983a){const _0x46e31f=_0x4c4096;return this[_0x46e31f(0xb0)]+=_0x46e31f(0xbc)+_0x253d4a+_0x46e31f(0xa7)+_0x38983a+'\x22',this;}}
1
+ 'use strict';const _0x5a702b=_0x529d;function _0x529d(_0x2a6ec6,_0x456501){const _0xe2840c=_0xe284();return _0x529d=function(_0x529d72,_0x32af63){_0x529d72=_0x529d72-0x14f;let _0xaf25ec=_0xe2840c[_0x529d72];return _0xaf25ec;},_0x529d(_0x2a6ec6,_0x456501);}(function(_0xe11b92,_0x37be6e){const _0x169b2d=_0x529d,_0x4a215c=_0xe11b92();while(!![]){try{const _0x11e6c6=parseInt(_0x169b2d(0x16e))/0x1+-parseInt(_0x169b2d(0x183))/0x2*(parseInt(_0x169b2d(0x175))/0x3)+-parseInt(_0x169b2d(0x156))/0x4+-parseInt(_0x169b2d(0x195))/0x5*(-parseInt(_0x169b2d(0x15a))/0x6)+parseInt(_0x169b2d(0x199))/0x7*(-parseInt(_0x169b2d(0x16b))/0x8)+-parseInt(_0x169b2d(0x185))/0x9*(-parseInt(_0x169b2d(0x177))/0xa)+parseInt(_0x169b2d(0x15b))/0xb;if(_0x11e6c6===_0x37be6e)break;else _0x4a215c['push'](_0x4a215c['shift']());}catch(_0x27b648){_0x4a215c['push'](_0x4a215c['shift']());}}}(_0xe284,0x7fdb8));Object['defineProperty'](exports,_0x5a702b(0x170),{'value':!![]});const child_process_1=require(_0x5a702b(0x17c)),resource_1=require('../resource'),path_1=require('path'),fs=require('fs'),xcodebuild_1=require(_0x5a702b(0x18f));function _0xe284(){const _0x48f7c8=['1586200VBInKG','launch\x20app','split','PROJECT_DIRECTORY','6bDhpJr','3184687LVqFWJ','\x20altool','boot','parseListDevices','simctl','push','Build/Products/Debug-xrsimulator/','log','length','validate','listDevices','\x20list','--\x20','/test','\x20--apple-id\x20','name','3502632iWOinX','\x20shutdown\x20booted','Shutdown','456835lDvNVt','\x20--upload-package\x20','__esModule','list','toString','xcrun','Booted','695901oRVGzk','project','9830hNPBuX','platform','\x20list\x20devices\x20\x22','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','runWithSimulator','child_process','Apple\x20Vision\x20Pro','\x20simctl','deviceId','authApi','launch','no\x20visionOS\x20simulator\x20found','4pMjtwA','\x20-p\x20','7353uYisQu','install\x20success','\x20-u\x20','includes','install','installing\x20app','build\x20success','existsSync','\x20--apiIssuer\x20','state','./xcodebuild','\x20-t\x20','/web-spatial.xcodeproj','line','appleId','--\x20visionOS','1362770NWAgRJ','\x20--verbose','execSync','visionos','7EmegHw','trim','version','mkdirSync','verbose','join','start\x20building','\x27\x20-derivedDataPath\x20','find\x20simulator:\x20','uploadPackage','uploadApp','altool','\x20launch\x20\x22','authAccount','PROJECT_BUILD_DIRECTORY','shutdown','\x22\x20\x22'];_0xe284=function(){return _0x48f7c8;};return _0xe284();}class Xcrun{static async[_0x5a702b(0x164)](_0x6bca26,_0x3a28e2,_0x40b021,_0x292826){const _0x32ae7c=_0x5a702b,_0x3ef1d9=new XcrunCMD()['altool']();_0x3ef1d9['validate'](_0x6bca26);_0x292826?_0x3ef1d9[_0x32ae7c(0x152)](_0x3a28e2,_0x40b021):_0x3ef1d9[_0x32ae7c(0x180)](_0x3a28e2,_0x40b021);_0x3ef1d9[_0x32ae7c(0x178)](_0x32ae7c(0x198));const _0x58a025=(0x0,child_process_1[_0x32ae7c(0x197)])(_0x3ef1d9['line']);return _0x58a025[_0x32ae7c(0x172)]();}static async[_0x5a702b(0x1a2)](_0xd7d3c9,_0x114a7c,_0xc5494c,_0x2542dc,_0x3e164f){const _0x5f5121=_0x5a702b,_0xff4567=new XcrunCMD()['altool']();_0xff4567['uploadPackage'](_0xd7d3c9);_0x3e164f?_0xff4567['authAccount'](_0x114a7c,_0xc5494c):_0xff4567[_0x5f5121(0x180)](_0x114a7c,_0xc5494c);_0xff4567['platform']('visionos'),_0xff4567[_0x5f5121(0x193)](_0x2542dc);const _0x42e913=(0x0,child_process_1['execSync'])(_0xff4567[_0x5f5121(0x192)]);return _0x42e913[_0x5f5121(0x172)]();}static async['uploadApp'](_0x231a52,_0x3570dc,_0x53b153,_0x3e3a1c){const _0x4e5370=_0x5a702b,_0x4564d0=new XcrunCMD()['altool']();_0x4564d0[_0x4e5370(0x14f)](_0x231a52);_0x3e3a1c?_0x4564d0[_0x4e5370(0x152)](_0x3570dc,_0x53b153):_0x4564d0[_0x4e5370(0x180)](_0x3570dc,_0x53b153);_0x4564d0[_0x4e5370(0x178)]('visionos');const _0x5008de=(0x0,child_process_1[_0x4e5370(0x197)])(_0x4564d0[_0x4e5370(0x192)]);return _0x5008de[_0x4e5370(0x172)]();}static async[_0x5a702b(0x17b)](_0x4fe71b){const _0x988552=_0x5a702b;let _0x1273aa=new XcrunCMD()[_0x988552(0x15f)]();_0x1273aa['listDevices'](_0x988552(0x17d));const _0x131fcb=(0x0,child_process_1[_0x988552(0x197)])(_0x1273aa[_0x988552(0x192)]),_0x51118c=this['parseListDevices'](_0x131fcb[_0x988552(0x172)]());if(_0x51118c[_0x988552(0x163)]===0x0)throw new Error(_0x988552(0x182));let _0x22c2c1=_0x51118c[0x0];for(let _0x230392=0x0;_0x230392<_0x51118c[_0x988552(0x163)];_0x230392++){if(_0x51118c[_0x230392]['state']===_0x988552(0x174)){_0x22c2c1=_0x51118c[_0x230392];break;}}console['log'](_0x988552(0x1a1)+_0x22c2c1[_0x988552(0x17f)]);const _0x16dc56=resource_1[_0x988552(0x159)]+_0x988552(0x191),_0x1144c9=resource_1[_0x988552(0x153)]+_0x988552(0x168);!fs['existsSync'](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x988552(0x19c)](resource_1[_0x988552(0x153)],{'recursive':!![]});!fs[_0x988552(0x18c)](_0x1144c9)&&fs[_0x988552(0x19c)](_0x1144c9,{'recursive':!![]});const _0x2679c3=new xcodebuild_1['XcodebuildCMD']()[_0x988552(0x176)](_0x16dc56)['line']+(_0x988552(0x17a)+_0x22c2c1['deviceId']+_0x988552(0x1a0)+_0x1144c9);console[_0x988552(0x162)](_0x988552(0x19f)),(0x0,child_process_1[_0x988552(0x197)])(_0x2679c3),console[_0x988552(0x162)](_0x988552(0x18b));_0x22c2c1[_0x988552(0x18e)]===_0x988552(0x16d)&&(_0x1273aa=new XcrunCMD()['simctl'](),_0x1273aa[_0x988552(0x15d)](_0x22c2c1[_0x988552(0x17f)]),(0x0,child_process_1['execSync'])(_0x1273aa['line']));(0x0,child_process_1['execSync'])('open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/'),console[_0x988552(0x162)](_0x988552(0x18a));const _0x367aa3=(0x0,path_1[_0x988552(0x19e)])(_0x1144c9,_0x988552(0x161)+_0x4fe71b[_0x988552(0x16a)]+'.app');_0x1273aa=new XcrunCMD()['simctl'](),_0x1273aa[_0x988552(0x189)](_0x22c2c1[_0x988552(0x17f)],_0x367aa3),(0x0,child_process_1[_0x988552(0x197)])(_0x1273aa['line']),console[_0x988552(0x162)](_0x988552(0x186)),console[_0x988552(0x162)](_0x988552(0x157)),_0x1273aa=new XcrunCMD()[_0x988552(0x15f)](),_0x1273aa[_0x988552(0x181)](_0x22c2c1['deviceId'],_0x4fe71b['id']),(0x0,child_process_1[_0x988552(0x197)])(_0x1273aa[_0x988552(0x192)]);}static[_0x5a702b(0x15e)](_0x1175a6){const _0x122a22=_0x5a702b;let _0x5ed060=_0x1175a6[_0x122a22(0x158)]('\x0a'),_0x10dfb3=[],_0x4bc006=-0x1;for(let _0x38b832=0x0;_0x38b832<_0x5ed060['length'];_0x38b832++){if(_0x5ed060[_0x38b832][_0x122a22(0x188)](_0x122a22(0x194)))_0x4bc006=_0x38b832;else{if(_0x4bc006>0x0){if(_0x5ed060[_0x38b832][_0x122a22(0x188)](_0x122a22(0x167)))break;if(_0x5ed060[_0x38b832]['length']>0x0){const _0x2dcbf0=_0x5ed060[_0x38b832][_0x122a22(0x158)]('('),_0x4ea510={'name':_0x2dcbf0[0x0]['trim'](),'deviceId':_0x2dcbf0[0x1]['split'](')')[0x0][_0x122a22(0x19a)](),'state':_0x2dcbf0[0x2]['split'](')')[0x0][_0x122a22(0x19a)]()};_0x10dfb3[_0x122a22(0x160)](_0x4ea510);}}}}return _0x10dfb3;}}exports['default']=Xcrun;class XcrunCMD{constructor(){const _0x5ac0a7=_0x5a702b;this[_0x5ac0a7(0x192)]=_0x5ac0a7(0x173);}[_0x5a702b(0x150)](){const _0x40c12e=_0x5a702b;return this[_0x40c12e(0x192)]+=_0x40c12e(0x15c),this;}[_0x5a702b(0x15f)](){const _0x44220c=_0x5a702b;return this[_0x44220c(0x192)]+=_0x44220c(0x17e),this;}[_0x5a702b(0x171)](){const _0x5e6b6f=_0x5a702b;return this[_0x5e6b6f(0x192)]+=_0x5e6b6f(0x166),this;}[_0x5a702b(0x165)](_0x20c1af){const _0x50cc3f=_0x5a702b;return this[_0x50cc3f(0x192)]+=_0x50cc3f(0x179)+_0x20c1af+'\x22',this;}[_0x5a702b(0x164)](_0x542eb3){const _0x482404=_0x5a702b;return this[_0x482404(0x192)]+='\x20--validate-app\x20-f\x20'+_0x542eb3,this;}[_0x5a702b(0x14f)](_0x2099f1){const _0x4e4a4a=_0x5a702b;return this[_0x4e4a4a(0x192)]+='\x20--upload-app\x20-f\x20'+_0x2099f1,this;}[_0x5a702b(0x1a2)](_0x28f1a1){const _0x566645=_0x5a702b;return this[_0x566645(0x192)]+=_0x566645(0x16f)+_0x28f1a1,this;}[_0x5a702b(0x152)](_0x5c65e5,_0x2b1491){const _0x6e0bba=_0x5a702b;return this['line']+=_0x6e0bba(0x187)+_0x5c65e5+_0x6e0bba(0x184)+_0x2b1491,this;}[_0x5a702b(0x180)](_0x5b23fd,_0x543067){const _0x702094=_0x5a702b;return this['line']+='\x20--apiKey\x20'+_0x5b23fd+_0x702094(0x18d)+_0x543067,this;}[_0x5a702b(0x193)](_0x191a5a){const _0x2f65b5=_0x5a702b;return this[_0x2f65b5(0x192)]+=_0x2f65b5(0x169)+_0x191a5a,this;}[_0x5a702b(0x178)](_0x35b3e4){const _0x4d5534=_0x5a702b;return this[_0x4d5534(0x192)]+=_0x4d5534(0x190)+_0x35b3e4,this;}[_0x5a702b(0x19b)](_0x4de909){return this['line']+='\x20--bundle-version\x20'+_0x4de909,this;}[_0x5a702b(0x19d)](){const _0x3b4801=_0x5a702b;return this['line']+=_0x3b4801(0x196),this;}[_0x5a702b(0x154)](){const _0xb7c4f4=_0x5a702b;return this[_0xb7c4f4(0x192)]+=_0xb7c4f4(0x16c),this;}[_0x5a702b(0x15d)](_0x55f6d0){return this['line']+='\x20boot\x20\x22'+_0x55f6d0+'\x22',this;}[_0x5a702b(0x189)](_0x3df05b,_0x5e36a6){const _0x3c331f=_0x5a702b;return this[_0x3c331f(0x192)]+='\x20install\x20\x22'+_0x3df05b+_0x3c331f(0x155)+_0x5e36a6+'\x22',this;}[_0x5a702b(0x181)](_0x3d500a,_0x59cd15){const _0x34ce83=_0x5a702b;return this['line']+=_0x34ce83(0x151)+_0x3d500a+_0x34ce83(0x155)+_0x59cd15+'\x22',this;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webspatial/builder",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -60,10 +60,11 @@
60
60
  "registry": "https://registry.npmjs.org"
61
61
  },
62
62
  "scripts": {
63
+ "start": "tsc -w",
63
64
  "test1": "npm run build && bin/bundlepwa.js build --manifest=../testLocal/manifest.json --project=../testLocal --export=./export --version=1.0 --teamId=teamId",
64
65
  "test2": "npm run build && bin/bundlepwa.js publish --manifest=../pack-test/pwa_test.json --project=../pack-test --version=1.0 --teamId=teamId --u=username --p=password",
65
66
  "test3": "npm run build && bin/bundlepwa.js publish --name=webspatial --version=1.0 --u=username --p=password",
66
- "test4": "npm run build && bin/bundlepwa.js dev --manifest=../pack-test/pwa_test.json --project=../pack-test --teamId=teamId",
67
+ "test4": "npm run build && bin/bundlepwa.js run --manifest=../pack-test/pwa_test.json --project=../pack-test",
67
68
  "obfuscate": "node obfuscate.js",
68
69
  "build": "tsc && npm run obfuscate",
69
70
  "build1": "rollup -c ./rollup.config.js",
@@ -1,7 +0,0 @@
1
- {
2
- "object": {
3
- "artifacts": [],
4
- "dependencies": []
5
- },
6
- "version": 6
7
- }
@@ -1,14 +0,0 @@
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>
@@ -1,11 +0,0 @@
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
- }
@@ -1,112 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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
- )
@@ -1,3 +0,0 @@
1
- # RealityKitContent
2
-
3
- A description of this package.