@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.
- package/dist/index.js +1 -1
- package/dist/lib/Cli.js +1 -1
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.js +1 -1
- package/dist/lib/resource/file.js +1 -1
- package/dist/lib/resource/imageHelper.js +1 -1
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.js +1 -1
- package/dist/lib/utils/CustomError.js +1 -1
- package/dist/lib/utils/FetchUtils-1.js +1 -1
- package/dist/lib/utils/Log.js +1 -1
- package/dist/lib/utils/fetch.js +1 -1
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.d.ts +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +1 -1
- package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +20 -3
- package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +1 -0
- package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +124 -125
- package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +5 -1
- package/template/visionOSApp/web-spatial/views/ui/NavView.swift +80 -40
- package/template/visionOSApp/web-spatial/web_spatialApp.swift +34 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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'))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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;}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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
|
|
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
|
|
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><none></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><none></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;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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
|
@@ -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
|
-
|
|
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
|
|