@webspatial/builder 0.0.6 → 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 _0x3eec5b=_0x13e7;(function(_0x7b5ca3,_0x2c48d7){const _0x154fd6=_0x13e7,_0x2e6419=_0x7b5ca3();while(!![]){try{const _0x186d0a=-parseInt(_0x154fd6(0x1ab))/0x1*(-parseInt(_0x154fd6(0x191))/0x2)+-parseInt(_0x154fd6(0x1b4))/0x3*(parseInt(_0x154fd6(0x17c))/0x4)+parseInt(_0x154fd6(0x1b0))/0x5*(-parseInt(_0x154fd6(0x185))/0x6)+parseInt(_0x154fd6(0x195))/0x7+-parseInt(_0x154fd6(0x18b))/0x8+parseInt(_0x154fd6(0x18c))/0x9+-parseInt(_0x154fd6(0x19f))/0xa;if(_0x186d0a===_0x2c48d7)break;else _0x2e6419['push'](_0x2e6419['shift']());}catch(_0x186946){_0x2e6419['push'](_0x2e6419['shift']());}}}(_0x3803,0x2c728));function _0x13e7(_0x1e9f6c,_0x5554b9){const _0x38035d=_0x3803();return _0x13e7=function(_0x13e7a5,_0x534133){_0x13e7a5=_0x13e7a5-0x17c;let _0x259acb=_0x38035d[_0x13e7a5];return _0x259acb;},_0x13e7(_0x1e9f6c,_0x5554b9);}Object['defineProperty'](exports,_0x3eec5b(0x1a5),{'value':!![]}),exports['messages']=void 0x0;const colors_1=require(_0x3eec5b(0x19d));exports['messages']={'promptInstallJdk':_0x3eec5b(0x190),'promptJdkPath':'Path\x20to\x20your\x20existing\x20JDK\x2011:','messageDownloadJdk':_0x3eec5b(0x1aa),'messageDownloadJdkSrc':_0x3eec5b(0x1a1),'messageDecompressJdkSrc':'Decompressing\x20the\x20JDK\x2011\x20Sources...','messageDownloadJdkBin':_0x3eec5b(0x1b1),'messageDecompressJdkBin':_0x3eec5b(0x1ae),'promptInstallSdk':_0x3eec5b(0x1b2),'promptSdkPath':_0x3eec5b(0x1a3),'messageDownloadSdk':'Downloading\x20Android\x20SDK\x20to\x20','errorSdkTerms':_0x3eec5b(0x184),'promptSdkTerms':_0x3eec5b(0x17e)+(0x0,colors_1[_0x3eec5b(0x1ac)])(_0x3eec5b(0x1a9))+'?','messageDownloadAndroidSdk':_0x3eec5b(0x1b9),'messageDecompressAndroidSdk':'Decompressing\x20the\x20Android\x20SDK...','messageInstallingBuildTools':'Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20'+'license\x20agreement.','messageGeneratingAndroidProject':'Generating\x20Android\x20Project.','messageCheckSuccess':(_0x5ee577,_0x10ac23)=>{const _0x4cd08d=_0x3eec5b;return'\x20URL\x20'+(0x0,colors_1[_0x4cd08d(0x199)])(_0x5ee577)+'\x20'+(_0x10ac23?_0x4cd08d(0x196)+(0x0,colors_1[_0x4cd08d(0x199)])(_0x10ac23):'')+_0x4cd08d(0x183);},'errorMissingManifestParameter':_0x3eec5b(0x1b8)+((0x0,colors_1[_0x3eec5b(0x199)])(_0x3eec5b(0x198))+_0x3eec5b(0x1ad)+(0x0,colors_1[_0x3eec5b(0x199)])(_0x3eec5b(0x194))),'messageInitializingWebManifest':_0x1285ed=>{const _0x33ed0f=_0x3eec5b;return'Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0x33ed0f(0x199)])(_0x1285ed);},'messageInitializingLocalManifest':_0x124a4f=>{const _0x1389f7=_0x3eec5b;return _0x1389f7(0x18f)+(0x0,colors_1[_0x1389f7(0x199)])(_0x124a4f);},'messageInvalidIcon':_0x1462be=>{const _0x28853e=_0x3eec5b;return _0x28853e(0x18e)+(0x0,colors_1[_0x28853e(0x199)])(_0x1462be);},'errorStartUrlNotReachable':_0x51f4df=>'URL\x20'+_0x51f4df+'\x20can\x20not\x20be\x20accessible.'+_0x3eec5b(0x1b3),'warnFamilyPolicy':(0x0,colors_1[_0x3eec5b(0x1a8)])((0x0,colors_1[_0x3eec5b(0x1b6)])(_0x3eec5b(0x1a7)))+_0x3eec5b(0x1af)+_0x3eec5b(0x18a)+_0x3eec5b(0x180)+_0x3eec5b(0x182)+(0x0,colors_1[_0x3eec5b(0x199)])(_0x3eec5b(0x18d)),'promptIconUrl':_0x3eec5b(0x19b),'errorInvalidUrl':_0x3099cd=>{return'Invalid\x20URL:\x20'+_0x3099cd;},'errorUrlMustBeImage':_0x25150a=>{const _0x50f378=_0x3eec5b;return _0x50f378(0x187)+_0x25150a+'.';},'promptVersionCode':'Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0x3eec5b(0x1ac)])(_0x3eec5b(0x1a2)+(0x0,colors_1[_0x3eec5b(0x19c)])(_0x3eec5b(0x197))),'messageProjectGeneratedSuccess':_0x3eec5b(0x181),'messageSigningKeyCreation':(0x0,colors_1[_0x3eec5b(0x1ac)])(_0x3eec5b(0x1a4)),'messageSigningKeyNotFound':_0x34423d=>{const _0x424153=_0x3eec5b;return _0x424153(0x17d)+_0x34423d+_0x424153(0x1ba);},'promptCreateKey':_0x3eec5b(0x17f),'promptKeyFullName':'First\x20and\x20Last\x20names\x20(eg:\x20PICO):','promptKeyOrganizationalUnit':_0x3eec5b(0x1a0),'promptKeyOrganization':_0x3eec5b(0x1b5),'promptKeyCountry':_0x3eec5b(0x186),'promptKeystorePassword':_0x3eec5b(0x189),'promptKeyPassword':'Password\x20for\x20the\x20Key:','messageBuildingApp':'\x0aBuilding\x20the\x20Android\x20App...','messageEnterPasswords':(_0x5e11ba,_0x12b208)=>{const _0x2cc0f4=_0x3eec5b;return _0x2cc0f4(0x19a)+(0x0,colors_1[_0x2cc0f4(0x199)])(_0x5e11ba)+'\x20and\x20alias\x20'+(0x0,colors_1[_0x2cc0f4(0x199)])(_0x12b208)+'.\x0a';},'errorMinLength':(_0x63986d,_0x5b0e3d)=>{const _0x411bcd=_0x3eec5b;return _0x411bcd(0x188)+_0x63986d+_0x411bcd(0x1b7)+_0x5b0e3d+'.';},'errorMaxLength':(_0x320364,_0x317cc0)=>{const _0x299f4e=_0x3eec5b;return _0x299f4e(0x192)+_0x320364+_0x299f4e(0x1b7)+_0x317cc0+'.';},'errorInvalidInteger':_0x9e55e9=>{const _0x25217e=_0x3eec5b;return _0x25217e(0x19e)+_0x9e55e9;},'messageApkSuccess':_0x3e2fd1=>{const _0x56210b=_0x3eec5b;return _0x56210b(0x1a6)+(0x0,colors_1[_0x56210b(0x199)])(_0x3e2fd1);},'missingUrlToCheck':_0x3eec5b(0x1b8)+(''+(0x0,colors_1[_0x3eec5b(0x199)])(_0x3eec5b(0x193)))};function _0x3803(){const _0x33947c=['(5/5)','--manifest-url','cyan','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','Icon\x20URL:','green','colors','Invalid\x20integer\x20provided:\x20','325700jVEPHD','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','Downloading\x20the\x20JDK\x2011\x20Sources...','\x0aSigning\x20key\x20information\x20','Path\x20to\x20your\x20existing\x20Android\x20SDK:','\x0aSigning\x20key\x20creation','__esModule','\x09-\x20Generated\x20Android\x20APK\x20at\x20','WARNING:\x20','bold','https://developer.android.com/studio/terms.html','Downloading\x20JDK\x2011\x20to\x20','8668cYdLED','underline','\x20or\x20','Decompressing\x20the\x20JDK\x2011\x20Binaries...','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','90yQNmKp','Downloading\x20the\x20JDK\x2011\x20Binaries...','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)','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','6vjSTef','Organization\x20(eg:\x20Company\x20Name):','yellow','\x20but\x20input\x20is\x20','Missing\x20required\x20parameter\x20','Downloading\x20the\x20Android\x20SDK...','\x22.\x0a','440468dZRSDG','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','Do\x20you\x20want\x20to\x20create\x20one\x20now?','\x20Check\x20out\x20the\x20Play\x20for','\x0aProject\x20generated\x20successfully.','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','1104GGqavn','Country\x20(2\x20letter\x20code):','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','Minimum\x20length\x20is\x20','Password\x20for\x20the\x20Key\x20Store:','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','973072hJZBbD','1561653iLOmFH','https://play.google.com/console/about/families/','Invalid\x20icon\x20path:\x20','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\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)','46lOlxSu','Maximum\x20length\x20is\x20','--url','--manifest','1308475dxaqgN','redirected\x20to\x20'];_0x3803=function(){return _0x33947c;};return _0x3803();}
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 _0x2b57c8=_0x498d;(function(_0x5c22e5,_0x40c5cd){const _0x560be2=_0x498d,_0x23456d=_0x5c22e5();while(!![]){try{const _0x3e99b5=parseInt(_0x560be2(0x193))/0x1*(parseInt(_0x560be2(0x185))/0x2)+parseInt(_0x560be2(0x18d))/0x3*(parseInt(_0x560be2(0x182))/0x4)+parseInt(_0x560be2(0x189))/0x5*(parseInt(_0x560be2(0x18e))/0x6)+parseInt(_0x560be2(0x192))/0x7*(-parseInt(_0x560be2(0x191))/0x8)+-parseInt(_0x560be2(0x18a))/0x9+parseInt(_0x560be2(0x186))/0xa*(parseInt(_0x560be2(0x18f))/0xb)+-parseInt(_0x560be2(0x184))/0xc;if(_0x3e99b5===_0x40c5cd)break;else _0x23456d['push'](_0x23456d['shift']());}catch(_0x3c00a8){_0x23456d['push'](_0x23456d['shift']());}}}(_0x1fac,0x9fdd6));function _0x498d(_0x569bea,_0x361b11){const _0x1facec=_0x1fac();return _0x498d=function(_0x498d8e,_0x53ff59){_0x498d8e=_0x498d8e-0x182;let _0x23a8d1=_0x1facec[_0x498d8e];return _0x23a8d1;},_0x498d(_0x569bea,_0x361b11);}Object[_0x2b57c8(0x190)](exports,'__esModule',{'value':!![]}),exports[_0x2b57c8(0x187)]=parseRouter;function _0x1fac(){const _0x3518e4=['defineProperty','8zhFLln','4954838DPBBtC','568279brtZKD','2940VbWCHG','split','3499500QpcAwD','2ByrUsp','50mbDnOm','parseRouter','join','336845RFscwf','5292243BnUpwU','pop','indexOf','5241zFtfSw','12GvvAUF','561506KxSVkj'];_0x1fac=function(){return _0x3518e4;};return _0x1fac();}function parseRouter(_0x50ba1a){const _0x1be40a=_0x2b57c8;let _0x7f059c=_0x50ba1a[_0x1be40a(0x183)]('/');_0x7f059c[_0x1be40a(0x18b)]();let _0x5cfa28=_0x7f059c[_0x1be40a(0x188)]();while(_0x5cfa28[_0x1be40a(0x18c)](',')>=0x0){_0x5cfa28=_0x5cfa28['replace'](',','/');}return _0x5cfa28;}
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 _0x4188fb=_0x1411;function _0x5845(){const _0x1326c9=['default','3838912LvNxOu','modify','existsSync','mkdirSync','PROJECT_EXPORT_DIRECTORY','/web-spatial.xcodeproj/project.pbxproj','join','827245FtcRLL','write\x20project.pbxproj:\x20ok','63nUGZey','51590KWdIJi','3339DpQcWG','uploadApp','./xcodeproject','3900600gLgZuf','2GLqGcp','../resource','parseProject','./xcrun','1238508PxPZGz','log','export','defineProperty','PROJECT_DIRECTORY','364443HCJhji','.ipa','XcodeManager','492774PCPAOm','runWithSimulator'];_0x5845=function(){return _0x1326c9;};return _0x5845();}(function(_0x5a8f3f,_0x5715c6){const _0x143c3c=_0x1411,_0x1eaa45=_0x5a8f3f();while(!![]){try{const _0x33a028=-parseInt(_0x143c3c(0x198))/0x1+-parseInt(_0x143c3c(0x182))/0x2*(-parseInt(_0x143c3c(0x18b))/0x3)+parseInt(_0x143c3c(0x186))/0x4+-parseInt(_0x143c3c(0x181))/0x5+parseInt(_0x143c3c(0x18e))/0x6*(-parseInt(_0x143c3c(0x17c))/0x7)+parseInt(_0x143c3c(0x191))/0x8+parseInt(_0x143c3c(0x17e))/0x9*(parseInt(_0x143c3c(0x17d))/0xa);if(_0x33a028===_0x5715c6)break;else _0x1eaa45['push'](_0x1eaa45['shift']());}catch(_0x262688){_0x1eaa45['push'](_0x1eaa45['shift']());}}}(_0x5845,0x74ce3));Object[_0x4188fb(0x189)](exports,'__esModule',{'value':!![]}),exports['XcodeManager']=void 0x0;const fs=require('fs'),resource_1=require(_0x4188fb(0x183)),xcodeproject_1=require(_0x4188fb(0x180)),xcodebuild_1=require('./xcodebuild'),xcrun_1=require(_0x4188fb(0x185)),path_1=require('path');function _0x1411(_0x4ae557,_0x59326c){const _0x5845d1=_0x5845();return _0x1411=function(_0x1411cb,_0x2215a6){_0x1411cb=_0x1411cb-0x17c;let _0x3150e4=_0x5845d1[_0x1411cb];return _0x3150e4;},_0x1411(_0x4ae557,_0x59326c);}class XcodeManager{static async[_0x4188fb(0x184)](_0x2b383d,_0x26b5f4=![]){const _0x54158a=_0x4188fb,_0xd64ca3=resource_1[_0x54158a(0x18a)]+_0x54158a(0x196);await xcodeproject_1[_0x54158a(0x190)][_0x54158a(0x192)](_0xd64ca3,_0x2b383d),console[_0x54158a(0x187)](_0x54158a(0x199));!fs[_0x54158a(0x193)](resource_1[_0x54158a(0x195)])&&fs[_0x54158a(0x194)](resource_1[_0x54158a(0x195)],{'recursive':!![]});if(!_0x26b5f4)await xcodebuild_1['default']['archive'](_0x2b383d[_0x54158a(0x188)]);}static async['upload'](_0xa35383,_0x42e67e){const _0x27ec80=_0x4188fb;if(_0xa35383['u']&&_0xa35383['p'])xcrun_1['default'][_0x27ec80(0x17f)]((0x0,path_1[_0x27ec80(0x197)])(resource_1[_0x27ec80(0x195)],_0x42e67e['name']+_0x27ec80(0x18c)),_0xa35383['u'],_0xa35383['p'],!![]);else _0xa35383['k']&&_0xa35383['i']&&xcrun_1[_0x27ec80(0x190)][_0x27ec80(0x17f)]((0x0,path_1[_0x27ec80(0x197)])(resource_1[_0x27ec80(0x195)],_0x42e67e['name']+_0x27ec80(0x18c)),_0xa35383['k'],_0xa35383['i'],![]);}static async[_0x4188fb(0x18f)](_0x490546){await xcrun_1['default']['runWithSimulator'](_0x490546);}}exports[_0x4188fb(0x18d)]=XcodeManager;
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 _0x2cb2(_0x496dfb,_0x3fbed5){var _0x2bbec9=_0x2bbe();return _0x2cb2=function(_0x2cb266,_0x31ef4d){_0x2cb266=_0x2cb266-0x176;var _0x4e8722=_0x2bbec9[_0x2cb266];return _0x4e8722;},_0x2cb2(_0x496dfb,_0x3fbed5);}var _0x4a6816=_0x2cb2;function _0x2bbe(){var _0x5036e0=['313926DSDBHh','152314wnXncA','111XbWisA','4aPsbLW','24tWeGya','manifestSwiftTemplate','187ukmPpK','4817340PuPtIE','202869XinUeU','2233595hcFKIh','541968PIffJY','45zelXLL','\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','__esModule','41332FiNXMd'];_0x2bbe=function(){return _0x5036e0;};return _0x2bbe();}(function(_0x3720cb,_0x2a9515){var _0xe3b36a=_0x2cb2,_0x4ebfba=_0x3720cb();while(!![]){try{var _0x445ad9=-parseInt(_0xe3b36a(0x182))/0x1*(parseInt(_0xe3b36a(0x184))/0x2)+parseInt(_0xe3b36a(0x183))/0x3*(-parseInt(_0xe3b36a(0x180))/0x4)+parseInt(_0xe3b36a(0x17d))/0x5*(-parseInt(_0xe3b36a(0x181))/0x6)+parseInt(_0xe3b36a(0x17b))/0x7+-parseInt(_0xe3b36a(0x176))/0x8*(parseInt(_0xe3b36a(0x17a))/0x9)+parseInt(_0xe3b36a(0x179))/0xa+parseInt(_0xe3b36a(0x178))/0xb*(parseInt(_0xe3b36a(0x17c))/0xc);if(_0x445ad9===_0x2a9515)break;else _0x4ebfba['push'](_0x4ebfba['shift']());}catch(_0x91fff0){_0x4ebfba['push'](_0x4ebfba['shift']());}}}(_0x2bbe,0x53c6a));Object['defineProperty'](exports,_0x4a6816(0x17f),{'value':!![]}),exports[_0x4a6816(0x177)]=void 0x0,exports[_0x4a6816(0x177)]=_0x4a6816(0x17e);
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 _0x33b3b1=_0x236a;(function(_0x2b936b,_0x2a863b){const _0x16a8c2=_0x236a,_0x13abf6=_0x2b936b();while(!![]){try{const _0x471ef7=-parseInt(_0x16a8c2(0x1c1))/0x1*(parseInt(_0x16a8c2(0x1c0))/0x2)+-parseInt(_0x16a8c2(0x1a7))/0x3+parseInt(_0x16a8c2(0x1bc))/0x4+parseInt(_0x16a8c2(0x1bf))/0x5*(parseInt(_0x16a8c2(0x1a0))/0x6)+parseInt(_0x16a8c2(0x1b8))/0x7*(-parseInt(_0x16a8c2(0x1b4))/0x8)+parseInt(_0x16a8c2(0x1b9))/0x9*(parseInt(_0x16a8c2(0x195))/0xa)+-parseInt(_0x16a8c2(0x1a8))/0xb*(-parseInt(_0x16a8c2(0x1b3))/0xc);if(_0x471ef7===_0x2a863b)break;else _0x13abf6['push'](_0x13abf6['shift']());}catch(_0x58e9e0){_0x13abf6['push'](_0x13abf6['shift']());}}}(_0x69f1,0xee600));Object[_0x33b3b1(0x1ad)](exports,_0x33b3b1(0x1a4),{'value':!![]}),exports['XcodebuildCMD']=void 0x0;function _0x69f1(){const _0x5130c6=['clean','scheme','pack.xcarchive','indexOf','PROJECT_DIRECTORY','6IxwIBd','archive','\x20-exportOptionsPlist\x20','../resource/file','__esModule','start\x20archive','log','2442072ieVIiV','22EJQCyo','EXPORT\x20SUCCEEDED','\x20archive','line','output','defineProperty','PROJECT_BUILD_DIRECTORY','\x20-project\x20','mkdirSync','child_process','start\x20export','16484448hhTqBP','8bbeJml','xcodebuild','\x20-allowProvisioningUpdates','project','6942488TMQrpj','502974AlTEJH','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','copyDir','215200cDvOxQ','PROJECT_EXPORT_DIRECTORY','\x20clean','538140tIKtoV','21422lwSPez','64qiamoe','cwd','/web-spatial.xcodeproj','\x20-exportPath\x20','\x20-list','ARCHIVE\x20SUCCEEDED','path','list','100eyWbfA','existsSync','toString','allowProvisioningUpdates','semver','../resource'];_0x69f1=function(){return _0x5130c6;};return _0x69f1();}const fs=require('fs'),path_1=require(_0x33b3b1(0x193)),resource_1=require(_0x33b3b1(0x19a)),semver_1=require(_0x33b3b1(0x199)),file_1=require(_0x33b3b1(0x1a3)),{execSync,exec}=require(_0x33b3b1(0x1b1));class Xcodebuild{static async[_0x33b3b1(0x1b7)](){try{await new Promise((_0x54e052,_0x16e42e)=>{const _0x1f857c=_0x236a,_0xc9b0ea=resource_1[_0x1f857c(0x19f)]+_0x1f857c(0x1c3),_0x2db7f3=execSync(new XcodebuildCMD()['project'](_0xc9b0ea)[_0x1f857c(0x194)]()[_0x1f857c(0x1ab)]);console[_0x1f857c(0x1a6)](_0x2db7f3['toString']()),_0x54e052(_0x2db7f3);});}catch(_0xb6181a){console['log'](_0xb6181a);}}static async[_0x33b3b1(0x194)](){const _0x3646e6=_0x33b3b1;try{await new Promise((_0x551432,_0x4cd93a)=>{const _0x589691=_0x236a,_0x59f1f5=resource_1[_0x589691(0x19f)]+_0x589691(0x1c3),_0x36c5c7=execSync(new XcodebuildCMD()[_0x589691(0x1b7)](_0x59f1f5)[_0x589691(0x194)]()['line']);console[_0x589691(0x1a6)](_0x36c5c7[_0x589691(0x197)]()),_0x551432(_0x36c5c7);});}catch(_0x2a7364){console[_0x3646e6(0x1a6)](_0x2a7364);}}static async[_0x33b3b1(0x1a1)](_0x3135c6){const _0x19a800=_0x33b3b1;try{return console[_0x19a800(0x1a6)](_0x19a800(0x1a5)),!fs['existsSync'](resource_1[_0x19a800(0x1bd)])&&fs['mkdirSync'](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]}),await new Promise((_0x2ae952,_0x1adecd)=>{const _0x15b488=_0x19a800,_0xdf9820=resource_1[_0x15b488(0x19f)]+_0x15b488(0x1c3),_0x339e43=execSync(new XcodebuildCMD()[_0x15b488(0x1b7)](_0xdf9820)[_0x15b488(0x19c)]('web-spatial')['archive']((0x0,path_1['join'])(resource_1['PROJECT_BUILD_DIRECTORY'],'./pack'))[_0x15b488(0x19b)]()[_0x15b488(0x1ab)]);let _0x40d394=_0x339e43[_0x15b488(0x197)]();if(_0x40d394[_0x15b488(0x19e)](_0x15b488(0x192))>0x0){console[_0x15b488(0x1a6)](_0x15b488(0x1ba)),console['log'](_0x15b488(0x1b2));const _0x1b659a=execSync(new XcodebuildCMD()[_0x15b488(0x1ac)]((0x0,path_1['join'])(resource_1[_0x15b488(0x1ae)],_0x15b488(0x19d)),resource_1[_0x15b488(0x1bd)],(0x0,path_1['join'])(resource_1[_0x15b488(0x1ae)],'ExportOptions.plist'))[_0x15b488(0x198)]()[_0x15b488(0x1ab)]);_0x40d394=_0x1b659a[_0x15b488(0x197)]();if(_0x40d394['indexOf'](_0x15b488(0x1a9))>0x0){if(_0x3135c6){const _0x164d50=(0x0,path_1['join'])(process[_0x15b488(0x1c2)](),_0x3135c6);!fs[_0x15b488(0x196)](_0x164d50)&&fs[_0x15b488(0x1b0)](_0x164d50,{'recursive':!![]}),(0x0,file_1[_0x15b488(0x1bb)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x164d50);}console['log']('-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------'),_0x2ae952(!![]);}(0x0,semver_1[_0x15b488(0x19b)])(resource_1[_0x15b488(0x1ae)]);}_0x2ae952(![]);});}catch(_0x58456b){console[_0x19a800(0x1a6)](_0x58456b);}}}function _0x236a(_0x59a526,_0x32b729){const _0x69f1ae=_0x69f1();return _0x236a=function(_0x236ac6,_0x3b0eb2){_0x236ac6=_0x236ac6-0x190;let _0x10b2d3=_0x69f1ae[_0x236ac6];return _0x10b2d3;},_0x236a(_0x59a526,_0x32b729);}exports['default']=Xcodebuild;class XcodebuildCMD{constructor(){const _0x55cb51=_0x33b3b1;this[_0x55cb51(0x1ab)]=_0x55cb51(0x1b5);}[_0x33b3b1(0x1b7)](_0x5380c0){const _0x422db4=_0x33b3b1;return this[_0x422db4(0x1ab)]+=_0x422db4(0x1af)+_0x5380c0,this;}[_0x33b3b1(0x194)](){const _0x2f00bb=_0x33b3b1;return this[_0x2f00bb(0x1ab)]+=_0x2f00bb(0x191),this;}['scheme'](_0x4c776d){const _0x5b8d60=_0x33b3b1;return this[_0x5b8d60(0x1ab)]+='\x20-scheme\x20'+_0x4c776d,this;}['archive'](_0x2ecfe1){const _0x148a70=_0x33b3b1;return this[_0x148a70(0x1ab)]+='\x20-archivePath\x20'+_0x2ecfe1+_0x148a70(0x1aa),this;}[_0x33b3b1(0x198)](){const _0x4a69ec=_0x33b3b1;return this[_0x4a69ec(0x1ab)]+=_0x4a69ec(0x1b6),this;}['destination'](_0x1faca3){const _0x42d4da=_0x33b3b1;return this[_0x42d4da(0x1ab)]+='\x20-destination\x20\x27'+_0x1faca3+'\x27',this;}[_0x33b3b1(0x1ac)](_0x164c4e,_0x7ce543,_0x3001c4){const _0xb6ea76=_0x33b3b1;return this[_0xb6ea76(0x1ab)]+='\x20-exportArchive\x20-archivePath\x20'+_0x164c4e+_0xb6ea76(0x190)+_0x7ce543+_0xb6ea76(0x1a2)+_0x3001c4,this;}[_0x33b3b1(0x19b)](){const _0x350f97=_0x33b3b1;return this[_0x350f97(0x1ab)]+=_0x350f97(0x1be),this;}}exports['XcodebuildCMD']=XcodebuildCMD;
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 _0x301c9c=_0x5cbe;(function(_0x25b590,_0x402a70){const _0x33bfee=_0x5cbe,_0x2ce9ad=_0x25b590();while(!![]){try{const _0x1c4ce0=-parseInt(_0x33bfee(0x8d))/0x1*(-parseInt(_0x33bfee(0x92))/0x2)+parseInt(_0x33bfee(0x8f))/0x3*(parseInt(_0x33bfee(0xc1))/0x4)+parseInt(_0x33bfee(0x99))/0x5+-parseInt(_0x33bfee(0xcb))/0x6+parseInt(_0x33bfee(0x77))/0x7*(parseInt(_0x33bfee(0x93))/0x8)+-parseInt(_0x33bfee(0x9c))/0x9*(-parseInt(_0x33bfee(0xab))/0xa)+-parseInt(_0x33bfee(0x8b))/0xb;if(_0x1c4ce0===_0x402a70)break;else _0x2ce9ad['push'](_0x2ce9ad['shift']());}catch(_0x5453c8){_0x2ce9ad['push'](_0x2ce9ad['shift']());}}}(_0x9797,0xadc17));function _0x5cbe(_0x19caaa,_0x99f2c1){const _0x97971=_0x9797();return _0x5cbe=function(_0x5cbe94,_0x3d1762){_0x5cbe94=_0x5cbe94-0x76;let _0x22db83=_0x97971[_0x5cbe94];return _0x22db83;},_0x5cbe(_0x19caaa,_0x99f2c1);}Object[_0x301c9c(0x7a)](exports,_0x301c9c(0xa1),{'value':!![]});const fs=require('fs'),resource_1=require('../resource'),path_1=require('path'),load_1=require('../resource/load'),imageHelper_1=require(_0x301c9c(0xb5)),manifestSwiftTemplate_1=require(_0x301c9c(0xca)),xcode=require(_0x301c9c(0xcd)),exportOptionsXML=_0x301c9c(0xcc),infoPlistXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a';function _0x9797(){const _0x5af934=['app-store-connect','\x22),','project','resizability','1453620HhTZUt','updateBuildProperty','pbxGroupByName','52389RKefHO','parseSync','SCOPE','push','debugging','__esModule','protocol','protocol_handlers','value','PROJECT_BUILD_DIRECTORY','./web-spatial/Info.plist','bindManifestInfo','.minimal','release-testing','updateTeamId','530XTmQXh','manifestInfo','teamId','buildType','modifySwift','writeAsync','updateDeeplink','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','utf-8','updateProductName','../resource/imageHelper','pbxXCBuildConfigurationSection','length','YOURTEAMID','./web-spatial/libs/webView/manifest.swift','hash','Contents.json','AppName','default','filename','icon.','mainScene','771652ETAnLh','BUILDTYPE','updateVersion','json','pbxXCConfigurationList','existsSync','ImageHelper','enterprise','start_url','./manifestSwiftTemplate','5053146kxHmmh','<?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>','xcode','PROJECT_DIRECTORY','</string>','pbxTargetByName','defaultSize','Description','<string>','DEVELOPMENT_TEAM','version','stringify','buildSettings','SceneWidth','name','createImg','objects','writeSync','height','1708jdlfTB','buildConfigurations','image/','defineProperty','replace','CURRENT_PROJECT_VERSION','description','updateExportOptions','PBXGroup','loadJsonFromDisk','DEEPLINK','1.0','bindIcon','url','SceneResizability','width','.standalone','fixProjectFunction','test','split','21745163gcmZEU','join','1noeahl','images','21vBezdT','writeFileSync','ExportOptions.plist','2790830sooFrf','6088dArGcW','MIDDLE_APPICON_DIRECTORY'];_0x9797=function(){return _0x5af934;};return _0x9797();}let useExportOptionsXML='';class XcodeProject{static async['modify'](_0x49c81b,_0x17fbc5){const _0x70a7f8=_0x301c9c;let _0x5ed193=xcode[_0x70a7f8(0x97)](_0x49c81b);this[_0x70a7f8(0x88)](_0x5ed193),_0x5ed193[_0x70a7f8(0x9d)]();let _0x568107=_0x17fbc5[_0x70a7f8(0xae)];const _0x23b1f3=[_0x70a7f8(0xa9),_0x70a7f8(0x95),_0x70a7f8(0xa0),_0x70a7f8(0xc8)];useExportOptionsXML=exportOptionsXML[_0x70a7f8(0x7b)](_0x70a7f8(0xc2),_0x23b1f3['includes'](_0x568107)?_0x568107:_0x70a7f8(0xa9));_0x17fbc5[_0x70a7f8(0xad)]&&this[_0x70a7f8(0xaa)](_0x5ed193,_0x17fbc5[_0x70a7f8(0xad)]);this[_0x70a7f8(0x7e)](),await this[_0x70a7f8(0x83)](_0x17fbc5['icon']),this['bindManifestInfo'](_0x5ed193,_0x17fbc5[_0x70a7f8(0xac)][_0x70a7f8(0xc4)]);_0x17fbc5['version']?this[_0x70a7f8(0xc3)](_0x5ed193,_0x17fbc5[_0x70a7f8(0xd5)]):this[_0x70a7f8(0xc3)](_0x5ed193,_0x70a7f8(0x82));try{fs[_0x70a7f8(0x90)](_0x49c81b,_0x5ed193[_0x70a7f8(0xdc)]());}catch(_0x244202){console['log'](_0x244202);}}static[_0x301c9c(0x88)](_0x16fd63){const _0x104344=_0x301c9c;_0x16fd63[_0x104344(0x9b)]=function(_0x2e8fb8){const _0x2ce5e3=_0x104344;var _0x47352b=this[_0x2ce5e3(0xba)]['project'][_0x2ce5e3(0xdb)][_0x2ce5e3(0x7f)],_0x2e00e5,_0x41bc3b;for(_0x2e00e5 in _0x47352b){if(!/_comment$/[_0x2ce5e3(0x89)](_0x2e00e5))continue;if(_0x47352b[_0x2e00e5]==_0x2e8fb8)return _0x41bc3b=_0x2e00e5[_0x2ce5e3(0x8a)](/_comment$/)[0x0],_0x47352b[_0x41bc3b];}return![];},_0x16fd63['updateBuildProperty']=function(_0x2e79ed,_0x33960a,_0x2e8988,_0x2db9be){const _0x3bdc69=_0x104344;let _0x42e6ed=[];const _0x245f25=/_comment$/;if(_0x2db9be){const _0x79a432=this[_0x3bdc69(0xd0)](_0x2db9be),_0x53c6a9=_0x79a432&&_0x79a432['buildConfigurationList'],_0x5b6db2=this[_0x3bdc69(0xc5)]();for(const _0x471971 in _0x5b6db2){if(!_0x245f25[_0x3bdc69(0x89)](_0x471971)&&_0x53c6a9===_0x471971){const _0x4f6483=_0x5b6db2[_0x471971][_0x3bdc69(0x78)];for(const _0x32ada3 of _0x4f6483){_0x42e6ed[_0x3bdc69(0x9f)](_0x32ada3[_0x3bdc69(0xa4)]);}break;}}}var _0x589236=this[_0x3bdc69(0xb6)]();for(var _0x12f49c in _0x589236){if(!_0x245f25['test'](_0x12f49c)){if(_0x2db9be&&!_0x42e6ed['includes'](_0x12f49c))continue;var _0xb13d67=_0x589236[_0x12f49c];(_0x2e8988&&_0xb13d67[_0x3bdc69(0xd9)]===_0x2e8988||!_0x2e8988)&&_0xb13d67['buildSettings'][_0x2e79ed]&&(_0xb13d67[_0x3bdc69(0xd7)][_0x2e79ed]=_0x33960a);}}};}static async['bindIcon'](_0x11d2cb){const _0x1fea07=_0x301c9c;if(_0x11d2cb){const _0x33bec4=(0x0,path_1[_0x1fea07(0x8c)])(resource_1[_0x1fea07(0xce)],resource_1['BACK_APPICON_DIRECTORY']),_0x1f3e11=(0x0,path_1[_0x1fea07(0x8c)])(_0x33bec4,_0x1fea07(0xbb)),_0x5bc8df=_0x1fea07(0xbf)+_0x11d2cb['getMIME']()[_0x1fea07(0x7b)](_0x1fea07(0x79),''),_0x807001=(0x0,path_1[_0x1fea07(0x8c)])(_0x33bec4,_0x5bc8df);let _0x59f58c=await(0x0,load_1[_0x1fea07(0x80)])(_0x1f3e11);_0x59f58c[_0x1fea07(0x8e)][0x0][_0x1fea07(0xbe)]=_0x5bc8df,await _0x11d2cb[_0x1fea07(0xb0)](_0x807001),await fs[_0x1fea07(0x90)](_0x1f3e11,JSON[_0x1fea07(0xd6)](_0x59f58c));const _0x2900e3=(0x0,path_1[_0x1fea07(0x8c)])(resource_1[_0x1fea07(0xce)],resource_1[_0x1fea07(0x94)]),_0x50aba6=(0x0,path_1[_0x1fea07(0x8c)])(_0x2900e3,'Contents.json'),_0x2e0aee='icon.png',_0x46c24b=(0x0,path_1[_0x1fea07(0x8c)])(_0x2900e3,_0x2e0aee);let _0x4f1386=await(0x0,load_1[_0x1fea07(0x80)])(_0x50aba6),_0xf2566a=imageHelper_1[_0x1fea07(0xc7)][_0x1fea07(0xda)](0x200);_0x4f1386['images'][0x0][_0x1fea07(0xbe)]=_0x2e0aee,await _0xf2566a[_0x1fea07(0xb0)](_0x46c24b),await fs[_0x1fea07(0x90)](_0x50aba6,JSON[_0x1fea07(0xd6)](_0x4f1386));}}static[_0x301c9c(0xaa)](_0x41eea8,_0x3a6dea){const _0x27b6c4=_0x301c9c;_0x41eea8['updateBuildProperty'](_0x27b6c4(0xd4),_0x3a6dea),useExportOptionsXML=useExportOptionsXML['replace'](_0x27b6c4(0xb8),_0x3a6dea);}static['updateExportOptions'](){const _0x43ee15=_0x301c9c;!fs[_0x43ee15(0xc6)](resource_1[_0x43ee15(0xa5)])&&fs['mkdirSync'](resource_1[_0x43ee15(0xa5)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1['join'])(resource_1[_0x43ee15(0xa5)],_0x43ee15(0x91)),useExportOptionsXML);}static[_0x301c9c(0xa7)](_0x14c53d,_0x29ea1d){const _0x12d225=_0x301c9c;var _0x3c5d60;_0x14c53d[_0x12d225(0xb4)](_0x29ea1d[_0x12d225(0xd9)]),_0x14c53d[_0x12d225(0x9a)]('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x29ea1d['id']+'\x22'),this[_0x12d225(0xb1)]((_0x3c5d60=_0x29ea1d[_0x12d225(0xa3)])!==null&&_0x3c5d60!==void 0x0?_0x3c5d60:[]),this[_0x12d225(0xaf)](_0x29ea1d);}static['updateVersion'](_0x32aa53,_0x400529){const _0x235eb2=_0x301c9c;_0x32aa53['updateBuildProperty'](_0x235eb2(0x7c),_0x400529);}static['updateDeeplink'](_0x4d46a8){const _0x41e26f=_0x301c9c;let _0xac7f31=(0x0,path_1[_0x41e26f(0x8c)])(resource_1[_0x41e26f(0xce)],_0x41e26f(0xa6)),_0x287514='';for(let _0xa6c5fa=0x0;_0xa6c5fa<_0x4d46a8[_0x41e26f(0xb7)];_0xa6c5fa++){_0x287514+=_0x41e26f(0xd3)+_0x4d46a8[_0xa6c5fa][_0x41e26f(0xa2)]+_0x41e26f(0xcf);}const _0x5b7c13=infoPlistXML[_0x41e26f(0x7b)](_0x41e26f(0x81),_0x287514);fs[_0x41e26f(0x90)](_0xac7f31,_0x5b7c13);}static[_0x301c9c(0xaf)](_0x4fad89){const _0x54a625=_0x301c9c,_0x49b33c=(0x0,path_1[_0x54a625(0x8c)])(resource_1[_0x54a625(0xce)],_0x54a625(0xb9));let _0x134652=manifestSwiftTemplate_1['manifestSwiftTemplate'];_0x134652=_0x134652[_0x54a625(0x7b)]('START_URL',_0x4fad89[_0x54a625(0xc9)]),_0x134652=_0x134652[_0x54a625(0x7b)](_0x54a625(0x9e),_0x4fad89['scope']),_0x134652=_0x134652['replace'](_0x54a625(0xbc),_0x4fad89[_0x54a625(0xd9)]),_0x134652=_0x134652[_0x54a625(0x7b)](_0x54a625(0xd2),_0x4fad89[_0x54a625(0x7d)]),_0x134652=_0x134652[_0x54a625(0x7b)]('AppID',_0x4fad89['id']),_0x134652=_0x134652['replace']('.minimal',_0x4fad89['display']=='minimal-ui'?_0x54a625(0xa8):_0x54a625(0x87));if(_0x4fad89[_0x54a625(0xa3)]){let _0x32d2d6='';for(let _0x3ab6cb=0x0;_0x3ab6cb<_0x4fad89[_0x54a625(0xa3)][_0x54a625(0xb7)];_0x3ab6cb++){_0x32d2d6+='PWAProtocol(protocolValue:\x20\x22'+_0x4fad89[_0x54a625(0xa3)][_0x3ab6cb]['protocol']+'\x22,\x20url:\x20\x22'+_0x4fad89[_0x54a625(0xa3)][_0x3ab6cb][_0x54a625(0x84)]+_0x54a625(0x96);}_0x134652=_0x134652[_0x54a625(0x7b)](_0x54a625(0xb2),_0x32d2d6);}_0x134652=_0x134652['replace'](_0x54a625(0xd8),_0x4fad89[_0x54a625(0xc0)][_0x54a625(0xd1)][_0x54a625(0x86)]),_0x134652=_0x134652[_0x54a625(0x7b)]('SceneHeight',_0x4fad89['mainScene'][_0x54a625(0xd1)][_0x54a625(0x76)]),_0x134652=_0x134652[_0x54a625(0x7b)](_0x54a625(0x85),'\x22'+_0x4fad89['mainScene'][_0x54a625(0x98)]+'\x22'),fs[_0x54a625(0x90)](_0x49b33c,_0x134652,_0x54a625(0xb3));}}exports[_0x301c9c(0xbd)]=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';const _0xd60c7b=_0x3b25;function _0x3b25(_0x3cfc6d,_0x18200f){const _0x435870=_0x4358();return _0x3b25=function(_0x3b25ab,_0x4a0625){_0x3b25ab=_0x3b25ab-0xfc;let _0x4c2939=_0x435870[_0x3b25ab];return _0x4c2939;},_0x3b25(_0x3cfc6d,_0x18200f);}(function(_0x2ec541,_0x1b3ed9){const _0x40fc8a=_0x3b25,_0x3260a1=_0x2ec541();while(!![]){try{const _0x5a7058=parseInt(_0x40fc8a(0x12a))/0x1*(-parseInt(_0x40fc8a(0x107))/0x2)+-parseInt(_0x40fc8a(0x125))/0x3+parseInt(_0x40fc8a(0x13b))/0x4+parseInt(_0x40fc8a(0x10f))/0x5*(-parseInt(_0x40fc8a(0x117))/0x6)+-parseInt(_0x40fc8a(0x111))/0x7*(parseInt(_0x40fc8a(0x122))/0x8)+-parseInt(_0x40fc8a(0x10c))/0x9*(-parseInt(_0x40fc8a(0x14a))/0xa)+parseInt(_0x40fc8a(0x141))/0xb;if(_0x5a7058===_0x1b3ed9)break;else _0x3260a1['push'](_0x3260a1['shift']());}catch(_0x599694){_0x3260a1['push'](_0x3260a1['shift']());}}}(_0x4358,0x333eb));Object['defineProperty'](exports,'__esModule',{'value':!![]});const child_process_1=require(_0xd60c7b(0x131)),resource_1=require('../resource'),path_1=require(_0xd60c7b(0x127)),fs=require('fs'),xcodebuild_1=require(_0xd60c7b(0x10e));class Xcrun{static async[_0xd60c7b(0x124)](_0x1b80ad,_0xacf8ed,_0x3db55c,_0x1c1343){const _0x2425ce=_0xd60c7b,_0x1479a4=new XcrunCMD()['altool']();_0x1479a4[_0x2425ce(0x124)](_0x1b80ad);_0x1c1343?_0x1479a4[_0x2425ce(0x11c)](_0xacf8ed,_0x3db55c):_0x1479a4[_0x2425ce(0x121)](_0xacf8ed,_0x3db55c);_0x1479a4[_0x2425ce(0xfc)]('visionos');const _0xf57cfc=(0x0,child_process_1[_0x2425ce(0x10b)])(_0x1479a4[_0x2425ce(0x128)]);return _0xf57cfc[_0x2425ce(0x11b)]();}static async['uploadPackage'](_0x566730,_0x126450,_0x3eed3d,_0x50cc10,_0x2ed2f9){const _0x21c7a1=_0xd60c7b,_0x589cf1=new XcrunCMD()[_0x21c7a1(0x13c)]();_0x589cf1[_0x21c7a1(0x112)](_0x566730);_0x2ed2f9?_0x589cf1[_0x21c7a1(0x11c)](_0x126450,_0x3eed3d):_0x589cf1[_0x21c7a1(0x121)](_0x126450,_0x3eed3d);_0x589cf1[_0x21c7a1(0xfc)]('visionos'),_0x589cf1['appleId'](_0x50cc10);const _0x5aa3e6=(0x0,child_process_1['execSync'])(_0x589cf1[_0x21c7a1(0x128)]);return _0x5aa3e6[_0x21c7a1(0x11b)]();}static async['uploadApp'](_0x4ba935,_0x5a8a96,_0x186453,_0x3fca2b){const _0x4b680f=_0xd60c7b,_0x5736a2=new XcrunCMD()[_0x4b680f(0x13c)]();_0x5736a2['uploadApp'](_0x4ba935);_0x3fca2b?_0x5736a2[_0x4b680f(0x11c)](_0x5a8a96,_0x186453):_0x5736a2[_0x4b680f(0x121)](_0x5a8a96,_0x186453);_0x5736a2[_0x4b680f(0xfc)](_0x4b680f(0x110));const _0x11d20f=(0x0,child_process_1[_0x4b680f(0x10b)])(_0x5736a2[_0x4b680f(0x128)]);return _0x11d20f['toString']();}static async[_0xd60c7b(0x104)](_0x180267){const _0x449d0d=_0xd60c7b;let _0x43324b=new XcrunCMD()[_0x449d0d(0x143)]();_0x43324b[_0x449d0d(0x142)](_0x449d0d(0x136));const _0x3776fe=(0x0,child_process_1['execSync'])(_0x43324b[_0x449d0d(0x128)]),_0x316503=this[_0x449d0d(0x135)](_0x3776fe[_0x449d0d(0x11b)]());if(_0x316503['length']===0x0)throw new Error(_0x449d0d(0x145));let _0x3627f9=_0x316503[0x0];for(let _0x451878=0x0;_0x451878<_0x316503[_0x449d0d(0x139)];_0x451878++){if(_0x316503[_0x451878]['state']===_0x449d0d(0x100)){_0x3627f9=_0x316503[_0x451878];break;}}console['log']('find\x20simulator:\x20'+_0x3627f9[_0x449d0d(0xfe)]);const _0x10c195=resource_1[_0x449d0d(0x11d)]+_0x449d0d(0x103),_0x3a3966=resource_1[_0x449d0d(0x130)]+'/test';!fs['existsSync'](resource_1[_0x449d0d(0x130)])&&fs[_0x449d0d(0x113)](resource_1[_0x449d0d(0x130)],{'recursive':!![]});!fs[_0x449d0d(0x13a)](_0x3a3966)&&fs[_0x449d0d(0x113)](_0x3a3966,{'recursive':!![]});const _0x19447f=new xcodebuild_1[(_0x449d0d(0x101))]()[_0x449d0d(0x11a)](_0x10c195)['line']+(_0x449d0d(0x115)+_0x3627f9[_0x449d0d(0xfe)]+_0x449d0d(0x140)+_0x3a3966);console['log'](_0x449d0d(0x116)),(0x0,child_process_1[_0x449d0d(0x10b)])(_0x19447f),console[_0x449d0d(0x114)](_0x449d0d(0x109));_0x3627f9[_0x449d0d(0x10a)]===_0x449d0d(0x11e)&&(_0x43324b=new XcrunCMD()['simctl'](),_0x43324b[_0x449d0d(0x13d)](_0x3627f9[_0x449d0d(0xfe)]),(0x0,child_process_1[_0x449d0d(0x10b)])(_0x43324b[_0x449d0d(0x128)]));(0x0,child_process_1[_0x449d0d(0x10b)])(_0x449d0d(0x12d)),console[_0x449d0d(0x114)](_0x449d0d(0x126));const _0x529caa=(0x0,path_1[_0x449d0d(0x12c)])(_0x3a3966,_0x449d0d(0x148)+_0x180267[_0x449d0d(0x147)]+_0x449d0d(0x146));_0x43324b=new XcrunCMD()[_0x449d0d(0x143)](),_0x43324b['install'](_0x3627f9[_0x449d0d(0xfe)],_0x529caa),(0x0,child_process_1['execSync'])(_0x43324b['line']),console[_0x449d0d(0x114)](_0x449d0d(0x108)),console[_0x449d0d(0x114)]('launch\x20app'),_0x43324b=new XcrunCMD()['simctl'](),_0x43324b[_0x449d0d(0x129)](_0x3627f9['deviceId'],_0x180267['id']),(0x0,child_process_1[_0x449d0d(0x10b)])(_0x43324b[_0x449d0d(0x128)]);}static[_0xd60c7b(0x135)](_0x59a963){const _0x41209b=_0xd60c7b;let _0x41e36a=_0x59a963['split']('\x0a'),_0x12ba30=[],_0xfbd72=-0x1;for(let _0x473418=0x0;_0x473418<_0x41e36a['length'];_0x473418++){if(_0x41e36a[_0x473418]['includes'](_0x41209b(0x11f)))_0xfbd72=_0x473418;else{if(_0xfbd72>0x0){if(_0x41e36a[_0x473418]['includes'](_0x41209b(0x13f)))break;if(_0x41e36a[_0x473418][_0x41209b(0x139)]>0x0){const _0x94abfb=_0x41e36a[_0x473418][_0x41209b(0x102)]('('),_0x54f292={'name':_0x94abfb[0x0][_0x41209b(0x123)](),'deviceId':_0x94abfb[0x1][_0x41209b(0x102)](')')[0x0][_0x41209b(0x123)](),'state':_0x94abfb[0x2][_0x41209b(0x102)](')')[0x0]['trim']()};_0x12ba30[_0x41209b(0x105)](_0x54f292);}}}}return _0x12ba30;}}exports[_0xd60c7b(0x14b)]=Xcrun;function _0x4358(){const _0x4e252f=['existsSync','483992kctQIb','altool','boot','\x22\x20\x22','--\x20','\x27\x20-derivedDataPath\x20','11663025YwOUlP','listDevices','simctl','\x20shutdown\x20booted','no\x20visionOS\x20simulator\x20found','.app','name','Build/Products/Debug-xrsimulator/','\x20--bundle-version\x20','466770ttryLS','default','platform','\x20--apple-id\x20','deviceId','\x20list','Booted','XcodebuildCMD','split','/web-spatial.xcodeproj','runWithSimulator','push','\x20boot\x20\x22','28030CrWmnQ','install\x20success','build\x20success','state','execSync','9kGerkK','\x20install\x20\x22','./xcodebuild','1365155CgYHbX','visionos','14oSymIS','uploadPackage','mkdirSync','log','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','start\x20building','6CwQodw','xcrun','\x20list\x20devices\x20\x22','project','toString','authAccount','PROJECT_DIRECTORY','Shutdown','--\x20visionOS','\x20--apiKey\x20','authApi','1627168jXpFDR','trim','validate','510144zUgpjE','installing\x20app','path','line','launch','12YhnAIZ','uploadApp','join','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','\x20-t\x20','\x20--upload-app\x20-f\x20','PROJECT_BUILD_DIRECTORY','child_process','\x20--apiIssuer\x20','install','\x20--upload-package\x20','parseListDevices','Apple\x20Vision\x20Pro','\x20--validate-app\x20-f\x20','\x20launch\x20\x22','length'];_0x4358=function(){return _0x4e252f;};return _0x4358();}class XcrunCMD{constructor(){const _0xb5e1df=_0xd60c7b;this[_0xb5e1df(0x128)]=_0xb5e1df(0x118);}['altool'](){const _0x5da7eb=_0xd60c7b;return this[_0x5da7eb(0x128)]+='\x20altool',this;}[_0xd60c7b(0x143)](){const _0x49ac34=_0xd60c7b;return this[_0x49ac34(0x128)]+='\x20simctl',this;}['list'](){const _0x34044d=_0xd60c7b;return this[_0x34044d(0x128)]+=_0x34044d(0xff),this;}['listDevices'](_0x4cbb51){const _0x35122d=_0xd60c7b;return this['line']+=_0x35122d(0x119)+_0x4cbb51+'\x22',this;}[_0xd60c7b(0x124)](_0x144737){const _0x35e6c9=_0xd60c7b;return this[_0x35e6c9(0x128)]+=_0x35e6c9(0x137)+_0x144737,this;}[_0xd60c7b(0x12b)](_0x2276a1){const _0x44a0e8=_0xd60c7b;return this[_0x44a0e8(0x128)]+=_0x44a0e8(0x12f)+_0x2276a1,this;}[_0xd60c7b(0x112)](_0x2ebeb6){const _0x31d917=_0xd60c7b;return this['line']+=_0x31d917(0x134)+_0x2ebeb6,this;}['authAccount'](_0x427ee6,_0x3531de){const _0x175032=_0xd60c7b;return this[_0x175032(0x128)]+='\x20-u\x20'+_0x427ee6+'\x20-p\x20'+_0x3531de,this;}['authApi'](_0x332ba8,_0x2153b6){const _0x196afc=_0xd60c7b;return this[_0x196afc(0x128)]+=_0x196afc(0x120)+_0x332ba8+_0x196afc(0x132)+_0x2153b6,this;}['appleId'](_0xc99cfc){const _0x19c20e=_0xd60c7b;return this[_0x19c20e(0x128)]+=_0x19c20e(0xfd)+_0xc99cfc,this;}[_0xd60c7b(0xfc)](_0x49bc87){const _0x48d829=_0xd60c7b;return this[_0x48d829(0x128)]+=_0x48d829(0x12e)+_0x49bc87,this;}['version'](_0x123cac){const _0x36782c=_0xd60c7b;return this[_0x36782c(0x128)]+=_0x36782c(0x149)+_0x123cac,this;}['verbose'](){return this['line']+='\x20--verbose',this;}['shutdown'](){const _0x4db832=_0xd60c7b;return this['line']+=_0x4db832(0x144),this;}['boot'](_0x451854){const _0x261ea5=_0xd60c7b;return this[_0x261ea5(0x128)]+=_0x261ea5(0x106)+_0x451854+'\x22',this;}[_0xd60c7b(0x133)](_0x53baf1,_0x24940e){const _0x2bdc1d=_0xd60c7b;return this[_0x2bdc1d(0x128)]+=_0x2bdc1d(0x10d)+_0x53baf1+'\x22\x20\x22'+_0x24940e+'\x22',this;}[_0xd60c7b(0x129)](_0x38d4a8,_0x14e825){const _0x2206ff=_0xd60c7b;return this['line']+=_0x2206ff(0x138)+_0x38d4a8+_0x2206ff(0x13e)+_0x14e825+'\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.6",
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