@webspatial/builder 0.0.5 → 0.0.7

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 (32) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/Cli.js +1 -1
  3. package/dist/lib/cmds/build.js +1 -1
  4. package/dist/lib/cmds/check.js +1 -1
  5. package/dist/lib/cmds/help.js +1 -1
  6. package/dist/lib/cmds/version.js +1 -1
  7. package/dist/lib/pwa/config.js +1 -1
  8. package/dist/lib/pwa/index.js +1 -1
  9. package/dist/lib/pwa/validate.js +1 -1
  10. package/dist/lib/resource/file.js +1 -1
  11. package/dist/lib/resource/imageHelper.js +1 -1
  12. package/dist/lib/resource/index.js +1 -1
  13. package/dist/lib/resource/load.js +1 -1
  14. package/dist/lib/utils/CustomError.js +1 -1
  15. package/dist/lib/utils/FetchUtils-1.js +1 -1
  16. package/dist/lib/utils/Log.js +1 -1
  17. package/dist/lib/utils/fetch.js +1 -1
  18. package/dist/lib/utils/messages.js +1 -1
  19. package/dist/lib/utils/utils.js +1 -1
  20. package/dist/lib/xcode/index.js +1 -1
  21. package/dist/lib/xcode/manifestSwiftTemplate.d.ts +1 -1
  22. package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
  23. package/dist/lib/xcode/xcodebuild.js +1 -1
  24. package/dist/lib/xcode/xcodeproject.js +1 -1
  25. package/dist/lib/xcode/xcrun.js +1 -1
  26. package/package.json +1 -1
  27. package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +20 -3
  28. package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +1 -0
  29. package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +124 -125
  30. package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +5 -1
  31. package/template/visionOSApp/web-spatial/views/ui/NavView.swift +80 -40
  32. package/template/visionOSApp/web-spatial/web_spatialApp.swift +34 -10
@@ -1 +1 @@
1
- 'use strict';const _0x485526=_0x11a1;(function(_0x7a2ea9,_0x4cead6){const _0x1850b7=_0x11a1,_0x44d3e3=_0x7a2ea9();while(!![]){try{const _0x23a473=parseInt(_0x1850b7(0x11c))/0x1+parseInt(_0x1850b7(0x13a))/0x2*(parseInt(_0x1850b7(0x122))/0x3)+parseInt(_0x1850b7(0x131))/0x4+-parseInt(_0x1850b7(0x149))/0x5*(parseInt(_0x1850b7(0x129))/0x6)+-parseInt(_0x1850b7(0x12e))/0x7*(parseInt(_0x1850b7(0x14b))/0x8)+parseInt(_0x1850b7(0x126))/0x9+-parseInt(_0x1850b7(0x141))/0xa*(parseInt(_0x1850b7(0x113))/0xb);if(_0x23a473===_0x4cead6)break;else _0x44d3e3['push'](_0x44d3e3['shift']());}catch(_0x117cf9){_0x44d3e3['push'](_0x44d3e3['shift']());}}}(_0x380b,0xa8e25));Object[_0x485526(0x14a)](exports,_0x485526(0x13e),{'value':!![]}),exports[_0x485526(0x125)]=void 0x0;const colors_1=require('colors');function _0x11a1(_0x5de88a,_0xfacf19){const _0x380b17=_0x380b();return _0x11a1=function(_0x11a126,_0x4977ea){_0x11a126=_0x11a126-0x111;let _0x143198=_0x380b17[_0x11a126];return _0x143198;},_0x11a1(_0x5de88a,_0xfacf19);}function _0x380b(){const _0x246586=['Decompressing\x20the\x20JDK\x2011\x20Binaries...','Icon\x20URL:','Do\x20you\x20want\x20to\x20create\x20one\x20now?','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','Country\x20(2\x20letter\x20code):','Path\x20to\x20your\x20existing\x20Android\x20SDK:','Organization\x20(eg:\x20Company\x20Name):','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','43278byOClb','Downloading\x20the\x20JDK\x2011\x20Binaries...','\x0aSigning\x20key\x20information\x20','(5/5)','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','\x20but\x20input\x20is\x20','2021727gYJVbo','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','redirected\x20to\x20','messages','9269289OJKlzs','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)','Password\x20for\x20the\x20Key\x20Store:','30378crFUjh','Missing\x20required\x20parameter\x20','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','license\x20agreement.','Invalid\x20icon\x20path:\x20','728aveJZx','\x20URL\x20','WARNING:\x20','626228YmYnJS','Password\x20for\x20the\x20Key:','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','Downloading\x20Android\x20SDK\x20to\x20','https://play.google.com/console/about/families/','Generating\x20Android\x20Project.','\x20and\x20alias\x20','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)','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','2TDoWRE','\x20Check\x20out\x20the\x20Play\x20for','Invalid\x20integer\x20provided:\x20','URL\x20','__esModule','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','Maximum\x20length\x20is\x20','350890MNkyFK','\x20or\x20','underline','Decompressing\x20the\x20JDK\x2011\x20Sources...','\x0aProject\x20generated\x20successfully.','--manifest','\x0aSigning\x20key\x20creation','Downloading\x20JDK\x2011\x20to\x20','85ufgtlK','defineProperty','8328RbTTGQ','Downloading\x20the\x20JDK\x2011\x20Sources...','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','cyan','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','Invalid\x20URL:\x20','319kndZGH'];_0x380b=function(){return _0x246586;};return _0x380b();}exports[_0x485526(0x125)]={'promptInstallJdk':_0x485526(0x138),'promptJdkPath':'Path\x20to\x20your\x20existing\x20JDK\x2011:','messageDownloadJdk':_0x485526(0x148),'messageDownloadJdkSrc':_0x485526(0x14c),'messageDecompressJdkSrc':_0x485526(0x144),'messageDownloadJdkBin':_0x485526(0x11d),'messageDecompressJdkBin':_0x485526(0x114),'promptInstallSdk':_0x485526(0x127),'promptSdkPath':_0x485526(0x119),'messageDownloadSdk':_0x485526(0x134),'errorSdkTerms':_0x485526(0x150),'promptSdkTerms':'Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20'+(0x0,colors_1[_0x485526(0x143)])('https://developer.android.com/studio/terms.html')+'?','messageDownloadAndroidSdk':'Downloading\x20the\x20Android\x20SDK...','messageDecompressAndroidSdk':'Decompressing\x20the\x20Android\x20SDK...','messageInstallingBuildTools':_0x485526(0x14d)+_0x485526(0x12c),'messageGeneratingAndroidProject':_0x485526(0x136),'messageCheckSuccess':(_0x41c12b,_0x394b7f)=>{const _0x200fd1=_0x485526;return _0x200fd1(0x12f)+(0x0,colors_1['cyan'])(_0x41c12b)+'\x20'+(_0x394b7f?_0x200fd1(0x124)+(0x0,colors_1[_0x200fd1(0x14e)])(_0x394b7f):'')+'\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:';},'errorMissingManifestParameter':_0x485526(0x12a)+((0x0,colors_1[_0x485526(0x14e)])('--manifest-url')+_0x485526(0x142)+(0x0,colors_1[_0x485526(0x14e)])(_0x485526(0x146))),'messageInitializingWebManifest':_0x3b58bf=>{const _0xeaa891=_0x485526;return'Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0xeaa891(0x14e)])(_0x3b58bf);},'messageInitializingLocalManifest':_0x228c6a=>{const _0x4f96c9=_0x485526;return _0x4f96c9(0x14f)+(0x0,colors_1['cyan'])(_0x228c6a);},'messageInvalidIcon':_0x5bae49=>{const _0x9c31c4=_0x485526;return _0x9c31c4(0x12d)+(0x0,colors_1['cyan'])(_0x5bae49);},'errorStartUrlNotReachable':_0x2e8982=>_0x485526(0x13d)+_0x2e8982+'\x20can\x20not\x20be\x20accessible.'+_0x485526(0x123),'warnFamilyPolicy':(0x0,colors_1['bold'])((0x0,colors_1['yellow'])(_0x485526(0x130)))+_0x485526(0x12b)+_0x485526(0x117)+_0x485526(0x13b)+_0x485526(0x13f)+(0x0,colors_1[_0x485526(0x14e)])(_0x485526(0x135)),'promptIconUrl':_0x485526(0x115),'errorInvalidUrl':_0x54bd57=>{const _0x352419=_0x485526;return _0x352419(0x112)+_0x54bd57;},'errorUrlMustBeImage':_0x220709=>{const _0x1a3b69=_0x485526;return _0x1a3b69(0x139)+_0x220709+'.';},'promptVersionCode':_0x485526(0x120),'promptVersionName':_0x485526(0x111),'messageSigningKeyInformation':(0x0,colors_1[_0x485526(0x143)])(_0x485526(0x11e)+(0x0,colors_1['green'])(_0x485526(0x11f))),'messageProjectGeneratedSuccess':_0x485526(0x145),'messageSigningKeyCreation':(0x0,colors_1[_0x485526(0x143)])(_0x485526(0x147)),'messageSigningKeyNotFound':_0x3dd04f=>{const _0x11657f=_0x485526;return _0x11657f(0x133)+_0x3dd04f+'\x22.\x0a';},'promptCreateKey':_0x485526(0x116),'promptKeyFullName':_0x485526(0x11b),'promptKeyOrganizationalUnit':'Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','promptKeyOrganization':_0x485526(0x11a),'promptKeyCountry':_0x485526(0x118),'promptKeystorePassword':_0x485526(0x128),'promptKeyPassword':_0x485526(0x132),'messageBuildingApp':'\x0aBuilding\x20the\x20Android\x20App...','messageEnterPasswords':(_0x5da9e3,_0x1e0a3e)=>{const _0x33a0a8=_0x485526;return'Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20'+(0x0,colors_1[_0x33a0a8(0x14e)])(_0x5da9e3)+_0x33a0a8(0x137)+(0x0,colors_1['cyan'])(_0x1e0a3e)+'.\x0a';},'errorMinLength':(_0x571cc9,_0xb1231)=>{const _0x114bdf=_0x485526;return'Minimum\x20length\x20is\x20'+_0x571cc9+_0x114bdf(0x121)+_0xb1231+'.';},'errorMaxLength':(_0x5e767f,_0x1e3196)=>{const _0x5c54af=_0x485526;return _0x5c54af(0x140)+_0x5e767f+_0x5c54af(0x121)+_0x1e3196+'.';},'errorInvalidInteger':_0x1b3c61=>{const _0xbf4a7a=_0x485526;return _0xbf4a7a(0x13c)+_0x1b3c61;},'messageApkSuccess':_0x32f5bd=>{const _0x3138af=_0x485526;return'\x09-\x20Generated\x20Android\x20APK\x20at\x20'+(0x0,colors_1[_0x3138af(0x14e)])(_0x32f5bd);},'missingUrlToCheck':'Missing\x20required\x20parameter\x20'+(''+(0x0,colors_1['cyan'])('--url'))};
1
+ 'use strict';function _0x39f8(_0x40174a,_0x4174e7){const _0x385dbe=_0x385d();return _0x39f8=function(_0x39f838,_0x243975){_0x39f838=_0x39f838-0x7e;let _0xed3329=_0x385dbe[_0x39f838];return _0xed3329;},_0x39f8(_0x40174a,_0x4174e7);}const _0x58b068=_0x39f8;(function(_0x56dc3d,_0x5b0b7c){const _0xed6f22=_0x39f8,_0x2ba3c=_0x56dc3d();while(!![]){try{const _0x3da3a8=-parseInt(_0xed6f22(0x95))/0x1+parseInt(_0xed6f22(0xae))/0x2*(-parseInt(_0xed6f22(0xb5))/0x3)+parseInt(_0xed6f22(0xb6))/0x4+parseInt(_0xed6f22(0x92))/0x5+-parseInt(_0xed6f22(0xba))/0x6+parseInt(_0xed6f22(0x87))/0x7*(-parseInt(_0xed6f22(0xa4))/0x8)+parseInt(_0xed6f22(0xbb))/0x9*(parseInt(_0xed6f22(0xa3))/0xa);if(_0x3da3a8===_0x5b0b7c)break;else _0x2ba3c['push'](_0x2ba3c['shift']());}catch(_0x33355d){_0x2ba3c['push'](_0x2ba3c['shift']());}}}(_0x385d,0x5796a));Object[_0x58b068(0xb7)](exports,_0x58b068(0xaf),{'value':!![]}),exports[_0x58b068(0xa7)]=void 0x0;const colors_1=require('colors');function _0x385d(){const _0x3c2373=['First\x20and\x20Last\x20names\x20(eg:\x20PICO):','--manifest-url','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)','green','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','redirected\x20to\x20','license\x20agreement.','\x20Check\x20out\x20the\x20Play\x20for','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','bold','1263505ABumPQ','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','Downloading\x20the\x20JDK\x2011\x20Binaries...','671431sVXanw','Decompressing\x20the\x20Android\x20SDK...','WARNING:\x20','yellow','Maximum\x20length\x20is\x20','Password\x20for\x20the\x20Key:','Downloading\x20JDK\x2011\x20to\x20','\x20but\x20input\x20is\x20','\x22.\x0a','Country\x20(2\x20letter\x20code):','Downloading\x20Android\x20SDK\x20to\x20','(5/5)','cyan','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','230WepxVi','2326248CkEHdp','https://developer.android.com/studio/terms.html','--manifest','messages','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','Path\x20to\x20your\x20existing\x20JDK\x2011:','\x20or\x20','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)','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','44158GqmlZx','__esModule','https://play.google.com/console/about/families/','Downloading\x20the\x20JDK\x2011\x20Sources...','Do\x20you\x20want\x20to\x20create\x20one\x20now?','Organization\x20(eg:\x20Company\x20Name):','Decompressing\x20the\x20JDK\x2011\x20Binaries...','81uhOwcD','594772HzenRd','defineProperty','Invalid\x20integer\x20provided:\x20','Missing\x20required\x20parameter\x20','1236816FeBTEL','673767rrQAxD','\x0aSigning\x20key\x20creation','\x09-\x20Generated\x20Android\x20APK\x20at\x20','Password\x20for\x20the\x20Key\x20Store:','underline','Minimum\x20length\x20is\x20','\x20and\x20alias\x20','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','\x0aProject\x20generated\x20successfully.','Invalid\x20icon\x20path:\x20','\x20can\x20not\x20be\x20accessible.','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','7zrpEiM'];_0x385d=function(){return _0x3c2373;};return _0x385d();}exports[_0x58b068(0xa7)]={'promptInstallJdk':_0x58b068(0xab),'promptJdkPath':_0x58b068(0xa9),'messageDownloadJdk':_0x58b068(0x9b),'messageDownloadJdkSrc':_0x58b068(0xb1),'messageDecompressJdkSrc':'Decompressing\x20the\x20JDK\x2011\x20Sources...','messageDownloadJdkBin':_0x58b068(0x94),'messageDecompressJdkBin':_0x58b068(0xb4),'promptInstallSdk':_0x58b068(0x8a),'promptSdkPath':'Path\x20to\x20your\x20existing\x20Android\x20SDK:','messageDownloadSdk':_0x58b068(0x9f),'errorSdkTerms':'Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','promptSdkTerms':_0x58b068(0x86)+(0x0,colors_1[_0x58b068(0x7f)])(_0x58b068(0xa5))+'?','messageDownloadAndroidSdk':'Downloading\x20the\x20Android\x20SDK...','messageDecompressAndroidSdk':_0x58b068(0x96),'messageInstallingBuildTools':'Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20'+_0x58b068(0x8e),'messageGeneratingAndroidProject':'Generating\x20Android\x20Project.','messageCheckSuccess':(_0x47d0ae,_0x44e4db)=>{const _0x4267fc=_0x58b068;return'\x20URL\x20'+(0x0,colors_1[_0x4267fc(0xa1)])(_0x47d0ae)+'\x20'+(_0x44e4db?_0x4267fc(0x8d)+(0x0,colors_1[_0x4267fc(0xa1)])(_0x44e4db):'')+_0x4267fc(0xa2);},'errorMissingManifestParameter':_0x58b068(0xb9)+((0x0,colors_1['cyan'])(_0x58b068(0x89))+_0x58b068(0xaa)+(0x0,colors_1['cyan'])(_0x58b068(0xa6))),'messageInitializingWebManifest':_0x5929d8=>{const _0x37985c=_0x58b068;return'Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0x37985c(0xa1)])(_0x5929d8);},'messageInitializingLocalManifest':_0x2d463e=>{const _0x341a10=_0x58b068;return _0x341a10(0xa8)+(0x0,colors_1[_0x341a10(0xa1)])(_0x2d463e);},'messageInvalidIcon':_0x4e3a17=>{const _0x10fad6=_0x58b068;return _0x10fad6(0x84)+(0x0,colors_1[_0x10fad6(0xa1)])(_0x4e3a17);},'errorStartUrlNotReachable':_0x15cc8e=>'URL\x20'+_0x15cc8e+_0x58b068(0x85)+_0x58b068(0xac),'warnFamilyPolicy':(0x0,colors_1[_0x58b068(0x91)])((0x0,colors_1[_0x58b068(0x98)])(_0x58b068(0x97)))+'Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible'+'\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.'+_0x58b068(0x8f)+'\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a'+(0x0,colors_1['cyan'])(_0x58b068(0xb0)),'promptIconUrl':'Icon\x20URL:','errorInvalidUrl':_0xa0b8dc=>{return'Invalid\x20URL:\x20'+_0xa0b8dc;},'errorUrlMustBeImage':_0x258155=>{const _0x171583=_0x58b068;return _0x171583(0x8c)+_0x258155+'.';},'promptVersionCode':_0x58b068(0x82),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0x58b068(0x7f)])('\x0aSigning\x20key\x20information\x20'+(0x0,colors_1[_0x58b068(0x8b)])(_0x58b068(0xa0))),'messageProjectGeneratedSuccess':_0x58b068(0x83),'messageSigningKeyCreation':(0x0,colors_1[_0x58b068(0x7f)])(_0x58b068(0xbc)),'messageSigningKeyNotFound':_0x362ad3=>{const _0x1e8c45=_0x58b068;return _0x1e8c45(0xad)+_0x362ad3+_0x1e8c45(0x9d);},'promptCreateKey':_0x58b068(0xb2),'promptKeyFullName':_0x58b068(0x88),'promptKeyOrganizationalUnit':_0x58b068(0x93),'promptKeyOrganization':_0x58b068(0xb3),'promptKeyCountry':_0x58b068(0x9e),'promptKeystorePassword':_0x58b068(0x7e),'promptKeyPassword':_0x58b068(0x9a),'messageBuildingApp':'\x0aBuilding\x20the\x20Android\x20App...','messageEnterPasswords':(_0x1e268e,_0x121acf)=>{const _0x2436d4=_0x58b068;return _0x2436d4(0x90)+(0x0,colors_1[_0x2436d4(0xa1)])(_0x1e268e)+_0x2436d4(0x81)+(0x0,colors_1[_0x2436d4(0xa1)])(_0x121acf)+'.\x0a';},'errorMinLength':(_0xc65799,_0x373c60)=>{const _0x28612f=_0x58b068;return _0x28612f(0x80)+_0xc65799+_0x28612f(0x9c)+_0x373c60+'.';},'errorMaxLength':(_0x1bd176,_0x517a43)=>{const _0x3308d3=_0x58b068;return _0x3308d3(0x99)+_0x1bd176+'\x20but\x20input\x20is\x20'+_0x517a43+'.';},'errorInvalidInteger':_0x38d430=>{const _0x283c67=_0x58b068;return _0x283c67(0xb8)+_0x38d430;},'messageApkSuccess':_0x49f0e9=>{const _0x51b804=_0x58b068;return _0x51b804(0xbd)+(0x0,colors_1[_0x51b804(0xa1)])(_0x49f0e9);},'missingUrlToCheck':_0x58b068(0xb9)+(''+(0x0,colors_1['cyan'])('--url'))};
@@ -1 +1 @@
1
- 'use strict';const _0x26d902=_0x3fef;function _0x6e5f(){const _0x5c9b56=['7YsacKK','split','1560009fNSEXz','17873118YFtLhf','10PMqmwq','parseRouter','__esModule','replace','141819SXUSHg','4JbffIu','564336KhuVeF','4016148dbGubU','indexOf','2255760exRDwg','defineProperty','join','773320QdvGNz','pop'];_0x6e5f=function(){return _0x5c9b56;};return _0x6e5f();}function _0x3fef(_0x3f0325,_0x317e10){const _0x6e5ff=_0x6e5f();return _0x3fef=function(_0x3fef52,_0x1d1e3b){_0x3fef52=_0x3fef52-0x118;let _0x26ec49=_0x6e5ff[_0x3fef52];return _0x26ec49;},_0x3fef(_0x3f0325,_0x317e10);}(function(_0x5f4ec8,_0x233d67){const _0x24ee94=_0x3fef,_0x548fc2=_0x5f4ec8();while(!![]){try{const _0x43112b=-parseInt(_0x24ee94(0x118))/0x1+parseInt(_0x24ee94(0x120))/0x2+-parseInt(_0x24ee94(0x124))/0x3*(parseInt(_0x24ee94(0x119))/0x4)+-parseInt(_0x24ee94(0x11d))/0x5+-parseInt(_0x24ee94(0x11b))/0x6+-parseInt(_0x24ee94(0x122))/0x7*(parseInt(_0x24ee94(0x11a))/0x8)+-parseInt(_0x24ee94(0x125))/0x9*(-parseInt(_0x24ee94(0x126))/0xa);if(_0x43112b===_0x233d67)break;else _0x548fc2['push'](_0x548fc2['shift']());}catch(_0x2fea95){_0x548fc2['push'](_0x548fc2['shift']());}}}(_0x6e5f,0x7ee08));Object[_0x26d902(0x11e)](exports,_0x26d902(0x128),{'value':!![]}),exports[_0x26d902(0x127)]=parseRouter;function parseRouter(_0x4c175c){const _0xe6a71b=_0x26d902;let _0xa412f4=_0x4c175c[_0xe6a71b(0x123)]('/');_0xa412f4[_0xe6a71b(0x121)]();let _0x5ec007=_0xa412f4[_0xe6a71b(0x11f)]();while(_0x5ec007[_0xe6a71b(0x11c)](',')>=0x0){_0x5ec007=_0x5ec007[_0xe6a71b(0x129)](',','/');}return _0x5ec007;}
1
+ 'use strict';function _0x3e36(){const _0x16a3ce=['1853832HYuCtJ','4342088ihEVcE','split','1531928BfNGpR','parseRouter','3269546flTYrg','5tSXAvu','43697770cKUmxi','54vjMiRy','pop','defineProperty','replace','92282OuBmZK','3275004tZysYL','join','12ZDKOWH'];_0x3e36=function(){return _0x16a3ce;};return _0x3e36();}const _0x2fc1ec=_0x282c;function _0x282c(_0x5b5e97,_0x50a671){const _0x3e3648=_0x3e36();return _0x282c=function(_0x282c2e,_0x21b096){_0x282c2e=_0x282c2e-0xd1;let _0x1244d6=_0x3e3648[_0x282c2e];return _0x1244d6;},_0x282c(_0x5b5e97,_0x50a671);}(function(_0x5d73f9,_0x5c5d7b){const _0x4417df=_0x282c,_0x50b1cd=_0x5d73f9();while(!![]){try{const _0x3dd96d=-parseInt(_0x4417df(0xd4))/0x1*(parseInt(_0x4417df(0xd7))/0x2)+-parseInt(_0x4417df(0xd5))/0x3+-parseInt(_0x4417df(0xd9))/0x4+-parseInt(_0x4417df(0xde))/0x5*(parseInt(_0x4417df(0xd8))/0x6)+parseInt(_0x4417df(0xdd))/0x7+parseInt(_0x4417df(0xdb))/0x8*(-parseInt(_0x4417df(0xe0))/0x9)+parseInt(_0x4417df(0xdf))/0xa;if(_0x3dd96d===_0x5c5d7b)break;else _0x50b1cd['push'](_0x50b1cd['shift']());}catch(_0x555f27){_0x50b1cd['push'](_0x50b1cd['shift']());}}}(_0x3e36,0x9e377));Object[_0x2fc1ec(0xd2)](exports,'__esModule',{'value':!![]}),exports[_0x2fc1ec(0xdc)]=parseRouter;function parseRouter(_0x485492){const _0x3e55ea=_0x2fc1ec;let _0x5a90ba=_0x485492[_0x3e55ea(0xda)]('/');_0x5a90ba[_0x3e55ea(0xd1)]();let _0x399a7e=_0x5a90ba[_0x3e55ea(0xd6)]();while(_0x399a7e['indexOf'](',')>=0x0){_0x399a7e=_0x399a7e[_0x3e55ea(0xd3)](',','/');}return _0x399a7e;}
@@ -1 +1 @@
1
- 'use strict';const _0x169565=_0x2676;(function(_0x77a4c4,_0x512e07){const _0x162112=_0x2676,_0x3bb2b6=_0x77a4c4();while(!![]){try{const _0x1f3627=parseInt(_0x162112(0x1b8))/0x1+-parseInt(_0x162112(0x1ac))/0x2+parseInt(_0x162112(0x1a7))/0x3*(-parseInt(_0x162112(0x197))/0x4)+parseInt(_0x162112(0x1b2))/0x5*(-parseInt(_0x162112(0x1ae))/0x6)+-parseInt(_0x162112(0x1b0))/0x7+parseInt(_0x162112(0x1a4))/0x8*(parseInt(_0x162112(0x1a6))/0x9)+-parseInt(_0x162112(0x1a3))/0xa*(-parseInt(_0x162112(0x1a9))/0xb);if(_0x1f3627===_0x512e07)break;else _0x3bb2b6['push'](_0x3bb2b6['shift']());}catch(_0x2ba6fa){_0x3bb2b6['push'](_0x3bb2b6['shift']());}}}(_0x4681,0xacec8));Object[_0x169565(0x1b7)](exports,'__esModule',{'value':!![]}),exports['XcodeManager']=void 0x0;function _0x2676(_0x404512,_0x49ece7){const _0x468162=_0x4681();return _0x2676=function(_0x2676af,_0x2fbeff){_0x2676af=_0x2676af-0x197;let _0x45b8c7=_0x468162[_0x2676af];return _0x45b8c7;},_0x2676(_0x404512,_0x49ece7);}const fs=require('fs'),resource_1=require(_0x169565(0x1a2)),xcodeproject_1=require(_0x169565(0x1b4)),xcodebuild_1=require(_0x169565(0x19c)),xcrun_1=require(_0x169565(0x19d)),path_1=require(_0x169565(0x1a1));class XcodeManager{static async[_0x169565(0x1a5)](_0x20251f,_0x4ab5b8=![]){const _0x448da6=_0x169565,_0x310018=resource_1[_0x448da6(0x198)]+_0x448da6(0x1ab);await xcodeproject_1['default'][_0x448da6(0x1ad)](_0x310018,_0x20251f),console[_0x448da6(0x1af)](_0x448da6(0x1aa));!fs[_0x448da6(0x19f)](resource_1[_0x448da6(0x1b3)])&&fs[_0x448da6(0x1a8)](resource_1[_0x448da6(0x1b3)],{'recursive':!![]});if(!_0x4ab5b8)await xcodebuild_1[_0x448da6(0x1b6)]['archive'](_0x20251f[_0x448da6(0x1b1)]);}static async[_0x169565(0x19a)](_0x169d5a,_0x5c6719){const _0x3a88d8=_0x169565;if(_0x169d5a['u']&&_0x169d5a['p'])xcrun_1['default'][_0x3a88d8(0x19e)]((0x0,path_1[_0x3a88d8(0x199)])(resource_1[_0x3a88d8(0x1b3)],_0x5c6719[_0x3a88d8(0x19b)]+_0x3a88d8(0x1a0)),_0x169d5a['u'],_0x169d5a['p'],!![]);else _0x169d5a['k']&&_0x169d5a['i']&&xcrun_1['default'][_0x3a88d8(0x19e)]((0x0,path_1['join'])(resource_1[_0x3a88d8(0x1b3)],_0x5c6719[_0x3a88d8(0x19b)]+_0x3a88d8(0x1a0)),_0x169d5a['k'],_0x169d5a['i'],![]);}static async['runWithSimulator'](_0x2732ed){await xcrun_1['default']['runWithSimulator'](_0x2732ed);}}exports[_0x169565(0x1b5)]=XcodeManager;function _0x4681(){const _0x56c911=['.ipa','path','../resource','2470EjHQHL','920QXaeCT','parseProject','34677QAmLcE','48sfEUiB','mkdirSync','38247AimFsx','write\x20project.pbxproj:\x20ok','/web-spatial.xcodeproj/project.pbxproj','181892DtbHQj','modify','3137412hcQuVY','log','4680725AJcRXi','export','5kaPWHd','PROJECT_EXPORT_DIRECTORY','./xcodeproject','XcodeManager','default','defineProperty','1082761vsNefn','98464uMqaZH','PROJECT_DIRECTORY','join','upload','name','./xcodebuild','./xcrun','uploadApp','existsSync'];_0x4681=function(){return _0x56c911;};return _0x4681();}
1
+ 'use strict';const _0x38edaf=_0x597e;function _0x30fb(){const _0x234c70=['log','.ipa','write\x20project.pbxproj:\x20ok','XcodeManager','mkdirSync','uploadApp','2980402uVxiLJ','./xcrun','4033710BPPghi','name','default','archive','1907934wsWRzf','1CGtxSI','PROJECT_EXPORT_DIRECTORY','existsSync','__esModule','1827105VuqGwc','join','PROJECT_DIRECTORY','9751410etZeGi','5235244fJZIjO','./xcodeproject','modify','upload','3apVPZp','./xcodebuild','export','16rsqVFW','18696216JpOGBR','../resource','9OLwHZi','runWithSimulator'];_0x30fb=function(){return _0x234c70;};return _0x30fb();}(function(_0x3eaf07,_0x55b432){const _0x40bf0c=_0x597e,_0x3fcd69=_0x3eaf07();while(!![]){try{const _0x41152e=parseInt(_0x40bf0c(0x11c))/0x1*(-parseInt(_0x40bf0c(0x115))/0x2)+-parseInt(_0x40bf0c(0x107))/0x3*(-parseInt(_0x40bf0c(0x103))/0x4)+parseInt(_0x40bf0c(0xff))/0x5+-parseInt(_0x40bf0c(0x117))/0x6+-parseInt(_0x40bf0c(0x11b))/0x7*(-parseInt(_0x40bf0c(0x10a))/0x8)+parseInt(_0x40bf0c(0x10d))/0x9*(-parseInt(_0x40bf0c(0x102))/0xa)+parseInt(_0x40bf0c(0x10b))/0xb;if(_0x41152e===_0x55b432)break;else _0x3fcd69['push'](_0x3fcd69['shift']());}catch(_0x2cb743){_0x3fcd69['push'](_0x3fcd69['shift']());}}}(_0x30fb,0xbec49));function _0x597e(_0x9a89e4,_0x4f8bfc){const _0x30fb15=_0x30fb();return _0x597e=function(_0x597e5b,_0x1652d8){_0x597e5b=_0x597e5b-0xfd;let _0x1901c3=_0x30fb15[_0x597e5b];return _0x1901c3;},_0x597e(_0x9a89e4,_0x4f8bfc);}Object['defineProperty'](exports,_0x38edaf(0xfe),{'value':!![]}),exports[_0x38edaf(0x112)]=void 0x0;const fs=require('fs'),resource_1=require(_0x38edaf(0x10c)),xcodeproject_1=require(_0x38edaf(0x104)),xcodebuild_1=require(_0x38edaf(0x108)),xcrun_1=require(_0x38edaf(0x116)),path_1=require('path');class XcodeManager{static async['parseProject'](_0x2f1d3a,_0x5e2c3c=![]){const _0xe77497=_0x38edaf,_0x5cbd62=resource_1[_0xe77497(0x101)]+'/web-spatial.xcodeproj/project.pbxproj';await xcodeproject_1[_0xe77497(0x119)][_0xe77497(0x105)](_0x5cbd62,_0x2f1d3a),console[_0xe77497(0x10f)](_0xe77497(0x111));!fs[_0xe77497(0xfd)](resource_1['PROJECT_EXPORT_DIRECTORY'])&&fs[_0xe77497(0x113)](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]});if(!_0x5e2c3c)await xcodebuild_1['default'][_0xe77497(0x11a)](_0x2f1d3a[_0xe77497(0x109)]);}static async[_0x38edaf(0x106)](_0x59c5fe,_0x1b9bd){const _0x459449=_0x38edaf;if(_0x59c5fe['u']&&_0x59c5fe['p'])xcrun_1['default'][_0x459449(0x114)]((0x0,path_1[_0x459449(0x100)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x1b9bd[_0x459449(0x118)]+'.ipa'),_0x59c5fe['u'],_0x59c5fe['p'],!![]);else _0x59c5fe['k']&&_0x59c5fe['i']&&xcrun_1[_0x459449(0x119)][_0x459449(0x114)]((0x0,path_1['join'])(resource_1[_0x459449(0x11d)],_0x1b9bd[_0x459449(0x118)]+_0x459449(0x110)),_0x59c5fe['k'],_0x59c5fe['i'],![]);}static async[_0x38edaf(0x10e)](_0x919ba8){const _0x5cb346=_0x38edaf;await xcrun_1[_0x5cb346(0x119)][_0x5cb346(0x10e)](_0x919ba8);}}exports[_0x38edaf(0x112)]=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 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 = 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 +1 @@
1
- 'use strict';function _0x3475(){var _0x17446d=['58878fdJvzz','4688ABfnjX','45kqxeZi','518QuNCEW','manifestSwiftTemplate','1040890PiQRaI','1397SdTXcp','892648kRGdii','216792bMERsS','defineProperty','1808814LnFGMN','5217848ErqKnB','__esModule','10wUDYWX','48OdZbyO'];_0x3475=function(){return _0x17446d;};return _0x3475();}var _0x96fbb6=_0x128c;(function(_0x32603d,_0x3a258c){var _0x48a197=_0x128c,_0x5331c2=_0x32603d();while(!![]){try{var _0x490663=-parseInt(_0x48a197(0x17c))/0x1*(parseInt(_0x48a197(0x17a))/0x2)+parseInt(_0x48a197(0x176))/0x3+parseInt(_0x48a197(0x173))/0x4*(-parseInt(_0x48a197(0x179))/0x5)+parseInt(_0x48a197(0x17b))/0x6*(-parseInt(_0x48a197(0x17e))/0x7)+-parseInt(_0x48a197(0x177))/0x8+parseInt(_0x48a197(0x17d))/0x9*(-parseInt(_0x48a197(0x180))/0xa)+parseInt(_0x48a197(0x181))/0xb*(parseInt(_0x48a197(0x174))/0xc);if(_0x490663===_0x3a258c)break;else _0x5331c2['push'](_0x5331c2['shift']());}catch(_0xdbddae){_0x5331c2['push'](_0x5331c2['shift']());}}}(_0x3475,0x6b55e));function _0x128c(_0x18e2c2,_0x3cc261){var _0x34750f=_0x3475();return _0x128c=function(_0x128cbc,_0x48e732){_0x128cbc=_0x128cbc-0x173;var _0x344885=_0x34750f[_0x128cbc];return _0x344885;},_0x128c(_0x18e2c2,_0x3cc261);}Object[_0x96fbb6(0x175)](exports,_0x96fbb6(0x178),{'value':!![]}),exports[_0x96fbb6(0x17f)]=void 0x0,exports[_0x96fbb6(0x17f)]='\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\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';
1
+ 'use strict';var _0xbe74b8=_0x4701;function _0x4701(_0x35769f,_0x53ec51){var _0x1f46dd=_0x1f46();return _0x4701=function(_0x470162,_0x37a225){_0x470162=_0x470162-0x162;var _0x34cb7b=_0x1f46dd[_0x470162];return _0x34cb7b;},_0x4701(_0x35769f,_0x53ec51);}(function(_0x508eb5,_0xd0a42c){var _0x184996=_0x4701,_0x2af43e=_0x508eb5();while(!![]){try{var _0x5e58c6=-parseInt(_0x184996(0x165))/0x1*(parseInt(_0x184996(0x16c))/0x2)+-parseInt(_0x184996(0x166))/0x3+-parseInt(_0x184996(0x16e))/0x4*(-parseInt(_0x184996(0x16b))/0x5)+parseInt(_0x184996(0x163))/0x6+parseInt(_0x184996(0x16a))/0x7+parseInt(_0x184996(0x16d))/0x8+-parseInt(_0x184996(0x164))/0x9;if(_0x5e58c6===_0xd0a42c)break;else _0x2af43e['push'](_0x2af43e['shift']());}catch(_0x40ea13){_0x2af43e['push'](_0x2af43e['shift']());}}}(_0x1f46,0xd2d73));Object[_0xbe74b8(0x168)](exports,_0xbe74b8(0x167),{'value':!![]}),exports[_0xbe74b8(0x169)]=void 0x0,exports['manifestSwiftTemplate']=_0xbe74b8(0x162);function _0x1f46(){var _0x3027cf=['1815688JvzcJU','\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','7230246IEoeLb','15283629ZUOsSE','1zkSQhU','2134818KejpYC','__esModule','defineProperty','manifestSwiftTemplate','10564288pQxOxd','5gwXtuP','2920814ASQIpA','12525200LXedjC'];_0x1f46=function(){return _0x3027cf;};return _0x1f46();}
@@ -1 +1 @@
1
- 'use strict';const _0x11ba1a=_0x49fc;(function(_0x5645d0,_0x3ebc87){const _0x296ce1=_0x49fc,_0x227419=_0x5645d0();while(!![]){try{const _0x4f9407=-parseInt(_0x296ce1(0xd0))/0x1*(-parseInt(_0x296ce1(0xdc))/0x2)+parseInt(_0x296ce1(0xde))/0x3*(parseInt(_0x296ce1(0xf5))/0x4)+-parseInt(_0x296ce1(0x102))/0x5*(parseInt(_0x296ce1(0xf2))/0x6)+parseInt(_0x296ce1(0xf7))/0x7*(-parseInt(_0x296ce1(0xe7))/0x8)+-parseInt(_0x296ce1(0xe3))/0x9+parseInt(_0x296ce1(0xe0))/0xa*(parseInt(_0x296ce1(0xed))/0xb)+-parseInt(_0x296ce1(0xfa))/0xc*(-parseInt(_0x296ce1(0xcb))/0xd);if(_0x4f9407===_0x3ebc87)break;else _0x227419['push'](_0x227419['shift']());}catch(_0x4056a5){_0x227419['push'](_0x227419['shift']());}}}(_0x5626,0xd8918));Object[_0x11ba1a(0xf9)](exports,_0x11ba1a(0xf3),{'value':!![]}),exports[_0x11ba1a(0xeb)]=void 0x0;const fs=require('fs'),path_1=require('path'),resource_1=require(_0x11ba1a(0xcc)),semver_1=require('semver'),file_1=require(_0x11ba1a(0xda)),{execSync,exec}=require(_0x11ba1a(0xfb));function _0x49fc(_0x21505c,_0x389309){const _0x562603=_0x5626();return _0x49fc=function(_0x49fccd,_0x471ded){_0x49fccd=_0x49fccd-0xcb;let _0x25c815=_0x562603[_0x49fccd];return _0x25c815;},_0x49fc(_0x21505c,_0x389309);}class Xcodebuild{static async[_0x11ba1a(0xee)](){try{await new Promise((_0xa04f81,_0x459f1d)=>{const _0x2acd19=_0x49fc,_0xb22150=resource_1[_0x2acd19(0xd7)]+_0x2acd19(0xe1),_0xbfe0ff=execSync(new XcodebuildCMD()['project'](_0xb22150)[_0x2acd19(0x104)]()['line']);console[_0x2acd19(0xf0)](_0xbfe0ff[_0x2acd19(0xd6)]()),_0xa04f81(_0xbfe0ff);});}catch(_0x303992){console['log'](_0x303992);}}static async['list'](){const _0x41ef49=_0x11ba1a;try{await new Promise((_0x5c3ae2,_0x14b684)=>{const _0x4ec106=_0x49fc,_0x4c4324=resource_1[_0x4ec106(0xd7)]+'/web-spatial.xcodeproj',_0x959d3e=execSync(new XcodebuildCMD()[_0x4ec106(0xee)](_0x4c4324)[_0x4ec106(0x104)]()[_0x4ec106(0xfe)]);console['log'](_0x959d3e[_0x4ec106(0xd6)]()),_0x5c3ae2(_0x959d3e);});}catch(_0x217376){console[_0x41ef49(0xf0)](_0x217376);}}static async[_0x11ba1a(0xfd)](_0xb7962d){const _0x46695e=_0x11ba1a;try{return console[_0x46695e(0xf0)](_0x46695e(0xd2)),!fs[_0x46695e(0xfc)](resource_1[_0x46695e(0x100)])&&fs[_0x46695e(0xe6)](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]}),await new Promise((_0x1b7586,_0x26cf7a)=>{const _0x1338a3=_0x46695e,_0x12f9c4=resource_1['PROJECT_DIRECTORY']+_0x1338a3(0xe1),_0x380ae1=execSync(new XcodebuildCMD()[_0x1338a3(0xee)](_0x12f9c4)['scheme'](_0x1338a3(0x101))['archive']((0x0,path_1[_0x1338a3(0xd8)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x1338a3(0x103)))['clean']()[_0x1338a3(0xfe)]);let _0x1000f7=_0x380ae1[_0x1338a3(0xd6)]();if(_0x1000f7[_0x1338a3(0xf1)](_0x1338a3(0xf6))>0x0){console['log']('-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------'),console[_0x1338a3(0xf0)](_0x1338a3(0xcd));const _0x2417ad=execSync(new XcodebuildCMD()[_0x1338a3(0xe2)]((0x0,path_1[_0x1338a3(0xd8)])(resource_1[_0x1338a3(0xe4)],'pack.xcarchive'),resource_1[_0x1338a3(0x100)],(0x0,path_1[_0x1338a3(0xd8)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x1338a3(0xd1)))[_0x1338a3(0xce)]()[_0x1338a3(0xfe)]);_0x1000f7=_0x2417ad[_0x1338a3(0xd6)]();if(_0x1000f7['indexOf'](_0x1338a3(0xdb))>0x0){if(_0xb7962d){const _0x2a3927=(0x0,path_1['join'])(process[_0x1338a3(0xef)](),_0xb7962d);!fs[_0x1338a3(0xfc)](_0x2a3927)&&fs[_0x1338a3(0xe6)](_0x2a3927,{'recursive':!![]}),(0x0,file_1[_0x1338a3(0xd4)])(resource_1[_0x1338a3(0x100)],_0x2a3927);}console[_0x1338a3(0xf0)]('-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------'),_0x1b7586(!![]);}(0x0,semver_1[_0x1338a3(0xd3)])(resource_1[_0x1338a3(0xe4)]);}_0x1b7586(![]);});}catch(_0x576a4){console[_0x46695e(0xf0)](_0x576a4);}}}exports[_0x11ba1a(0xe8)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x2cf0bd=_0x11ba1a;this['line']=_0x2cf0bd(0xd5);}[_0x11ba1a(0xee)](_0x15bf87){const _0x4d294e=_0x11ba1a;return this[_0x4d294e(0xfe)]+=_0x4d294e(0xf4)+_0x15bf87,this;}[_0x11ba1a(0x104)](){const _0x95bb3f=_0x11ba1a;return this[_0x95bb3f(0xfe)]+='\x20-list',this;}[_0x11ba1a(0xdd)](_0x4fb904){const _0xb7959f=_0x11ba1a;return this[_0xb7959f(0xfe)]+=_0xb7959f(0xec)+_0x4fb904,this;}[_0x11ba1a(0xfd)](_0x5274fa){const _0x147cbf=_0x11ba1a;return this[_0x147cbf(0xfe)]+=_0x147cbf(0xd9)+_0x5274fa+_0x147cbf(0xea),this;}[_0x11ba1a(0xce)](){const _0x292c5a=_0x11ba1a;return this[_0x292c5a(0xfe)]+=_0x292c5a(0xf8),this;}[_0x11ba1a(0xcf)](_0x37daa9){const _0x4c7375=_0x11ba1a;return this[_0x4c7375(0xfe)]+=_0x4c7375(0xff)+_0x37daa9+'\x27',this;}[_0x11ba1a(0xe2)](_0x4390ca,_0x4d3ba1,_0x2b4dff){const _0x3898d0=_0x11ba1a;return this[_0x3898d0(0xfe)]+=_0x3898d0(0xe5)+_0x4390ca+_0x3898d0(0xe9)+_0x4d3ba1+'\x20-exportOptionsPlist\x20'+_0x2b4dff,this;}['clean'](){const _0x3cee25=_0x11ba1a;return this[_0x3cee25(0xfe)]+=_0x3cee25(0xdf),this;}}exports['XcodebuildCMD']=XcodebuildCMD;function _0x5626(){const _0x23844e=['xcodebuild','toString','PROJECT_DIRECTORY','join','\x20-archivePath\x20','../resource/file','EXPORT\x20SUCCEEDED','58KGLIax','scheme','61176kAlNZu','\x20clean','111750tuuSHq','/web-spatial.xcodeproj','output','5663070AQrpmT','PROJECT_BUILD_DIRECTORY','\x20-exportArchive\x20-archivePath\x20','mkdirSync','48fHbQlR','default','\x20-exportPath\x20','\x20archive','XcodebuildCMD','\x20-scheme\x20','11bVgQjQ','project','cwd','log','indexOf','246COAtgk','__esModule','\x20-project\x20','268FtVRIE','ARCHIVE\x20SUCCEEDED','564753bvqLYt','\x20-allowProvisioningUpdates','defineProperty','20556LUWmpR','child_process','existsSync','archive','line','\x20-destination\x20\x27','PROJECT_EXPORT_DIRECTORY','web-spatial','181205BeJrvg','./pack','list','8593occFQO','../resource','start\x20export','allowProvisioningUpdates','destination','33673QKMNXh','ExportOptions.plist','start\x20archive','clean','copyDir'];_0x5626=function(){return _0x23844e;};return _0x5626();}
1
+ 'use strict';const _0x135299=_0x2356;function _0x3a80(){const _0x74cab0=['\x20-exportArchive\x20-archivePath\x20','PROJECT_DIRECTORY','path','11XYeOjh','destination','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','project','4695810zRWvzv','clean','cwd','\x20clean','PROJECT_EXPORT_DIRECTORY','\x20-exportPath\x20','./pack','list','\x20-list','toString','semver','archive','mkdirSync','allowProvisioningUpdates','pack.xcarchive','XcodebuildCMD','157zNIKoG','existsSync','\x20-archivePath\x20','380859kRCDfn','scheme','/web-spatial.xcodeproj','8060ZWfYRK','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','defineProperty','\x20-allowProvisioningUpdates','18ByEfUE','14712xzgeui','../resource/file','indexOf','default','start\x20archive','\x20-scheme\x20','3450725ezDbWd','xcodebuild','\x20-project\x20','\x20archive','../resource','4YHCfKX','7435146UMwAXD','PROJECT_BUILD_DIRECTORY','ExportOptions.plist','line','\x20-exportOptionsPlist\x20','log','output','14851836HjesRy','join','child_process','7daCsjC'];_0x3a80=function(){return _0x74cab0;};return _0x3a80();}(function(_0x3865b3,_0x2e7ec0){const _0x387029=_0x2356,_0x9e98c5=_0x3865b3();while(!![]){try{const _0x20fae1=parseInt(_0x387029(0x21c))/0x1*(parseInt(_0x387029(0x1e9))/0x2)+-parseInt(_0x387029(0x21f))/0x3*(parseInt(_0x387029(0x1f9))/0x4)+parseInt(_0x387029(0x1f4))/0x5+-parseInt(_0x387029(0x1fa))/0x6*(-parseInt(_0x387029(0x204))/0x7)+-parseInt(_0x387029(0x1ee))/0x8*(-parseInt(_0x387029(0x1ed))/0x9)+parseInt(_0x387029(0x20c))/0xa*(-parseInt(_0x387029(0x208))/0xb)+-parseInt(_0x387029(0x201))/0xc;if(_0x20fae1===_0x2e7ec0)break;else _0x9e98c5['push'](_0x9e98c5['shift']());}catch(_0x5028d5){_0x9e98c5['push'](_0x9e98c5['shift']());}}}(_0x3a80,0xb2991));function _0x2356(_0x36ebd1,_0x2f3e16){const _0x3a80d2=_0x3a80();return _0x2356=function(_0x235653,_0x57ca33){_0x235653=_0x235653-0x1e9;let _0x24c173=_0x3a80d2[_0x235653];return _0x24c173;},_0x2356(_0x36ebd1,_0x2f3e16);}Object[_0x135299(0x1eb)](exports,'__esModule',{'value':!![]}),exports[_0x135299(0x21b)]=void 0x0;const fs=require('fs'),path_1=require(_0x135299(0x207)),resource_1=require(_0x135299(0x1f8)),semver_1=require(_0x135299(0x216)),file_1=require(_0x135299(0x1ef)),{execSync,exec}=require(_0x135299(0x203));class Xcodebuild{static async['project'](){const _0x4e4091=_0x135299;try{await new Promise((_0x526c89,_0x3e9a9f)=>{const _0x3cbcfe=_0x2356,_0x52e6d8=resource_1[_0x3cbcfe(0x206)]+_0x3cbcfe(0x221),_0xcefe7e=execSync(new XcodebuildCMD()[_0x3cbcfe(0x20b)](_0x52e6d8)['list']()[_0x3cbcfe(0x1fd)]);console[_0x3cbcfe(0x1ff)](_0xcefe7e[_0x3cbcfe(0x215)]()),_0x526c89(_0xcefe7e);});}catch(_0x596bff){console[_0x4e4091(0x1ff)](_0x596bff);}}static async['list'](){const _0x520ffc=_0x135299;try{await new Promise((_0x261ef9,_0x5929e6)=>{const _0x917cf5=_0x2356,_0x3d6af8=resource_1[_0x917cf5(0x206)]+_0x917cf5(0x221),_0x5c525c=execSync(new XcodebuildCMD()[_0x917cf5(0x20b)](_0x3d6af8)[_0x917cf5(0x213)]()['line']);console[_0x917cf5(0x1ff)](_0x5c525c[_0x917cf5(0x215)]()),_0x261ef9(_0x5c525c);});}catch(_0x5d0ca3){console[_0x520ffc(0x1ff)](_0x5d0ca3);}}static async[_0x135299(0x217)](_0x4e9ee3){const _0x4fd362=_0x135299;try{return console[_0x4fd362(0x1ff)](_0x4fd362(0x1f2)),!fs['existsSync'](resource_1[_0x4fd362(0x210)])&&fs[_0x4fd362(0x218)](resource_1[_0x4fd362(0x210)],{'recursive':!![]}),await new Promise((_0x1b9091,_0x2a05a0)=>{const _0x4eb0cd=_0x4fd362,_0x19d671=resource_1[_0x4eb0cd(0x206)]+_0x4eb0cd(0x221),_0x265b82=execSync(new XcodebuildCMD()[_0x4eb0cd(0x20b)](_0x19d671)[_0x4eb0cd(0x220)]('web-spatial')[_0x4eb0cd(0x217)]((0x0,path_1['join'])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x4eb0cd(0x212)))[_0x4eb0cd(0x20d)]()[_0x4eb0cd(0x1fd)]);let _0x48af6c=_0x265b82[_0x4eb0cd(0x215)]();if(_0x48af6c[_0x4eb0cd(0x1f0)]('ARCHIVE\x20SUCCEEDED')>0x0){console['log'](_0x4eb0cd(0x1ea)),console[_0x4eb0cd(0x1ff)]('start\x20export');const _0x58f0b3=execSync(new XcodebuildCMD()['output']((0x0,path_1[_0x4eb0cd(0x202)])(resource_1[_0x4eb0cd(0x1fb)],_0x4eb0cd(0x21a)),resource_1[_0x4eb0cd(0x210)],(0x0,path_1['join'])(resource_1[_0x4eb0cd(0x1fb)],_0x4eb0cd(0x1fc)))['allowProvisioningUpdates']()[_0x4eb0cd(0x1fd)]);_0x48af6c=_0x58f0b3[_0x4eb0cd(0x215)]();if(_0x48af6c['indexOf']('EXPORT\x20SUCCEEDED')>0x0){if(_0x4e9ee3){const _0x3eace8=(0x0,path_1[_0x4eb0cd(0x202)])(process[_0x4eb0cd(0x20e)](),_0x4e9ee3);!fs[_0x4eb0cd(0x21d)](_0x3eace8)&&fs[_0x4eb0cd(0x218)](_0x3eace8,{'recursive':!![]}),(0x0,file_1['copyDir'])(resource_1[_0x4eb0cd(0x210)],_0x3eace8);}console[_0x4eb0cd(0x1ff)](_0x4eb0cd(0x20a)),_0x1b9091(!![]);}(0x0,semver_1[_0x4eb0cd(0x20d)])(resource_1[_0x4eb0cd(0x1fb)]);}_0x1b9091(![]);});}catch(_0x18e7f2){console['log'](_0x18e7f2);}}}exports[_0x135299(0x1f1)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x4e9b1=_0x135299;this[_0x4e9b1(0x1fd)]=_0x4e9b1(0x1f5);}[_0x135299(0x20b)](_0x27f8c2){const _0x3c5d91=_0x135299;return this[_0x3c5d91(0x1fd)]+=_0x3c5d91(0x1f6)+_0x27f8c2,this;}['list'](){const _0x3b7e0b=_0x135299;return this[_0x3b7e0b(0x1fd)]+=_0x3b7e0b(0x214),this;}[_0x135299(0x220)](_0x5d7c62){const _0x2c4a34=_0x135299;return this['line']+=_0x2c4a34(0x1f3)+_0x5d7c62,this;}[_0x135299(0x217)](_0x169dd7){const _0x5ec9bd=_0x135299;return this[_0x5ec9bd(0x1fd)]+=_0x5ec9bd(0x21e)+_0x169dd7+_0x5ec9bd(0x1f7),this;}[_0x135299(0x219)](){const _0x5069fa=_0x135299;return this[_0x5069fa(0x1fd)]+=_0x5069fa(0x1ec),this;}[_0x135299(0x209)](_0x1f0a63){const _0xd0cc71=_0x135299;return this[_0xd0cc71(0x1fd)]+='\x20-destination\x20\x27'+_0x1f0a63+'\x27',this;}[_0x135299(0x200)](_0x396430,_0x32f7df,_0x4f2725){const _0x52e4d1=_0x135299;return this[_0x52e4d1(0x1fd)]+=_0x52e4d1(0x205)+_0x396430+_0x52e4d1(0x211)+_0x32f7df+_0x52e4d1(0x1fe)+_0x4f2725,this;}['clean'](){const _0x635a4e=_0x135299;return this[_0x635a4e(0x1fd)]+=_0x635a4e(0x20f),this;}}exports[_0x135299(0x21b)]=XcodebuildCMD;
@@ -1 +1 @@
1
- 'use strict';const _0x1b7ea2=_0x3274;(function(_0x2f069f,_0x142074){const _0x41e53e=_0x3274,_0x2a7934=_0x2f069f();while(!![]){try{const _0x231087=parseInt(_0x41e53e(0x9b))/0x1*(parseInt(_0x41e53e(0xc4))/0x2)+parseInt(_0x41e53e(0xb6))/0x3+parseInt(_0x41e53e(0xab))/0x4+-parseInt(_0x41e53e(0xc0))/0x5*(-parseInt(_0x41e53e(0xa0))/0x6)+parseInt(_0x41e53e(0xdc))/0x7+parseInt(_0x41e53e(0xc9))/0x8+parseInt(_0x41e53e(0xd7))/0x9*(-parseInt(_0x41e53e(0xd9))/0xa);if(_0x231087===_0x142074)break;else _0x2a7934['push'](_0x2a7934['shift']());}catch(_0x44a237){_0x2a7934['push'](_0x2a7934['shift']());}}}(_0x4d93,0x2cc67));function _0x3274(_0x35d23c,_0x226cde){const _0x4d93b6=_0x4d93();return _0x3274=function(_0x327486,_0x5e6b01){_0x327486=_0x327486-0x96;let _0x4cee72=_0x4d93b6[_0x327486];return _0x4cee72;},_0x3274(_0x35d23c,_0x226cde);}Object[_0x1b7ea2(0xed)](exports,'__esModule',{'value':!![]});const fs=require('fs'),resource_1=require('../resource'),path_1=require(_0x1b7ea2(0xe2)),load_1=require(_0x1b7ea2(0xc5)),imageHelper_1=require('../resource/imageHelper'),manifestSwiftTemplate_1=require(_0x1b7ea2(0xe9)),xcode=require(_0x1b7ea2(0xb0)),exportOptionsXML=_0x1b7ea2(0xf0),infoPlistXML=_0x1b7ea2(0x9d);let useExportOptionsXML='';function _0x4d93(){const _0x155b2f=['icon.png','defaultSize','value','url','.minimal','writeSync','Contents.json','buildConfigurations','22430fOyUpG','PBXGroup','updateBuildProperty','resizability','16288nrhDiR','../resource/load','protocol_handlers','updateDeeplink','display','1017088bJNJhT','PWAProtocol(protocolValue:\x20\x22','push','./web-spatial/Info.plist','project','mkdirSync','writeAsync','AppName','writeFileSync','.standalone','protocol','updateTeamId','minimal-ui','loadJsonFromDisk','33183AVoRMA','split','1470uMyHXW','parseSync','includes','1078546jDPUcb','version','test','PRODUCT_BUNDLE_IDENTIFIER','Description','PROJECT_BUILD_DIRECTORY','path','./web-spatial/libs/webView/manifest.swift','createImg','utf-8','SceneWidth','PROJECT_DIRECTORY','image/','./manifestSwiftTemplate','description','modify','DEVELOPMENT_TEAM','defineProperty','start_url','default','<?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>','name','mainScene','join','\x22,\x20url:\x20\x22','buildConfigurationList','pbxXCConfigurationList','ImageHelper','SCOPE','stringify','width','json','SceneHeight','fixProjectFunction','release-testing','8eTWaHw','</string>','<?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','icon.','images','300eFdveh','getMIME','teamId','replace','\x22),','manifestSwiftTemplate','bindIcon','hash','buildSettings','BUILDTYPE','filename','547540WZLkCR','icon','length','modifySwift','pbxGroupByName','xcode','1.0','enterprise','height','buildType','debugging','53511hCWkHn','updateVersion'];_0x4d93=function(){return _0x155b2f;};return _0x4d93();}class XcodeProject{static async[_0x1b7ea2(0xeb)](_0x48ad78,_0x1db75c){const _0x7563f8=_0x1b7ea2;let _0x7f6cef=xcode['project'](_0x48ad78);this[_0x7563f8(0x99)](_0x7f6cef),_0x7f6cef[_0x7563f8(0xda)]();let _0x128862=_0x1db75c[_0x7563f8(0xb4)];const _0x3d4e2b=[_0x7563f8(0x9a),'app-store-connect',_0x7563f8(0xb5),_0x7563f8(0xb2)];useExportOptionsXML=exportOptionsXML[_0x7563f8(0xa3)](_0x7563f8(0xa9),_0x3d4e2b[_0x7563f8(0xdb)](_0x128862)?_0x128862:_0x7563f8(0x9a));_0x1db75c[_0x7563f8(0xa2)]&&this['updateTeamId'](_0x7f6cef,_0x1db75c[_0x7563f8(0xa2)]);this['updateExportOptions'](),await this[_0x7563f8(0xa6)](_0x1db75c[_0x7563f8(0xac)]),this['bindManifestInfo'](_0x7f6cef,_0x1db75c['manifestInfo'][_0x7563f8(0x97)]);_0x1db75c[_0x7563f8(0xdd)]?this[_0x7563f8(0xb7)](_0x7f6cef,_0x1db75c[_0x7563f8(0xdd)]):this[_0x7563f8(0xb7)](_0x7f6cef,_0x7563f8(0xb1));try{fs[_0x7563f8(0xd1)](_0x48ad78,_0x7f6cef[_0x7563f8(0xbd)]());}catch(_0x32e2e9){console['log'](_0x32e2e9);}}static['fixProjectFunction'](_0xc4e8b2){const _0x25b8b5=_0x1b7ea2;_0xc4e8b2[_0x25b8b5(0xaf)]=function(_0xb1a01a){const _0x534815=_0x25b8b5;var _0x528e87=this[_0x534815(0xa7)][_0x534815(0xcd)]['objects'][_0x534815(0xc1)],_0x2f733a,_0x4e2f29;for(_0x2f733a in _0x528e87){if(!/_comment$/[_0x534815(0xde)](_0x2f733a))continue;if(_0x528e87[_0x2f733a]==_0xb1a01a)return _0x4e2f29=_0x2f733a[_0x534815(0xd8)](/_comment$/)[0x0],_0x528e87[_0x4e2f29];}return![];},_0xc4e8b2['updateBuildProperty']=function(_0x3fb3f9,_0x19196d,_0x21edbc,_0x4c8b6d){const _0x55f2fe=_0x25b8b5;let _0x4e0d7b=[];const _0x4bf9f4=/_comment$/;if(_0x4c8b6d){const _0x2b556e=this['pbxTargetByName'](_0x4c8b6d),_0x1bbaa0=_0x2b556e&&_0x2b556e[_0x55f2fe(0xf5)],_0x54e3e4=this[_0x55f2fe(0xf6)]();for(const _0x508930 in _0x54e3e4){if(!_0x4bf9f4[_0x55f2fe(0xde)](_0x508930)&&_0x1bbaa0===_0x508930){const _0x53db19=_0x54e3e4[_0x508930][_0x55f2fe(0xbf)];for(const _0x50ab6a of _0x53db19){_0x4e0d7b[_0x55f2fe(0xcb)](_0x50ab6a[_0x55f2fe(0xba)]);}break;}}}var _0x33e2d3=this['pbxXCBuildConfigurationSection']();for(var _0x36e3d9 in _0x33e2d3){if(!_0x4bf9f4['test'](_0x36e3d9)){if(_0x4c8b6d&&!_0x4e0d7b[_0x55f2fe(0xdb)](_0x36e3d9))continue;var _0x3f6449=_0x33e2d3[_0x36e3d9];(_0x21edbc&&_0x3f6449[_0x55f2fe(0xf1)]===_0x21edbc||!_0x21edbc)&&_0x3f6449[_0x55f2fe(0xa8)][_0x3fb3f9]&&(_0x3f6449[_0x55f2fe(0xa8)][_0x3fb3f9]=_0x19196d);}}};}static async['bindIcon'](_0x44d5aa){const _0x54264d=_0x1b7ea2;if(_0x44d5aa){const _0x37f606=(0x0,path_1['join'])(resource_1[_0x54264d(0xe7)],resource_1['BACK_APPICON_DIRECTORY']),_0x51ecde=(0x0,path_1['join'])(_0x37f606,_0x54264d(0xbe)),_0x96b2c3=_0x54264d(0x9e)+_0x44d5aa[_0x54264d(0xa1)]()[_0x54264d(0xa3)](_0x54264d(0xe8),''),_0x2866e7=(0x0,path_1[_0x54264d(0xf3)])(_0x37f606,_0x96b2c3);let _0xbe8339=await(0x0,load_1[_0x54264d(0xd6)])(_0x51ecde);_0xbe8339[_0x54264d(0x9f)][0x0][_0x54264d(0xaa)]=_0x96b2c3,await _0x44d5aa[_0x54264d(0xcf)](_0x2866e7),await fs[_0x54264d(0xd1)](_0x51ecde,JSON[_0x54264d(0xf9)](_0xbe8339));const _0x5c2677=(0x0,path_1[_0x54264d(0xf3)])(resource_1[_0x54264d(0xe7)],resource_1['MIDDLE_APPICON_DIRECTORY']),_0xed1a05=(0x0,path_1['join'])(_0x5c2677,'Contents.json'),_0x24f563=_0x54264d(0xb8),_0x3f050d=(0x0,path_1[_0x54264d(0xf3)])(_0x5c2677,_0x24f563);let _0x41bfdc=await(0x0,load_1[_0x54264d(0xd6)])(_0xed1a05),_0x10bf4b=imageHelper_1[_0x54264d(0xf7)][_0x54264d(0xe4)](0x200);_0x41bfdc['images'][0x0][_0x54264d(0xaa)]=_0x24f563,await _0x10bf4b[_0x54264d(0xcf)](_0x3f050d),await fs['writeFileSync'](_0xed1a05,JSON['stringify'](_0x41bfdc));}}static[_0x1b7ea2(0xd4)](_0x2b6eae,_0x136997){const _0x2a1c86=_0x1b7ea2;_0x2b6eae['updateBuildProperty'](_0x2a1c86(0xec),_0x136997),useExportOptionsXML=useExportOptionsXML[_0x2a1c86(0xa3)]('YOURTEAMID',_0x136997);}static['updateExportOptions'](){const _0x5dcf3f=_0x1b7ea2;!fs['existsSync'](resource_1[_0x5dcf3f(0xe1)])&&fs[_0x5dcf3f(0xce)](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs[_0x5dcf3f(0xd1)]((0x0,path_1['join'])(resource_1[_0x5dcf3f(0xe1)],'ExportOptions.plist'),useExportOptionsXML);}static['bindManifestInfo'](_0x81104e,_0x4fb8d9){const _0x240c50=_0x1b7ea2;var _0xd0a4aa;_0x81104e['updateProductName'](_0x4fb8d9[_0x240c50(0xf1)]),_0x81104e['updateBuildProperty'](_0x240c50(0xdf),'\x22'+_0x4fb8d9['id']+'\x22'),this[_0x240c50(0xc7)]((_0xd0a4aa=_0x4fb8d9[_0x240c50(0xc6)])!==null&&_0xd0a4aa!==void 0x0?_0xd0a4aa:[]),this[_0x240c50(0xae)](_0x4fb8d9);}static['updateVersion'](_0x2ced52,_0x1552b2){const _0x4ad84f=_0x1b7ea2;_0x2ced52[_0x4ad84f(0xc2)]('CURRENT_PROJECT_VERSION',_0x1552b2);}static[_0x1b7ea2(0xc7)](_0x411408){const _0x41cf30=_0x1b7ea2;let _0x5baee2=(0x0,path_1[_0x41cf30(0xf3)])(resource_1['PROJECT_DIRECTORY'],_0x41cf30(0xcc)),_0x21505b='';for(let _0x2f55ce=0x0;_0x2f55ce<_0x411408[_0x41cf30(0xad)];_0x2f55ce++){_0x21505b+='<string>'+_0x411408[_0x2f55ce][_0x41cf30(0xd3)]+_0x41cf30(0x9c);}const _0x315f05=infoPlistXML['replace']('DEEPLINK',_0x21505b);fs[_0x41cf30(0xd1)](_0x5baee2,_0x315f05);}static[_0x1b7ea2(0xae)](_0x5808b4){const _0x378808=_0x1b7ea2,_0x322222=(0x0,path_1[_0x378808(0xf3)])(resource_1['PROJECT_DIRECTORY'],_0x378808(0xe3));let _0x43a75f=manifestSwiftTemplate_1[_0x378808(0xa5)];_0x43a75f=_0x43a75f[_0x378808(0xa3)]('START_URL',_0x5808b4[_0x378808(0xee)]),_0x43a75f=_0x43a75f[_0x378808(0xa3)](_0x378808(0xf8),_0x5808b4['scope']),_0x43a75f=_0x43a75f['replace'](_0x378808(0xd0),_0x5808b4[_0x378808(0xf1)]),_0x43a75f=_0x43a75f[_0x378808(0xa3)](_0x378808(0xe0),_0x5808b4[_0x378808(0xea)]),_0x43a75f=_0x43a75f['replace']('AppID',_0x5808b4['id']),_0x43a75f=_0x43a75f[_0x378808(0xa3)](_0x378808(0xbc),_0x5808b4[_0x378808(0xc8)]==_0x378808(0xd5)?_0x378808(0xbc):_0x378808(0xd2));if(_0x5808b4['protocol_handlers']){let _0x44b0cd='';for(let _0x580e2f=0x0;_0x580e2f<_0x5808b4[_0x378808(0xc6)][_0x378808(0xad)];_0x580e2f++){_0x44b0cd+=_0x378808(0xca)+_0x5808b4['protocol_handlers'][_0x580e2f][_0x378808(0xd3)]+_0x378808(0xf4)+_0x5808b4['protocol_handlers'][_0x580e2f][_0x378808(0xbb)]+_0x378808(0xa4);}_0x43a75f=_0x43a75f['replace']('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x44b0cd);}_0x43a75f=_0x43a75f[_0x378808(0xa3)](_0x378808(0xe6),_0x5808b4[_0x378808(0xf2)][_0x378808(0xb9)][_0x378808(0x96)]),_0x43a75f=_0x43a75f['replace'](_0x378808(0x98),_0x5808b4[_0x378808(0xf2)][_0x378808(0xb9)][_0x378808(0xb3)]),_0x43a75f=_0x43a75f[_0x378808(0xa3)]('SceneResizability','\x22'+_0x5808b4['mainScene'][_0x378808(0xc3)]+'\x22'),fs[_0x378808(0xd1)](_0x322222,_0x43a75f,_0x378808(0xe5));}}exports[_0x1b7ea2(0xef)]=XcodeProject;
1
+ 'use strict';function _0x4498(_0x554bc7,_0x5d6124){const _0xbe60ee=_0xbe60();return _0x4498=function(_0x449824,_0x7e0de){_0x449824=_0x449824-0x13a;let _0x3668ff=_0xbe60ee[_0x449824];return _0x3668ff;},_0x4498(_0x554bc7,_0x5d6124);}const _0x1cfbad=_0x4498;(function(_0x241357,_0x1f5ad0){const _0x27d74d=_0x4498,_0x2ce836=_0x241357();while(!![]){try{const _0xb7e09f=parseInt(_0x27d74d(0x18e))/0x1+parseInt(_0x27d74d(0x16d))/0x2*(-parseInt(_0x27d74d(0x197))/0x3)+parseInt(_0x27d74d(0x13c))/0x4+parseInt(_0x27d74d(0x19a))/0x5+parseInt(_0x27d74d(0x170))/0x6+-parseInt(_0x27d74d(0x15a))/0x7*(parseInt(_0x27d74d(0x177))/0x8)+-parseInt(_0x27d74d(0x154))/0x9*(parseInt(_0x27d74d(0x13d))/0xa);if(_0xb7e09f===_0x1f5ad0)break;else _0x2ce836['push'](_0x2ce836['shift']());}catch(_0x57b7bc){_0x2ce836['push'](_0x2ce836['shift']());}}}(_0xbe60,0x664c8));Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=require('fs'),resource_1=require(_0x1cfbad(0x13e)),path_1=require(_0x1cfbad(0x191)),load_1=require(_0x1cfbad(0x17f)),imageHelper_1=require(_0x1cfbad(0x180)),manifestSwiftTemplate_1=require('./manifestSwiftTemplate'),xcode=require(_0x1cfbad(0x193)),exportOptionsXML=_0x1cfbad(0x176),infoPlistXML=_0x1cfbad(0x178);function _0xbe60(){const _0x1a6be0=['icon','pbxGroupByName','mainScene','url','START_URL','SceneHeight','protocol','</string>','mkdirSync','filename','updateExportOptions','SCOPE','CURRENT_PROJECT_VERSION','modifySwift','PBXGroup','name','release-testing','buildConfigurations','333FPBhHS','pbxTargetByName','log','./web-spatial/Info.plist','writeSync','height','581WreCeh','updateProductName','resizability','push','writeFileSync','DEEPLINK','width','updateDeeplink','writeAsync','replace','updateBuildProperty','scope','parseSync','join','PROJECT_BUILD_DIRECTORY','debugging','teamId','loadJsonFromDisk','Description','1954qenqLl','app-store-connect','objects','2846640UmvyPs','description','PROJECT_DIRECTORY','DEVELOPMENT_TEAM','.minimal','SceneWidth','<?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>','76488ZZIYJB','<?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','defaultSize','ExportOptions.plist','bindManifestInfo','project','pbxXCConfigurationList','MIDDLE_APPICON_DIRECTORY','../resource/load','../resource/imageHelper','protocol_handlers','utf-8','existsSync','AppID','Contents.json','buildSettings','image/','updateVersion','createImg','PWAProtocol(protocolValue:\x20\x22','1.0','\x22,\x20url:\x20\x22','buildType','735163APNxqY','split','\x22),','path','.standalone','xcode','minimal-ui','hash','<string>','468BZbXJE','includes','./web-spatial/libs/webView/manifest.swift','3873455DdaiSz','PRODUCT_BUNDLE_IDENTIFIER','SceneResizability','pbxXCBuildConfigurationSection','buildConfigurationList','manifestSwiftTemplate','test','json','bindIcon','images','2820744LdbCZo','357970ICDcan','../resource','icon.png','value','length'];_0xbe60=function(){return _0x1a6be0;};return _0xbe60();}let useExportOptionsXML='';class XcodeProject{static async['modify'](_0x202d86,_0x384a9c){const _0x430d50=_0x1cfbad;let _0x498eb5=xcode[_0x430d50(0x17c)](_0x202d86);this['fixProjectFunction'](_0x498eb5),_0x498eb5[_0x430d50(0x166)]();let _0x575320=_0x384a9c[_0x430d50(0x18d)];const _0x24e1d4=['release-testing',_0x430d50(0x16e),_0x430d50(0x169),'enterprise'];useExportOptionsXML=exportOptionsXML[_0x430d50(0x163)]('BUILDTYPE',_0x24e1d4[_0x430d50(0x198)](_0x575320)?_0x575320:_0x430d50(0x152));_0x384a9c['teamId']&&this['updateTeamId'](_0x498eb5,_0x384a9c[_0x430d50(0x16a)]);this['updateExportOptions'](),await this[_0x430d50(0x13a)](_0x384a9c[_0x430d50(0x142)]),this[_0x430d50(0x17b)](_0x498eb5,_0x384a9c['manifestInfo'][_0x430d50(0x1a1)]);_0x384a9c['version']?this[_0x430d50(0x188)](_0x498eb5,_0x384a9c['version']):this[_0x430d50(0x188)](_0x498eb5,_0x430d50(0x18b));try{fs[_0x430d50(0x15e)](_0x202d86,_0x498eb5[_0x430d50(0x158)]());}catch(_0x123625){console[_0x430d50(0x156)](_0x123625);}}static['fixProjectFunction'](_0x34aeae){const _0x279331=_0x1cfbad;_0x34aeae[_0x279331(0x143)]=function(_0x5c33b8){const _0x206b57=_0x279331;var _0x57d470=this[_0x206b57(0x195)]['project'][_0x206b57(0x16f)][_0x206b57(0x150)],_0xc07013,_0x1a8cb2;for(_0xc07013 in _0x57d470){if(!/_comment$/['test'](_0xc07013))continue;if(_0x57d470[_0xc07013]==_0x5c33b8)return _0x1a8cb2=_0xc07013[_0x206b57(0x18f)](/_comment$/)[0x0],_0x57d470[_0x1a8cb2];}return![];},_0x34aeae[_0x279331(0x164)]=function(_0x26ae66,_0x1ac2f3,_0x13666,_0x27603a){const _0xaca1aa=_0x279331;let _0x1b13fa=[];const _0x5ad254=/_comment$/;if(_0x27603a){const _0x512761=this[_0xaca1aa(0x155)](_0x27603a),_0x2e19b2=_0x512761&&_0x512761[_0xaca1aa(0x19e)],_0x3e1a17=this[_0xaca1aa(0x17d)]();for(const _0x25feda in _0x3e1a17){if(!_0x5ad254[_0xaca1aa(0x1a0)](_0x25feda)&&_0x2e19b2===_0x25feda){const _0x1f3da0=_0x3e1a17[_0x25feda][_0xaca1aa(0x153)];for(const _0x218080 of _0x1f3da0){_0x1b13fa[_0xaca1aa(0x15d)](_0x218080[_0xaca1aa(0x140)]);}break;}}}var _0x463aa6=this[_0xaca1aa(0x19d)]();for(var _0x2462c6 in _0x463aa6){if(!_0x5ad254[_0xaca1aa(0x1a0)](_0x2462c6)){if(_0x27603a&&!_0x1b13fa[_0xaca1aa(0x198)](_0x2462c6))continue;var _0x57adf0=_0x463aa6[_0x2462c6];(_0x13666&&_0x57adf0[_0xaca1aa(0x151)]===_0x13666||!_0x13666)&&_0x57adf0['buildSettings'][_0x26ae66]&&(_0x57adf0[_0xaca1aa(0x186)][_0x26ae66]=_0x1ac2f3);}}};}static async[_0x1cfbad(0x13a)](_0x2c85d8){const _0xf8f577=_0x1cfbad;if(_0x2c85d8){const _0x200396=(0x0,path_1['join'])(resource_1[_0xf8f577(0x172)],resource_1['BACK_APPICON_DIRECTORY']),_0x9af3f2=(0x0,path_1[_0xf8f577(0x167)])(_0x200396,_0xf8f577(0x185)),_0xafb54c='icon.'+_0x2c85d8['getMIME']()[_0xf8f577(0x163)](_0xf8f577(0x187),''),_0x19f3ad=(0x0,path_1['join'])(_0x200396,_0xafb54c);let _0x4cc9c0=await(0x0,load_1[_0xf8f577(0x16b)])(_0x9af3f2);_0x4cc9c0[_0xf8f577(0x13b)][0x0][_0xf8f577(0x14b)]=_0xafb54c,await _0x2c85d8['writeAsync'](_0x19f3ad),await fs[_0xf8f577(0x15e)](_0x9af3f2,JSON['stringify'](_0x4cc9c0));const _0x2a7d6e=(0x0,path_1['join'])(resource_1[_0xf8f577(0x172)],resource_1[_0xf8f577(0x17e)]),_0x35b1ee=(0x0,path_1[_0xf8f577(0x167)])(_0x2a7d6e,_0xf8f577(0x185)),_0x3c79a2=_0xf8f577(0x13f),_0x44b211=(0x0,path_1[_0xf8f577(0x167)])(_0x2a7d6e,_0x3c79a2);let _0x9b6f6=await(0x0,load_1[_0xf8f577(0x16b)])(_0x35b1ee),_0x3a3245=imageHelper_1['ImageHelper'][_0xf8f577(0x189)](0x200);_0x9b6f6[_0xf8f577(0x13b)][0x0][_0xf8f577(0x14b)]=_0x3c79a2,await _0x3a3245[_0xf8f577(0x162)](_0x44b211),await fs['writeFileSync'](_0x35b1ee,JSON['stringify'](_0x9b6f6));}}static['updateTeamId'](_0x159581,_0x14d31e){const _0x6e62c4=_0x1cfbad;_0x159581[_0x6e62c4(0x164)](_0x6e62c4(0x173),_0x14d31e),useExportOptionsXML=useExportOptionsXML[_0x6e62c4(0x163)]('YOURTEAMID',_0x14d31e);}static[_0x1cfbad(0x14c)](){const _0x10c384=_0x1cfbad;!fs[_0x10c384(0x183)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x10c384(0x14a)](resource_1[_0x10c384(0x168)],{'recursive':!![]}),fs[_0x10c384(0x15e)]((0x0,path_1[_0x10c384(0x167)])(resource_1[_0x10c384(0x168)],_0x10c384(0x17a)),useExportOptionsXML);}static[_0x1cfbad(0x17b)](_0xd084be,_0x3c25cc){const _0x1a474e=_0x1cfbad;var _0x52b091;_0xd084be[_0x1a474e(0x15b)](_0x3c25cc['name']),_0xd084be[_0x1a474e(0x164)](_0x1a474e(0x19b),'\x22'+_0x3c25cc['id']+'\x22'),this[_0x1a474e(0x161)]((_0x52b091=_0x3c25cc[_0x1a474e(0x181)])!==null&&_0x52b091!==void 0x0?_0x52b091:[]),this[_0x1a474e(0x14f)](_0x3c25cc);}static[_0x1cfbad(0x188)](_0x26a09d,_0x8d2d3f){const _0x2ab524=_0x1cfbad;_0x26a09d[_0x2ab524(0x164)](_0x2ab524(0x14e),_0x8d2d3f);}static[_0x1cfbad(0x161)](_0x358550){const _0x2f0e46=_0x1cfbad;let _0x277aa0=(0x0,path_1[_0x2f0e46(0x167)])(resource_1[_0x2f0e46(0x172)],_0x2f0e46(0x157)),_0x2afdc0='';for(let _0x3e9fcb=0x0;_0x3e9fcb<_0x358550[_0x2f0e46(0x141)];_0x3e9fcb++){_0x2afdc0+=_0x2f0e46(0x196)+_0x358550[_0x3e9fcb][_0x2f0e46(0x148)]+_0x2f0e46(0x149);}const _0x5e8b3c=infoPlistXML[_0x2f0e46(0x163)](_0x2f0e46(0x15f),_0x2afdc0);fs['writeFileSync'](_0x277aa0,_0x5e8b3c);}static[_0x1cfbad(0x14f)](_0x5710a6){const _0x3770f4=_0x1cfbad,_0x12bde4=(0x0,path_1[_0x3770f4(0x167)])(resource_1[_0x3770f4(0x172)],_0x3770f4(0x199));let _0x3b7ec6=manifestSwiftTemplate_1[_0x3770f4(0x19f)];_0x3b7ec6=_0x3b7ec6['replace'](_0x3770f4(0x146),_0x5710a6['start_url']),_0x3b7ec6=_0x3b7ec6[_0x3770f4(0x163)](_0x3770f4(0x14d),_0x5710a6[_0x3770f4(0x165)]),_0x3b7ec6=_0x3b7ec6[_0x3770f4(0x163)]('AppName',_0x5710a6[_0x3770f4(0x151)]),_0x3b7ec6=_0x3b7ec6[_0x3770f4(0x163)](_0x3770f4(0x16c),_0x5710a6[_0x3770f4(0x171)]),_0x3b7ec6=_0x3b7ec6[_0x3770f4(0x163)](_0x3770f4(0x184),_0x5710a6['id']),_0x3b7ec6=_0x3b7ec6[_0x3770f4(0x163)]('.minimal',_0x5710a6['display']==_0x3770f4(0x194)?_0x3770f4(0x174):_0x3770f4(0x192));if(_0x5710a6[_0x3770f4(0x181)]){let _0x1a1e7c='';for(let _0x119b33=0x0;_0x119b33<_0x5710a6[_0x3770f4(0x181)][_0x3770f4(0x141)];_0x119b33++){_0x1a1e7c+=_0x3770f4(0x18a)+_0x5710a6[_0x3770f4(0x181)][_0x119b33][_0x3770f4(0x148)]+_0x3770f4(0x18c)+_0x5710a6[_0x3770f4(0x181)][_0x119b33][_0x3770f4(0x145)]+_0x3770f4(0x190);}_0x3b7ec6=_0x3b7ec6[_0x3770f4(0x163)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x1a1e7c);}_0x3b7ec6=_0x3b7ec6[_0x3770f4(0x163)](_0x3770f4(0x175),_0x5710a6['mainScene'][_0x3770f4(0x179)][_0x3770f4(0x160)]),_0x3b7ec6=_0x3b7ec6[_0x3770f4(0x163)](_0x3770f4(0x147),_0x5710a6['mainScene'][_0x3770f4(0x179)][_0x3770f4(0x159)]),_0x3b7ec6=_0x3b7ec6['replace'](_0x3770f4(0x19c),'\x22'+_0x5710a6[_0x3770f4(0x144)][_0x3770f4(0x15c)]+'\x22'),fs['writeFileSync'](_0x12bde4,_0x3b7ec6,_0x3770f4(0x182));}}exports['default']=XcodeProject;
@@ -1 +1 @@
1
- 'use strict';function _0x572f(){const _0x3294dc=['\x20--apiKey\x20','--\x20visionOS','default','authApi','mkdirSync','\x20list','simctl','deviceId','2570fGKXSJ','./xcodebuild','authAccount','18972744rlvgtu','2878544ukCRJC','../resource','Booted','launch','line','existsSync','/web-spatial.xcodeproj','installing\x20app','path','listDevices','boot','join','\x20shutdown\x20booted','\x20--bundle-version\x20','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','trim','execSync','\x20--verbose','1146798cIJEwW','\x20--upload-package\x20','Shutdown','511IggxAg','altool','build\x20success','PROJECT_DIRECTORY','push','length','shutdown','appleId','install\x20success','5WJxcIF','24BgcTHq','split','list','verbose','\x20simctl','version','9wJEyvx','59582Wyibsa','uploadApp','XcodebuildCMD','\x20install\x20\x22','--\x20','runWithSimulator','Build/Products/Debug-xrsimulator/','toString','state','590972oXxqBo','13057mtXrkC','Apple\x20Vision\x20Pro','log','validate','PROJECT_BUILD_DIRECTORY','20538RMkjwc','child_process','\x20-p\x20','\x20--apiIssuer\x20','defineProperty','includes','launch\x20app','install','\x20launch\x20\x22','xcrun','\x20-u\x20','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','\x20--apple-id\x20','no\x20visionOS\x20simulator\x20found','start\x20building','visionos','\x22\x20\x22','platform','.app'];_0x572f=function(){return _0x3294dc;};return _0x572f();}const _0x45cf3c=_0xdf8a;(function(_0x1eab0b,_0x59244c){const _0x3b0554=_0xdf8a,_0x2d9f99=_0x1eab0b();while(!![]){try{const _0x446abf=parseInt(_0x3b0554(0x189))/0x1*(-parseInt(_0x3b0554(0x182))/0x2)+parseInt(_0x3b0554(0x175))/0x3+-parseInt(_0x3b0554(0x192))/0x4*(parseInt(_0x3b0554(0x181))/0x5)+parseInt(_0x3b0554(0x144))/0x6*(parseInt(_0x3b0554(0x178))/0x7)+-parseInt(_0x3b0554(0x163))/0x8*(parseInt(_0x3b0554(0x188))/0x9)+-parseInt(_0x3b0554(0x15f))/0xa*(parseInt(_0x3b0554(0x193))/0xb)+parseInt(_0x3b0554(0x162))/0xc;if(_0x446abf===_0x59244c)break;else _0x2d9f99['push'](_0x2d9f99['shift']());}catch(_0x38078f){_0x2d9f99['push'](_0x2d9f99['shift']());}}}(_0x572f,0xa7623));Object[_0x45cf3c(0x148)](exports,'__esModule',{'value':!![]});function _0xdf8a(_0x48af42,_0x5b9336){const _0x572f8a=_0x572f();return _0xdf8a=function(_0xdf8a35,_0x16dc58){_0xdf8a35=_0xdf8a35-0x142;let _0x1b6eb4=_0x572f8a[_0xdf8a35];return _0x1b6eb4;},_0xdf8a(_0x48af42,_0x5b9336);}const child_process_1=require(_0x45cf3c(0x145)),resource_1=require(_0x45cf3c(0x164)),path_1=require(_0x45cf3c(0x16b)),fs=require('fs'),xcodebuild_1=require(_0x45cf3c(0x160));class Xcrun{static async[_0x45cf3c(0x142)](_0x3b4092,_0x317fc0,_0x63325b,_0xb7f3d0){const _0x450f48=_0x45cf3c,_0x4deac0=new XcrunCMD()['altool']();_0x4deac0[_0x450f48(0x142)](_0x3b4092);_0xb7f3d0?_0x4deac0['authAccount'](_0x317fc0,_0x63325b):_0x4deac0['authApi'](_0x317fc0,_0x63325b);_0x4deac0[_0x450f48(0x155)](_0x450f48(0x153));const _0x2c5b76=(0x0,child_process_1['execSync'])(_0x4deac0[_0x450f48(0x167)]);return _0x2c5b76[_0x450f48(0x190)]();}static async['uploadPackage'](_0x427447,_0x265bc8,_0x3b8531,_0x92631d,_0x469f23){const _0x267df3=_0x45cf3c,_0x294671=new XcrunCMD()[_0x267df3(0x179)]();_0x294671['uploadPackage'](_0x427447);_0x469f23?_0x294671[_0x267df3(0x161)](_0x265bc8,_0x3b8531):_0x294671[_0x267df3(0x15a)](_0x265bc8,_0x3b8531);_0x294671['platform'](_0x267df3(0x153)),_0x294671[_0x267df3(0x17f)](_0x92631d);const _0xcb7c8a=(0x0,child_process_1[_0x267df3(0x173)])(_0x294671[_0x267df3(0x167)]);return _0xcb7c8a[_0x267df3(0x190)]();}static async[_0x45cf3c(0x18a)](_0xd361ec,_0x4112d5,_0x9f4138,_0x325c80){const _0x34587d=_0x45cf3c,_0x592fd2=new XcrunCMD()[_0x34587d(0x179)]();_0x592fd2['uploadApp'](_0xd361ec);_0x325c80?_0x592fd2['authAccount'](_0x4112d5,_0x9f4138):_0x592fd2[_0x34587d(0x15a)](_0x4112d5,_0x9f4138);_0x592fd2['platform']('visionos');const _0x4811df=(0x0,child_process_1['execSync'])(_0x592fd2[_0x34587d(0x167)]);return _0x4811df[_0x34587d(0x190)]();}static async[_0x45cf3c(0x18e)](_0x2cecc1){const _0x3f43c0=_0x45cf3c;let _0x4642ac=new XcrunCMD()[_0x3f43c0(0x15d)]();_0x4642ac[_0x3f43c0(0x16c)](_0x3f43c0(0x194));const _0x305ec2=(0x0,child_process_1[_0x3f43c0(0x173)])(_0x4642ac[_0x3f43c0(0x167)]),_0x61a38a=this['parseListDevices'](_0x305ec2[_0x3f43c0(0x190)]());if(_0x61a38a[_0x3f43c0(0x17d)]===0x0)throw new Error(_0x3f43c0(0x151));let _0x17c2dd=_0x61a38a[0x0];for(let _0x50e0fe=0x0;_0x50e0fe<_0x61a38a[_0x3f43c0(0x17d)];_0x50e0fe++){if(_0x61a38a[_0x50e0fe][_0x3f43c0(0x191)]===_0x3f43c0(0x165)){_0x17c2dd=_0x61a38a[_0x50e0fe];break;}}console[_0x3f43c0(0x195)]('find\x20simulator:\x20'+_0x17c2dd[_0x3f43c0(0x15e)]);const _0x4b1580=resource_1[_0x3f43c0(0x17b)]+_0x3f43c0(0x169),_0x5eacfd=resource_1[_0x3f43c0(0x143)]+'/test';!fs[_0x3f43c0(0x168)](resource_1[_0x3f43c0(0x143)])&&fs[_0x3f43c0(0x15b)](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]});!fs['existsSync'](_0x5eacfd)&&fs[_0x3f43c0(0x15b)](_0x5eacfd,{'recursive':!![]});const _0x3ff8b4=new xcodebuild_1[(_0x3f43c0(0x18b))]()['project'](_0x4b1580)[_0x3f43c0(0x167)]+(_0x3f43c0(0x171)+_0x17c2dd[_0x3f43c0(0x15e)]+'\x27\x20-derivedDataPath\x20'+_0x5eacfd);console[_0x3f43c0(0x195)](_0x3f43c0(0x152)),(0x0,child_process_1[_0x3f43c0(0x173)])(_0x3ff8b4),console[_0x3f43c0(0x195)](_0x3f43c0(0x17a));_0x17c2dd[_0x3f43c0(0x191)]===_0x3f43c0(0x177)&&(_0x4642ac=new XcrunCMD()[_0x3f43c0(0x15d)](),_0x4642ac['boot'](_0x17c2dd[_0x3f43c0(0x15e)]),(0x0,child_process_1[_0x3f43c0(0x173)])(_0x4642ac[_0x3f43c0(0x167)]));(0x0,child_process_1[_0x3f43c0(0x173)])(_0x3f43c0(0x14f)),console[_0x3f43c0(0x195)](_0x3f43c0(0x16a));const _0x3fbfbb=(0x0,path_1[_0x3f43c0(0x16e)])(_0x5eacfd,_0x3f43c0(0x18f)+_0x2cecc1['name']+_0x3f43c0(0x156));_0x4642ac=new XcrunCMD()[_0x3f43c0(0x15d)](),_0x4642ac[_0x3f43c0(0x14b)](_0x17c2dd['deviceId'],_0x3fbfbb),(0x0,child_process_1['execSync'])(_0x4642ac['line']),console[_0x3f43c0(0x195)](_0x3f43c0(0x180)),console[_0x3f43c0(0x195)](_0x3f43c0(0x14a)),_0x4642ac=new XcrunCMD()[_0x3f43c0(0x15d)](),_0x4642ac[_0x3f43c0(0x166)](_0x17c2dd[_0x3f43c0(0x15e)],_0x2cecc1['id']),(0x0,child_process_1[_0x3f43c0(0x173)])(_0x4642ac[_0x3f43c0(0x167)]);}static['parseListDevices'](_0x6aa32c){const _0xf2b82=_0x45cf3c;let _0x5e7cbb=_0x6aa32c[_0xf2b82(0x183)]('\x0a'),_0x47601f=[],_0x4afe16=-0x1;for(let _0x451c36=0x0;_0x451c36<_0x5e7cbb['length'];_0x451c36++){if(_0x5e7cbb[_0x451c36][_0xf2b82(0x149)](_0xf2b82(0x158)))_0x4afe16=_0x451c36;else{if(_0x4afe16>0x0){if(_0x5e7cbb[_0x451c36][_0xf2b82(0x149)](_0xf2b82(0x18d)))break;if(_0x5e7cbb[_0x451c36][_0xf2b82(0x17d)]>0x0){const _0x2bbe6d=_0x5e7cbb[_0x451c36]['split']('('),_0x2e954c={'name':_0x2bbe6d[0x0][_0xf2b82(0x172)](),'deviceId':_0x2bbe6d[0x1][_0xf2b82(0x183)](')')[0x0]['trim'](),'state':_0x2bbe6d[0x2][_0xf2b82(0x183)](')')[0x0]['trim']()};_0x47601f[_0xf2b82(0x17c)](_0x2e954c);}}}}return _0x47601f;}}exports[_0x45cf3c(0x159)]=Xcrun;class XcrunCMD{constructor(){const _0x2606d7=_0x45cf3c;this[_0x2606d7(0x167)]=_0x2606d7(0x14d);}['altool'](){const _0x54b58c=_0x45cf3c;return this[_0x54b58c(0x167)]+='\x20altool',this;}[_0x45cf3c(0x15d)](){const _0x46ca18=_0x45cf3c;return this[_0x46ca18(0x167)]+=_0x46ca18(0x186),this;}[_0x45cf3c(0x184)](){const _0x390dfe=_0x45cf3c;return this[_0x390dfe(0x167)]+=_0x390dfe(0x15c),this;}[_0x45cf3c(0x16c)](_0xc44dad){const _0x450ccb=_0x45cf3c;return this[_0x450ccb(0x167)]+='\x20list\x20devices\x20\x22'+_0xc44dad+'\x22',this;}['validate'](_0x52a7c9){const _0x5d8955=_0x45cf3c;return this[_0x5d8955(0x167)]+='\x20--validate-app\x20-f\x20'+_0x52a7c9,this;}[_0x45cf3c(0x18a)](_0xd70dbc){const _0x570b9f=_0x45cf3c;return this[_0x570b9f(0x167)]+='\x20--upload-app\x20-f\x20'+_0xd70dbc,this;}['uploadPackage'](_0x2f2039){const _0x1a6d73=_0x45cf3c;return this[_0x1a6d73(0x167)]+=_0x1a6d73(0x176)+_0x2f2039,this;}[_0x45cf3c(0x161)](_0x3e6901,_0x487212){const _0x1f54b4=_0x45cf3c;return this[_0x1f54b4(0x167)]+=_0x1f54b4(0x14e)+_0x3e6901+_0x1f54b4(0x146)+_0x487212,this;}['authApi'](_0x24fc5e,_0x357acc){const _0x4855c5=_0x45cf3c;return this[_0x4855c5(0x167)]+=_0x4855c5(0x157)+_0x24fc5e+_0x4855c5(0x147)+_0x357acc,this;}[_0x45cf3c(0x17f)](_0xe96a7e){const _0xf70a8a=_0x45cf3c;return this[_0xf70a8a(0x167)]+=_0xf70a8a(0x150)+_0xe96a7e,this;}[_0x45cf3c(0x155)](_0x466ea7){const _0x1596f6=_0x45cf3c;return this[_0x1596f6(0x167)]+='\x20-t\x20'+_0x466ea7,this;}[_0x45cf3c(0x187)](_0x20a1d1){const _0x2a7ad9=_0x45cf3c;return this[_0x2a7ad9(0x167)]+=_0x2a7ad9(0x170)+_0x20a1d1,this;}[_0x45cf3c(0x185)](){const _0x75cb4e=_0x45cf3c;return this[_0x75cb4e(0x167)]+=_0x75cb4e(0x174),this;}[_0x45cf3c(0x17e)](){const _0x13a628=_0x45cf3c;return this[_0x13a628(0x167)]+=_0x13a628(0x16f),this;}[_0x45cf3c(0x16d)](_0xa2bbe9){return this['line']+='\x20boot\x20\x22'+_0xa2bbe9+'\x22',this;}['install'](_0x45b11d,_0x494244){const _0x14fb33=_0x45cf3c;return this[_0x14fb33(0x167)]+=_0x14fb33(0x18c)+_0x45b11d+_0x14fb33(0x154)+_0x494244+'\x22',this;}['launch'](_0x33177c,_0xdcd611){const _0x300cd1=_0x45cf3c;return this[_0x300cd1(0x167)]+=_0x300cd1(0x14c)+_0x33177c+_0x300cd1(0x154)+_0xdcd611+'\x22',this;}}
1
+ 'use strict';const _0x438591=_0x36bb;(function(_0x187238,_0x827bf7){const _0x4fd759=_0x36bb,_0x3679f2=_0x187238();while(!![]){try{const _0xab7a14=-parseInt(_0x4fd759(0x1fa))/0x1*(-parseInt(_0x4fd759(0x1fe))/0x2)+-parseInt(_0x4fd759(0x201))/0x3+-parseInt(_0x4fd759(0x1ee))/0x4+parseInt(_0x4fd759(0x1cc))/0x5+parseInt(_0x4fd759(0x1db))/0x6+-parseInt(_0x4fd759(0x1df))/0x7*(-parseInt(_0x4fd759(0x1eb))/0x8)+-parseInt(_0x4fd759(0x206))/0x9;if(_0xab7a14===_0x827bf7)break;else _0x3679f2['push'](_0x3679f2['shift']());}catch(_0x485119){_0x3679f2['push'](_0x3679f2['shift']());}}}(_0x3ec1,0xb980b));function _0x36bb(_0x400c89,_0x365184){const _0x3ec1ec=_0x3ec1();return _0x36bb=function(_0x36bb1b,_0x1b17be){_0x36bb1b=_0x36bb1b-0x1c9;let _0x49bf87=_0x3ec1ec[_0x36bb1b];return _0x49bf87;},_0x36bb(_0x400c89,_0x365184);}Object[_0x438591(0x214)](exports,'__esModule',{'value':!![]});const child_process_1=require('child_process'),resource_1=require('../resource'),path_1=require(_0x438591(0x217)),fs=require('fs'),xcodebuild_1=require(_0x438591(0x1ea));function _0x3ec1(){const _0x53175a=['install','install\x20success','build\x20success','XcodebuildCMD','\x20boot\x20\x22','\x20list\x20devices\x20\x22','mkdirSync','xcrun','Booted','visionos','1tGADSC','state','\x20-u\x20','validate','2531028pVSbMA','PROJECT_DIRECTORY','\x20shutdown\x20booted','1169541GrWqRA','\x20install\x20\x22','project','\x20launch\x20\x22','\x20--upload-package\x20','12170664cEKOVA','log','join','boot','\x20-t\x20','platform','\x20--apiIssuer\x20','verbose','includes','\x20--apiKey\x20','\x20simctl','\x27\x20-derivedDataPath\x20','Build/Products/Debug-xrsimulator/','/test','defineProperty','altool','Apple\x20Vision\x20Pro','path','PROJECT_BUILD_DIRECTORY','toString','simctl','\x22\x20\x22','.app','split','runWithSimulator','parseListDevices','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','5423985WEqoDB','uploadApp','existsSync','find\x20simulator:\x20','\x20--upload-app\x20-f\x20','--\x20','deviceId','listDevices','\x20list','default','launch\x20app','length','uploadPackage','/web-spatial.xcodeproj','authApi','1125060LCfZCY','\x20--verbose','\x20--apple-id\x20','authAccount','7QgxdOm','Shutdown','version','appleId','trim','installing\x20app','start\x20building','\x20--validate-app\x20-f\x20','execSync','--\x20visionOS','\x20-p\x20','./xcodebuild','4439848MOJNVx','no\x20visionOS\x20simulator\x20found','line','2363360ThIqru','launch'];_0x3ec1=function(){return _0x53175a;};return _0x3ec1();}class Xcrun{static async[_0x438591(0x1fd)](_0x4e7ea2,_0x33ef1b,_0x581661,_0xdb5b39){const _0x34bf03=_0x438591,_0x591e4f=new XcrunCMD()['altool']();_0x591e4f['validate'](_0x4e7ea2);_0xdb5b39?_0x591e4f[_0x34bf03(0x1de)](_0x33ef1b,_0x581661):_0x591e4f[_0x34bf03(0x1da)](_0x33ef1b,_0x581661);_0x591e4f['platform'](_0x34bf03(0x1f9));const _0x25d1f6=(0x0,child_process_1[_0x34bf03(0x1e7)])(_0x591e4f['line']);return _0x25d1f6['toString']();}static async[_0x438591(0x1d8)](_0x30c84c,_0x37e9f0,_0x251999,_0x617d6c,_0x2e0aef){const _0x30101c=_0x438591,_0x29665e=new XcrunCMD()[_0x30101c(0x215)]();_0x29665e[_0x30101c(0x1d8)](_0x30c84c);_0x2e0aef?_0x29665e[_0x30101c(0x1de)](_0x37e9f0,_0x251999):_0x29665e[_0x30101c(0x1da)](_0x37e9f0,_0x251999);_0x29665e[_0x30101c(0x20b)](_0x30101c(0x1f9)),_0x29665e[_0x30101c(0x1e2)](_0x617d6c);const _0x1a0e46=(0x0,child_process_1['execSync'])(_0x29665e[_0x30101c(0x1ed)]);return _0x1a0e46[_0x30101c(0x219)]();}static async[_0x438591(0x1cd)](_0x30e884,_0x16f21a,_0x326b1e,_0x2cf1d8){const _0x45bc72=_0x438591,_0x387f55=new XcrunCMD()[_0x45bc72(0x215)]();_0x387f55['uploadApp'](_0x30e884);_0x2cf1d8?_0x387f55[_0x45bc72(0x1de)](_0x16f21a,_0x326b1e):_0x387f55['authApi'](_0x16f21a,_0x326b1e);_0x387f55[_0x45bc72(0x20b)]('visionos');const _0x142170=(0x0,child_process_1['execSync'])(_0x387f55[_0x45bc72(0x1ed)]);return _0x142170[_0x45bc72(0x219)]();}static async[_0x438591(0x1c9)](_0x2754d9){const _0x1d30fb=_0x438591;let _0x2728ca=new XcrunCMD()['simctl']();_0x2728ca[_0x1d30fb(0x1d3)](_0x1d30fb(0x216));const _0x4e6e26=(0x0,child_process_1['execSync'])(_0x2728ca[_0x1d30fb(0x1ed)]),_0x1d18e0=this[_0x1d30fb(0x1ca)](_0x4e6e26[_0x1d30fb(0x219)]());if(_0x1d18e0[_0x1d30fb(0x1d7)]===0x0)throw new Error(_0x1d30fb(0x1ec));let _0x3710a2=_0x1d18e0[0x0];for(let _0x5eba86=0x0;_0x5eba86<_0x1d18e0['length'];_0x5eba86++){if(_0x1d18e0[_0x5eba86]['state']===_0x1d30fb(0x1f8)){_0x3710a2=_0x1d18e0[_0x5eba86];break;}}console[_0x1d30fb(0x207)](_0x1d30fb(0x1cf)+_0x3710a2[_0x1d30fb(0x1d2)]);const _0x5d6704=resource_1[_0x1d30fb(0x1ff)]+_0x1d30fb(0x1d9),_0x152990=resource_1[_0x1d30fb(0x218)]+_0x1d30fb(0x213);!fs[_0x1d30fb(0x1ce)](resource_1[_0x1d30fb(0x218)])&&fs[_0x1d30fb(0x1f6)](resource_1[_0x1d30fb(0x218)],{'recursive':!![]});!fs['existsSync'](_0x152990)&&fs[_0x1d30fb(0x1f6)](_0x152990,{'recursive':!![]});const _0x3aaa7e=new xcodebuild_1[(_0x1d30fb(0x1f3))]()[_0x1d30fb(0x203)](_0x5d6704)['line']+('\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id='+_0x3710a2['deviceId']+_0x1d30fb(0x211)+_0x152990);console[_0x1d30fb(0x207)](_0x1d30fb(0x1e5)),(0x0,child_process_1[_0x1d30fb(0x1e7)])(_0x3aaa7e),console[_0x1d30fb(0x207)](_0x1d30fb(0x1f2));_0x3710a2[_0x1d30fb(0x1fb)]===_0x1d30fb(0x1e0)&&(_0x2728ca=new XcrunCMD()[_0x1d30fb(0x21a)](),_0x2728ca[_0x1d30fb(0x209)](_0x3710a2['deviceId']),(0x0,child_process_1[_0x1d30fb(0x1e7)])(_0x2728ca['line']));(0x0,child_process_1[_0x1d30fb(0x1e7)])(_0x1d30fb(0x1cb)),console['log'](_0x1d30fb(0x1e4));const _0x554dd3=(0x0,path_1[_0x1d30fb(0x208)])(_0x152990,_0x1d30fb(0x212)+_0x2754d9['name']+_0x1d30fb(0x21c));_0x2728ca=new XcrunCMD()['simctl'](),_0x2728ca[_0x1d30fb(0x1f0)](_0x3710a2[_0x1d30fb(0x1d2)],_0x554dd3),(0x0,child_process_1[_0x1d30fb(0x1e7)])(_0x2728ca['line']),console[_0x1d30fb(0x207)](_0x1d30fb(0x1f1)),console[_0x1d30fb(0x207)](_0x1d30fb(0x1d6)),_0x2728ca=new XcrunCMD()[_0x1d30fb(0x21a)](),_0x2728ca[_0x1d30fb(0x1ef)](_0x3710a2[_0x1d30fb(0x1d2)],_0x2754d9['id']),(0x0,child_process_1[_0x1d30fb(0x1e7)])(_0x2728ca[_0x1d30fb(0x1ed)]);}static[_0x438591(0x1ca)](_0xd89ee){const _0x5e2e7d=_0x438591;let _0x22b255=_0xd89ee[_0x5e2e7d(0x21d)]('\x0a'),_0x351b87=[],_0x2aab3d=-0x1;for(let _0x11b676=0x0;_0x11b676<_0x22b255['length'];_0x11b676++){if(_0x22b255[_0x11b676][_0x5e2e7d(0x20e)](_0x5e2e7d(0x1e8)))_0x2aab3d=_0x11b676;else{if(_0x2aab3d>0x0){if(_0x22b255[_0x11b676]['includes'](_0x5e2e7d(0x1d1)))break;if(_0x22b255[_0x11b676][_0x5e2e7d(0x1d7)]>0x0){const _0xc94fcb=_0x22b255[_0x11b676]['split']('('),_0x3b43e8={'name':_0xc94fcb[0x0][_0x5e2e7d(0x1e3)](),'deviceId':_0xc94fcb[0x1][_0x5e2e7d(0x21d)](')')[0x0]['trim'](),'state':_0xc94fcb[0x2][_0x5e2e7d(0x21d)](')')[0x0]['trim']()};_0x351b87['push'](_0x3b43e8);}}}}return _0x351b87;}}exports[_0x438591(0x1d5)]=Xcrun;class XcrunCMD{constructor(){const _0x384d48=_0x438591;this[_0x384d48(0x1ed)]=_0x384d48(0x1f7);}[_0x438591(0x215)](){const _0x29d40a=_0x438591;return this[_0x29d40a(0x1ed)]+='\x20altool',this;}[_0x438591(0x21a)](){const _0x235a44=_0x438591;return this[_0x235a44(0x1ed)]+=_0x235a44(0x210),this;}['list'](){const _0x33d075=_0x438591;return this[_0x33d075(0x1ed)]+=_0x33d075(0x1d4),this;}['listDevices'](_0x1a60ec){const _0x45253e=_0x438591;return this[_0x45253e(0x1ed)]+=_0x45253e(0x1f5)+_0x1a60ec+'\x22',this;}['validate'](_0x5a64ca){const _0x4ab678=_0x438591;return this[_0x4ab678(0x1ed)]+=_0x4ab678(0x1e6)+_0x5a64ca,this;}[_0x438591(0x1cd)](_0x1b2f0f){const _0x4e42c9=_0x438591;return this['line']+=_0x4e42c9(0x1d0)+_0x1b2f0f,this;}[_0x438591(0x1d8)](_0x3d5f0e){const _0x29784b=_0x438591;return this[_0x29784b(0x1ed)]+=_0x29784b(0x205)+_0x3d5f0e,this;}[_0x438591(0x1de)](_0x47aa1b,_0x2cdc8d){const _0x3294ff=_0x438591;return this[_0x3294ff(0x1ed)]+=_0x3294ff(0x1fc)+_0x47aa1b+_0x3294ff(0x1e9)+_0x2cdc8d,this;}[_0x438591(0x1da)](_0x1e0a7d,_0x6014c9){const _0x1b6ea9=_0x438591;return this['line']+=_0x1b6ea9(0x20f)+_0x1e0a7d+_0x1b6ea9(0x20c)+_0x6014c9,this;}[_0x438591(0x1e2)](_0x455da3){const _0x178462=_0x438591;return this[_0x178462(0x1ed)]+=_0x178462(0x1dd)+_0x455da3,this;}[_0x438591(0x20b)](_0x3f92d6){const _0x3acb95=_0x438591;return this['line']+=_0x3acb95(0x20a)+_0x3f92d6,this;}[_0x438591(0x1e1)](_0x290538){const _0x41bd29=_0x438591;return this[_0x41bd29(0x1ed)]+='\x20--bundle-version\x20'+_0x290538,this;}[_0x438591(0x20d)](){const _0x4912ff=_0x438591;return this['line']+=_0x4912ff(0x1dc),this;}['shutdown'](){const _0x39a96e=_0x438591;return this[_0x39a96e(0x1ed)]+=_0x39a96e(0x200),this;}[_0x438591(0x209)](_0x465418){const _0x4ad1d4=_0x438591;return this[_0x4ad1d4(0x1ed)]+=_0x4ad1d4(0x1f4)+_0x465418+'\x22',this;}['install'](_0x2e98bd,_0x9c6dd8){const _0x2a363b=_0x438591;return this['line']+=_0x2a363b(0x202)+_0x2e98bd+_0x2a363b(0x21b)+_0x9c6dd8+'\x22',this;}[_0x438591(0x1ef)](_0xdbfd9b,_0x4f0deb){const _0x59f75a=_0x438591;return this[_0x59f75a(0x1ed)]+=_0x59f75a(0x204)+_0xdbfd9b+_0x59f75a(0x21b)+_0x4f0deb+'\x22',this;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webspatial/builder",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -12,6 +12,13 @@ import typealias RealityKit.Entity
12
12
 
13
13
  @Observable
14
14
  class SpatialWindowContainer: SpatialObject {
15
+ // save active plain windowContainer ids
16
+ static var activePlainWindowContainerIds: Set<String> = []
17
+ // get first active plain WindowContainerId
18
+ static var firstActivePlainWindowContainerId: String? {
19
+ return activePlainWindowContainerIds.first
20
+ }
21
+
15
22
  // Resources that will be destroyed when this window group is removed
16
23
  private var childResources = [String: SpatialObject]()
17
24
  public var childContainers = [String: SpatialWindowContainer]()
@@ -31,6 +38,10 @@ class SpatialWindowContainer: SpatialObject {
31
38
 
32
39
  init(_ name: String, _ data: WindowContainerData) {
33
40
  wgd = data
41
+ if data.windowStyle == "Plain" {
42
+ SpatialWindowContainer.activePlainWindowContainerIds.insert(data.windowContainerID)
43
+ }
44
+
34
45
  super.init(name)
35
46
  }
36
47
 
@@ -61,6 +72,9 @@ class SpatialWindowContainer: SpatialObject {
61
72
  var setLoadingWindowData = PassthroughSubject<LoadingWindowContainerData, Never>()
62
73
 
63
74
  override func onDestroy() {
75
+ // Note that destroy wont be called on immersive window container
76
+ // as there should only ever be one in existance
77
+
64
78
  childEntities.forEach { $0.value.destroy() }
65
79
  childEntities = [:]
66
80
 
@@ -82,6 +96,9 @@ class SpatialWindowContainer: SpatialObject {
82
96
 
83
97
  // Close the window group when this object is destroyed
84
98
  SpatialWindowContainer.getSpatialWindowContainer(id)!.closeWindowData.send(wgd)
99
+ if wgd.windowStyle == "Plain" {
100
+ SpatialWindowContainer.activePlainWindowContainerIds.remove(wgd.windowContainerID)
101
+ }
85
102
  }
86
103
 
87
104
  override func inspect() -> [String: Any] {
@@ -115,10 +132,10 @@ extension SpatialWindowContainer {
115
132
  }
116
133
 
117
134
  extension SpatialWindowContainer {
118
- private static let ImmersiveID = "Immersive"
135
+ static let ImmersiveID = "Immersive"
119
136
 
120
- static func getImmersiveWindowContainer() -> SpatialWindowContainer {
121
- return getSpatialWindowContainer(ImmersiveID)!
137
+ static func getImmersiveWindowContainer() -> SpatialWindowContainer? {
138
+ return getSpatialWindowContainer(ImmersiveID)
122
139
  }
123
140
 
124
141
  static func createImmersiveWindowContainer() -> SpatialWindowContainer {
@@ -30,6 +30,7 @@ struct PWAManager: Codable {
30
30
  if !(urlType == "http" || urlType == "https") {
31
31
  start_url = Bundle.main.url(forResource: start_url, withExtension: "", subdirectory: "")!.absoluteString
32
32
  scope = "file://" + Bundle.main.bundlePath + "/" + scope
33
+ scope = scope.replacingOccurrences(of: " ", with: "%20")
33
34
  isLocal = true
34
35
  }
35
36