@webspatial/builder 0.0.10 → 0.0.12
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/README.md +63 -0
- package/dist/index.js +1 -1
- package/dist/lib/Cli.js +1 -1
- package/dist/lib/cmds/build.d.ts +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.d.ts +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.d.ts +2 -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.d.ts +10 -3
- 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.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 +3 -2
- package/template/visionOSApp/Packages/RealityKitContent/.build/workspace-state.json +0 -7
- package/template/visionOSApp/Packages/RealityKitContent/.swiftpm/xcode/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/ProjectData/main.json +0 -11
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/SceneMetadataList.json +0 -112
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/Settings.rcprojectdata +0 -17
- package/template/visionOSApp/Packages/RealityKitContent/Package.swift +0 -27
- package/template/visionOSApp/Packages/RealityKitContent/README.md +0 -3
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda +0 -50
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Materials/GridMaterial.usda +0 -216
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda +0 -59
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.swift +0 -4
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +0 -12
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Contents.json +0 -17
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +0 -12
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +0 -12
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/Assets.xcassets/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/Info.plist +0 -33
- package/template/visionOSApp/web-spatial/Preview Content/Preview Assets.xcassets/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/libs/EventEmitter.swift +0 -32
- package/template/visionOSApp/web-spatial/libs/SpatialComponent.swift +0 -31
- package/template/visionOSApp/web-spatial/libs/SpatialEntity.swift +0 -179
- package/template/visionOSApp/web-spatial/libs/SpatialInputComponent.swift +0 -26
- package/template/visionOSApp/web-spatial/libs/SpatialMeshResource.swift +0 -19
- package/template/visionOSApp/web-spatial/libs/SpatialModel3DComponent.swift +0 -51
- package/template/visionOSApp/web-spatial/libs/SpatialModelComponent.swift +0 -32
- package/template/visionOSApp/web-spatial/libs/SpatialObject.swift +0 -144
- package/template/visionOSApp/web-spatial/libs/SpatialPhysicallyBasedMaterial.swift +0 -19
- package/template/visionOSApp/web-spatial/libs/SpatialViewComponent.swift +0 -15
- package/template/visionOSApp/web-spatial/libs/SpatialWindowComponent.swift +0 -420
- package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +0 -149
- package/template/visionOSApp/web-spatial/libs/Utils/CommandManager.swift +0 -800
- package/template/visionOSApp/web-spatial/libs/Utils/Logger.swift +0 -36
- package/template/visionOSApp/web-spatial/libs/Utils/SceneManager.swift +0 -108
- package/template/visionOSApp/web-spatial/libs/Utils/WindowContainerMgr.swift +0 -117
- package/template/visionOSApp/web-spatial/libs/json/JsonParser.swift +0 -52
- package/template/visionOSApp/web-spatial/libs/uiKitDelegate/Window.swift +0 -34
- package/template/visionOSApp/web-spatial/libs/webView/UpdateSystem.swift +0 -33
- package/template/visionOSApp/web-spatial/libs/webView/backend/NativeWebView.swift +0 -319
- package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +0 -92
- package/template/visionOSApp/web-spatial/static-web/index.html +0 -9
- package/template/visionOSApp/web-spatial/views/HideViewModifier.swift +0 -17
- package/template/visionOSApp/web-spatial/views/ImmersiveView.swift +0 -24
- package/template/visionOSApp/web-spatial/views/LoadingView.swift +0 -29
- package/template/visionOSApp/web-spatial/views/MaterialWithBorderCornerModifier.swift +0 -82
- package/template/visionOSApp/web-spatial/views/OpenDismissHandlerUI.swift +0 -52
- package/template/visionOSApp/web-spatial/views/PlainWindowContainerView.swift +0 -84
- package/template/visionOSApp/web-spatial/views/SpatialModel3DView.swift +0 -193
- package/template/visionOSApp/web-spatial/views/SpatialViewUI.swift +0 -168
- package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +0 -186
- package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +0 -38
- package/template/visionOSApp/web-spatial/views/ui/NavView.swift +0 -125
- package/template/visionOSApp/web-spatial/web_spatialApp.swift +0 -158
- package/template/visionOSApp/web-spatial.xcodeproj/project.pbxproj +0 -686
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -5
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/WorkspaceSettings.xcsettings +0 -14
- package/template/visionOSApp/web-spatial.xcodeproj/xcshareddata/xcschemes/web-spatial.xcscheme +0 -115
- package/template/visionOSApp/web-spatial.xcodeproj/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +0 -27
- package/template/visionOSApp/web-spatialTests/web_spatialTests.swift +0 -34
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x42f4(_0x2c9134,_0x1d43da){const _0x3a8459=_0x3a84();return _0x42f4=function(_0x42f41f,_0x4fd79c){_0x42f41f=_0x42f41f-0x114;let _0x23f6a6=_0x3a8459[_0x42f41f];return _0x23f6a6;},_0x42f4(_0x2c9134,_0x1d43da);}function _0x3a84(){const _0x42ffce=['11038848zLcEes','13229640cMxUBi','389715BmJpgK','fetchEngine','28611000DgoyXp','fetch','downloadFile','setDownloadFile','3611986XOqLir','decompressResponseBuffer','269861oyWCmC','507042uhzjvJ','10xbxAdK','fetchUtils','setDecompressResponseBuffer','12UvxLpk','45WnINrU'];_0x3a84=function(){return _0x42ffce;};return _0x3a84();}const _0x14e879=_0x42f4;(function(_0x519181,_0x5efb99){const _0x105675=_0x42f4,_0x8d887e=_0x519181();while(!![]){try{const _0x1e49cb=parseInt(_0x105675(0x118))/0x1*(-parseInt(_0x105675(0x11a))/0x2)+-parseInt(_0x105675(0x121))/0x3*(parseInt(_0x105675(0x11d))/0x4)+parseInt(_0x105675(0x11e))/0x5*(-parseInt(_0x105675(0x119))/0x6)+parseInt(_0x105675(0x116))/0x7+parseInt(_0x105675(0x11f))/0x8+-parseInt(_0x105675(0x120))/0x9+parseInt(_0x105675(0x123))/0xa;if(_0x1e49cb===_0x5efb99)break;else _0x8d887e['push'](_0x8d887e['shift']());}catch(_0x5e7ef0){_0x8d887e['push'](_0x8d887e['shift']());}}}(_0x3a84,0xc03d3));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x14e879(0x11b)]=void 0x0;class FetchUtils{constructor(){const _0x47ad3f=_0x14e879;this[_0x47ad3f(0x122)]=null,this[_0x47ad3f(0x124)]=null,this[_0x47ad3f(0x114)]=null,this[_0x47ad3f(0x117)]=null;}['setFetchEngine'](_0x5f1675){const _0x5575dc=_0x14e879;this[_0x5575dc(0x122)]=_0x5f1675;}['setFetch'](_0x29ad37){const _0x4f82e1=_0x14e879;this[_0x4f82e1(0x124)]=_0x29ad37;}[_0x14e879(0x115)](_0x35880a){this['downloadFile']=_0x35880a;}[_0x14e879(0x11c)](_0x52bd9f){const _0x2a0442=_0x14e879;this[_0x2a0442(0x117)]=_0x52bd9f;}}const fetchUtils=new FetchUtils();exports['fetchUtils']=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x42a5eb=_0x2501;function _0x1970(){var _0x261914=['verbose','3017192VZGCwe','1666390frZIty','tag','prefix','yellow','concat','\x1b[0m','1172248BXSwni','44891eYPgco','info','10114sSRsyB','defineProperty','13128ODNyfy','9fKTcNp','48BBqHFQ','\x1b[36m','output','newLog','1410xVFJjj','38DpoIYj','dim','ERROR\x20','red','4TXQkLz','error','log','118990FgcVly','\x1b[7m','WARNING\x20','136203fYsDWv','warn'];_0x1970=function(){return _0x261914;};return _0x1970();}(function(_0x42353f,_0x46d85c){var _0x2e1e1f=_0x2501,_0x3c2d71=_0x42353f();while(!![]){try{var _0x548827=-parseInt(_0x2e1e1f(0x1d1))/0x1+-parseInt(_0x2e1e1f(0x1ea))/0x2*(parseInt(_0x2e1e1f(0x1d4))/0x3)+-parseInt(_0x2e1e1f(0x1ce))/0x4*(parseInt(_0x2e1e1f(0x1d8))/0x5)+-parseInt(_0x2e1e1f(0x1e5))/0x6*(-parseInt(_0x2e1e1f(0x1de))/0x7)+parseInt(_0x2e1e1f(0x1d7))/0x8*(parseInt(_0x2e1e1f(0x1e4))/0x9)+-parseInt(_0x2e1e1f(0x1e9))/0xa*(parseInt(_0x2e1e1f(0x1df))/0xb)+parseInt(_0x2e1e1f(0x1e3))/0xc*(parseInt(_0x2e1e1f(0x1e1))/0xd);if(_0x548827===_0x46d85c)break;else _0x3c2d71['push'](_0x3c2d71['shift']());}catch(_0x3be5b3){_0x3c2d71['push'](_0x3c2d71['shift']());}}}(_0x1970,0xa5735));function _0x2501(_0x597ffb,_0x1cb47b){var _0x19703f=_0x1970();return _0x2501=function(_0x250164,_0x34d77c){_0x250164=_0x250164-0x1ce;var _0x58b146=_0x19703f[_0x250164];return _0x58b146;},_0x2501(_0x597ffb,_0x1cb47b);}Object[_0x42a5eb(0x1e2)](exports,'__esModule',{'value':!![]}),exports['ConsoleLog']=void 0x0;class ConsoleLog{constructor(_0x324db9='',_0x29e179=![],_0x1ecff5=console){var _0x2e83bc=_0x42a5eb;this[_0x2e83bc(0x1d9)]=_0x324db9,this[_0x2e83bc(0x1d6)]=_0x29e179,this[_0x2e83bc(0x1da)]=this['inverse'](_0x324db9),this[_0x2e83bc(0x1e7)]=_0x1ecff5;}['debug'](_0x3ec264,..._0x27c7ec){var _0x4744b0=_0x42a5eb;if(!this[_0x4744b0(0x1d6)])return;this['log'](this[_0x4744b0(0x1e7)][_0x4744b0(0x1d0)],this[_0x4744b0(0x1eb)](_0x3ec264),..._0x27c7ec);}[_0x42a5eb(0x1e0)](_0x146fc4,..._0x59d71f){var _0x9bb498=_0x42a5eb;this[_0x9bb498(0x1d0)](this[_0x9bb498(0x1e7)][_0x9bb498(0x1d0)],_0x146fc4,..._0x59d71f);}[_0x42a5eb(0x1d5)](_0x14fee3,..._0x362335){var _0x5d1ae4=_0x42a5eb;this[_0x5d1ae4(0x1d0)](this[_0x5d1ae4(0x1e7)][_0x5d1ae4(0x1d5)],this[_0x5d1ae4(0x1db)](_0x5d1ae4(0x1d3)+_0x14fee3),..._0x362335);}[_0x42a5eb(0x1cf)](_0x2ffbd5,..._0x3f6de5){var _0x28d9c7=_0x42a5eb;this[_0x28d9c7(0x1e7)][_0x28d9c7(0x1cf)]('\x0a'),this['log'](this['output'][_0x28d9c7(0x1cf)],this['red'](_0x28d9c7(0x1ec)+_0x2ffbd5),..._0x3f6de5),this[_0x28d9c7(0x1e7)][_0x28d9c7(0x1cf)]('\x0a');}['setVerbose'](_0x4e0e6c){this['verbose']=_0x4e0e6c;}[_0x42a5eb(0x1e8)](_0x54d296){var _0x1c6f3b=_0x42a5eb;return this['tag']&&(_0x54d296=this[_0x1c6f3b(0x1d9)]+'\x20'+_0x54d296),new ConsoleLog(_0x54d296,this['verbose'],this[_0x1c6f3b(0x1e7)]);}[_0x42a5eb(0x1d0)](_0x561006,_0x4304f8,..._0x35a945){var _0x4d5809=_0x42a5eb;this[_0x4d5809(0x1da)]&&(_0x4304f8=this[_0x4d5809(0x1da)]+'\x20'+_0x4304f8),_0x35a945?_0x561006(...[_0x4304f8][_0x4d5809(0x1dc)](_0x35a945)):_0x561006(_0x4304f8);}['inverse'](_0x29b9de){var _0x2f451f=_0x42a5eb;return _0x2f451f(0x1d2)+_0x29b9de+_0x2f451f(0x1dd);}['dim'](_0x48c8fe){var _0x251140=_0x42a5eb;return _0x251140(0x1e6)+_0x48c8fe+_0x251140(0x1dd);}[_0x42a5eb(0x1db)](_0x403b51){var _0x1f92e2=_0x42a5eb;return'\x1b[33m'+_0x403b51+_0x1f92e2(0x1dd);}[_0x42a5eb(0x1ed)](_0x4bf1ec){return'\x1b[31m'+_0x4bf1ec+'\x1b[0m';}}exports['ConsoleLog']=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3e7c2a=_0x4647;(function(_0x2a9a7,_0x3b2d4e){const _0x56198b=_0x4647,_0x39dc8c=_0x2a9a7();while(!![]){try{const _0x38a481=-parseInt(_0x56198b(0x166))/0x1*(-parseInt(_0x56198b(0x171))/0x2)+parseInt(_0x56198b(0x160))/0x3+parseInt(_0x56198b(0x15e))/0x4*(parseInt(_0x56198b(0x170))/0x5)+-parseInt(_0x56198b(0x168))/0x6+parseInt(_0x56198b(0x173))/0x7*(parseInt(_0x56198b(0x15f))/0x8)+-parseInt(_0x56198b(0x16d))/0x9+parseInt(_0x56198b(0x16a))/0xa*(-parseInt(_0x56198b(0x162))/0xb);if(_0x38a481===_0x3b2d4e)break;else _0x39dc8c['push'](_0x39dc8c['shift']());}catch(_0x4c9a60){_0x39dc8c['push'](_0x39dc8c['shift']());}}}(_0x491a,0x6ff83));function _0x491a(){const _0x4284af=['get','constants','3443WDeQZB','follow','1397070ofBfcA','fetch','2290hcpvcy','data','context','7630092REacbv','Z_SYNC_FLUSH','pipe','186530HyyVxC','490HZLCOW','readable','1132250dKtlRW','defineProperty','unzipSync','fetch-h2','Mozilla/5.0\x20(X11;\x20Linux\x20x86_64;\x20PICO\x204\x20OS5.5.0\x20like\x20Quest)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20PicoBrowser/3.3.24\x20Chrome/105.0.5195.68\x20VR\x20Safari/537.36\x20\x20OculusBrowser/7.0','zlib','test','20eWhJoX','40sQrWqJ','543348Pmurxo','length','23089Dbzxzw','downloadFile'];_0x491a=function(){return _0x4284af;};return _0x491a();}function _0x4647(_0x45c18a,_0x497678){const _0x491ade=_0x491a();return _0x4647=function(_0x4647db,_0x243337){_0x4647db=_0x4647db-0x15e;let _0x3ea469=_0x491ade[_0x4647db];return _0x3ea469;},_0x4647(_0x45c18a,_0x497678);}Object[_0x3e7c2a(0x174)](exports,'__esModule',{'value':!![]}),exports[_0x3e7c2a(0x169)]=fetch,exports[_0x3e7c2a(0x163)]=downloadFile,exports['decompressResponseBuffer']=decompressResponseBuffer;const fetch_h2_1=require(_0x3e7c2a(0x176)),fs=require('fs'),zlib=require(_0x3e7c2a(0x178)),userAgent=_0x3e7c2a(0x177),fetchh2Ctx=(0x0,fetch_h2_1[_0x3e7c2a(0x16c)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx['fetch'];async function fetch(_0x3dc631,_0x3dddde){const _0x5b6a29=_0x3e7c2a;return await fetchh2(_0x3dc631,_0x3dddde?{'redirect':'follow',..._0x3dddde}:{'redirect':_0x5b6a29(0x167)});}async function downloadFile(_0x1a7847,_0x5a2f71,_0x24a4b4){const _0xc7dd25=_0x3e7c2a;let _0x57edb8,_0x19b490;_0x57edb8=await fetchh2(_0x1a7847,{'redirect':_0xc7dd25(0x167)}),_0x19b490=await _0x57edb8[_0xc7dd25(0x172)]();const _0x318aee=_0x57edb8['headers'][_0xc7dd25(0x164)]('Content-Length'),_0x198622=_0x318aee?parseInt(_0x318aee):-0x1,_0x20f017=fs['createWriteStream'](_0x5a2f71);let _0x5ae5c0=0x0;await new Promise((_0x2f04ef,_0xb90757)=>{const _0x37d3a1=_0xc7dd25;_0x19b490[_0x37d3a1(0x16f)](_0x20f017),_0x24a4b4&&_0x19b490['on'](_0x37d3a1(0x16b),_0x2489d7=>{const _0x1384d5=_0x37d3a1;_0x5ae5c0=_0x5ae5c0+_0x2489d7[_0x1384d5(0x161)],_0x24a4b4(_0x5ae5c0,_0x198622);}),_0x19b490['on']('error',_0x3aed3d=>{_0xb90757(_0x3aed3d);}),_0x20f017['on']('finish',()=>{_0x2f04ef();});});}function decompressResponseBuffer(_0x49ffb9,_0x2182af){const _0x350d81=_0x3e7c2a;let _0x241a4c=_0x49ffb9;if(/\bgzip\b/['test'](_0x2182af)||/\bdeflate\b/[_0x350d81(0x179)](_0x2182af))_0x241a4c=zlib[_0x350d81(0x175)](_0x49ffb9,{'flush':zlib[_0x350d81(0x165)]['Z_SYNC_FLUSH'],'finishFlush':zlib[_0x350d81(0x165)][_0x350d81(0x16e)]});else/\bbr\b/[_0x350d81(0x179)](_0x2182af)&&(_0x241a4c=zlib['brotliDecompressSync'](_0x49ffb9));return _0x241a4c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5b5ec8=_0x5af8;(function(_0x26c005,_0xc05fda){const _0x2272c0=_0x5af8,_0xb0e16f=_0x26c005();while(!![]){try{const _0x23ca92=parseInt(_0x2272c0(0xcd))/0x1*(parseInt(_0x2272c0(0xee))/0x2)+parseInt(_0x2272c0(0xf6))/0x3+parseInt(_0x2272c0(0xe8))/0x4*(parseInt(_0x2272c0(0xde))/0x5)+-parseInt(_0x2272c0(0xe7))/0x6*(-parseInt(_0x2272c0(0x10a))/0x7)+-parseInt(_0x2272c0(0xfe))/0x8*(-parseInt(_0x2272c0(0xef))/0x9)+parseInt(_0x2272c0(0xe6))/0xa*(-parseInt(_0x2272c0(0xe2))/0xb)+parseInt(_0x2272c0(0x106))/0xc*(-parseInt(_0x2272c0(0x102))/0xd);if(_0x23ca92===_0xc05fda)break;else _0xb0e16f['push'](_0xb0e16f['shift']());}catch(_0x4ae7cf){_0xb0e16f['push'](_0xb0e16f['shift']());}}}(_0x49be,0x9e379));function _0x5af8(_0x3b3152,_0x972636){const _0x49bebc=_0x49be();return _0x5af8=function(_0x5af871,_0x3162b3){_0x5af871=_0x5af871-0xc9;let _0x3f1b4a=_0x49bebc[_0x5af871];return _0x3f1b4a;},_0x5af8(_0x3b3152,_0x972636);}function _0x49be(){const _0xf48520=['Decompressing\x20the\x20Android\x20SDK...','__esModule','Decompressing\x20the\x20JDK\x2011\x20Binaries...','bold','(5/5)','--manifest','8UpBphG','colors','\x20and\x20alias\x20','Minimum\x20length\x20is\x20','3184220mFABZB','\x09-\x20Generated\x20Android\x20APK\x20at\x20','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','--url','72LbvQXq','license\x20agreement.','Organization\x20(eg:\x20Company\x20Name):','Maximum\x20length\x20is\x20','273vOrjzo','WARNING:\x20','Country\x20(2\x20letter\x20code):','Downloading\x20the\x20JDK\x2011\x20Sources...','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','14148eTfwhW','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','--manifest-url','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','Invalid\x20integer\x20provided:\x20','\x0aProject\x20generated\x20successfully.','URL\x20','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','Decompressing\x20the\x20JDK\x2011\x20Sources...','redirected\x20to\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)','cyan','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','underline','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','Invalid\x20URL:\x20','25ISoDvp','\x20but\x20input\x20is\x20','\x0aBuilding\x20the\x20Android\x20App...','Missing\x20required\x20parameter\x20','8162qHhrlZ','yellow','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','https://play.google.com/console/about/families/','2480HKkIAC','108492FMirRc','166604eWZdRM','Downloading\x20JDK\x2011\x20to\x20','Icon\x20URL:','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','\x0aSigning\x20key\x20creation','Do\x20you\x20want\x20to\x20create\x20one\x20now?','56bbmfCe','2192301rJAQBn','Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','Path\x20to\x20your\x20existing\x20Android\x20SDK:','Generating\x20Android\x20Project.','green','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','\x0aSigning\x20key\x20information\x20','2245581MMqZfN','messages'];_0x49be=function(){return _0xf48520;};return _0x49be();}Object['defineProperty'](exports,_0x5b5ec8(0xf9),{'value':!![]}),exports[_0x5b5ec8(0xf7)]=void 0x0;const colors_1=require(_0x5b5ec8(0xff));exports[_0x5b5ec8(0xf7)]={'promptInstallJdk':_0x5b5ec8(0xd7),'promptJdkPath':'Path\x20to\x20your\x20existing\x20JDK\x2011:','messageDownloadJdk':_0x5b5ec8(0xe9),'messageDownloadJdkSrc':_0x5b5ec8(0xcb),'messageDecompressJdkSrc':_0x5b5ec8(0xd5),'messageDownloadJdkBin':'Downloading\x20the\x20JDK\x2011\x20Binaries...','messageDecompressJdkBin':_0x5b5ec8(0xfa),'promptInstallSdk':'Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20Android\x20SDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20Android\x20SDK\x20installation)','promptSdkPath':_0x5b5ec8(0xf1),'messageDownloadSdk':'Downloading\x20Android\x20SDK\x20to\x20','errorSdkTerms':_0x5b5ec8(0xce),'promptSdkTerms':_0x5b5ec8(0x104)+(0x0,colors_1[_0x5b5ec8(0xda)])('https://developer.android.com/studio/terms.html')+'?','messageDownloadAndroidSdk':'Downloading\x20the\x20Android\x20SDK...','messageDecompressAndroidSdk':_0x5b5ec8(0xf8),'messageInstallingBuildTools':'Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20'+_0x5b5ec8(0x107),'messageGeneratingAndroidProject':_0x5b5ec8(0xf2),'messageCheckSuccess':(_0x1cdb0b,_0x4b4692)=>{const _0x1c413f=_0x5b5ec8;return'\x20URL\x20'+(0x0,colors_1['cyan'])(_0x1cdb0b)+'\x20'+(_0x4b4692?_0x1c413f(0xd6)+(0x0,colors_1[_0x1c413f(0xd8)])(_0x4b4692):'')+_0x1c413f(0xd4);},'errorMissingManifestParameter':_0x5b5ec8(0xe1)+((0x0,colors_1[_0x5b5ec8(0xd8)])(_0x5b5ec8(0xcf))+'\x20or\x20'+(0x0,colors_1[_0x5b5ec8(0xd8)])(_0x5b5ec8(0xfd))),'messageInitializingWebManifest':_0x2cdd75=>{const _0x1e711f=_0x5b5ec8;return _0x1e711f(0xeb)+(0x0,colors_1[_0x1e711f(0xd8)])(_0x2cdd75);},'messageInitializingLocalManifest':_0x934a50=>{const _0x177ee6=_0x5b5ec8;return _0x177ee6(0xd9)+(0x0,colors_1[_0x177ee6(0xd8)])(_0x934a50);},'messageInvalidIcon':_0x4ac224=>{const _0x5d89bc=_0x5b5ec8;return'Invalid\x20icon\x20path:\x20'+(0x0,colors_1[_0x5d89bc(0xd8)])(_0x4ac224);},'errorStartUrlNotReachable':_0x1a7554=>_0x5b5ec8(0xd3)+_0x1a7554+'\x20can\x20not\x20be\x20accessible.'+_0x5b5ec8(0xdc),'warnFamilyPolicy':(0x0,colors_1[_0x5b5ec8(0xfb)])((0x0,colors_1[_0x5b5ec8(0xe3)])(_0x5b5ec8(0xc9)))+_0x5b5ec8(0xdb)+_0x5b5ec8(0xe4)+'\x20Check\x20out\x20the\x20Play\x20for'+'\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a'+(0x0,colors_1[_0x5b5ec8(0xd8)])(_0x5b5ec8(0xe5)),'promptIconUrl':_0x5b5ec8(0xea),'errorInvalidUrl':_0xec3280=>{const _0x9f1b11=_0x5b5ec8;return _0x9f1b11(0xdd)+_0xec3280;},'errorUrlMustBeImage':_0x289940=>{const _0x4f48ab=_0x5b5ec8;return _0x4f48ab(0xf4)+_0x289940+'.';},'promptVersionCode':_0x5b5ec8(0xd0),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0x5b5ec8(0xda)])(_0x5b5ec8(0xf5)+(0x0,colors_1[_0x5b5ec8(0xf3)])(_0x5b5ec8(0xfc))),'messageProjectGeneratedSuccess':_0x5b5ec8(0xd2),'messageSigningKeyCreation':(0x0,colors_1[_0x5b5ec8(0xda)])(_0x5b5ec8(0xec)),'messageSigningKeyNotFound':_0x23d597=>{return'\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22'+_0x23d597+'\x22.\x0a';},'promptCreateKey':_0x5b5ec8(0xed),'promptKeyFullName':'First\x20and\x20Last\x20names\x20(eg:\x20PICO):','promptKeyOrganizationalUnit':_0x5b5ec8(0xf0),'promptKeyOrganization':_0x5b5ec8(0x108),'promptKeyCountry':_0x5b5ec8(0xca),'promptKeystorePassword':'Password\x20for\x20the\x20Key\x20Store:','promptKeyPassword':'Password\x20for\x20the\x20Key:','messageBuildingApp':_0x5b5ec8(0xe0),'messageEnterPasswords':(_0x2dacf0,_0x5d6839)=>{const _0x5f08d6=_0x5b5ec8;return _0x5f08d6(0xcc)+(0x0,colors_1['cyan'])(_0x2dacf0)+_0x5f08d6(0x100)+(0x0,colors_1[_0x5f08d6(0xd8)])(_0x5d6839)+'.\x0a';},'errorMinLength':(_0x3ce612,_0x30b5b4)=>{const _0x3f8daa=_0x5b5ec8;return _0x3f8daa(0x101)+_0x3ce612+_0x3f8daa(0xdf)+_0x30b5b4+'.';},'errorMaxLength':(_0x511d02,_0x4219a6)=>{const _0x28423c=_0x5b5ec8;return _0x28423c(0x109)+_0x511d02+_0x28423c(0xdf)+_0x4219a6+'.';},'errorInvalidInteger':_0x4b350b=>{const _0x2bf857=_0x5b5ec8;return _0x2bf857(0xd1)+_0x4b350b;},'messageApkSuccess':_0x1cd0c5=>{const _0x438388=_0x5b5ec8;return _0x438388(0x103)+(0x0,colors_1[_0x438388(0xd8)])(_0x1cd0c5);},'missingUrlToCheck':'Missing\x20required\x20parameter\x20'+(''+(0x0,colors_1[_0x5b5ec8(0xd8)])(_0x5b5ec8(0x105)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1a6373=_0x4f15;(function(_0x16ee20,_0x5d04db){const _0x2bda7d=_0x4f15,_0x47c5e5=_0x16ee20();while(!![]){try{const _0x5bf274=-parseInt(_0x2bda7d(0xb8))/0x1*(-parseInt(_0x2bda7d(0xb2))/0x2)+-parseInt(_0x2bda7d(0xb7))/0x3*(parseInt(_0x2bda7d(0xbe))/0x4)+parseInt(_0x2bda7d(0xb6))/0x5+parseInt(_0x2bda7d(0xaf))/0x6+parseInt(_0x2bda7d(0xc0))/0x7+parseInt(_0x2bda7d(0xb5))/0x8*(-parseInt(_0x2bda7d(0xb9))/0x9)+parseInt(_0x2bda7d(0xb0))/0xa*(parseInt(_0x2bda7d(0xb3))/0xb);if(_0x5bf274===_0x5d04db)break;else _0x47c5e5['push'](_0x47c5e5['shift']());}catch(_0x29310b){_0x47c5e5['push'](_0x47c5e5['shift']());}}}(_0x1297,0x25173));Object[_0x1a6373(0xb1)](exports,_0x1a6373(0xba),{'value':!![]}),exports[_0x1a6373(0xbb)]=parseRouter;function _0x1297(){const _0x2dcdf5=['1066289IXcUco','replace','457350quMouo','337270RBBBqG','defineProperty','25946ZxtysH','22zZDABx','split','9896UsNNmV','357865fFCnBU','375ndYUVp','20otsvCh','1737lJebEH','__esModule','parseRouter','pop','join','7564bPjmni','indexOf'];_0x1297=function(){return _0x2dcdf5;};return _0x1297();}function _0x4f15(_0x23f24d,_0x1fdd4e){const _0x1297bf=_0x1297();return _0x4f15=function(_0x4f15b6,_0x48b2af){_0x4f15b6=_0x4f15b6-0xaf;let _0x53d5af=_0x1297bf[_0x4f15b6];return _0x53d5af;},_0x4f15(_0x23f24d,_0x1fdd4e);}function parseRouter(_0x42191b){const _0x130824=_0x1a6373;let _0xb92e27=_0x42191b[_0x130824(0xb4)]('/');_0xb92e27[_0x130824(0xbc)]();let _0x1afd9e=_0xb92e27[_0x130824(0xbd)]();while(_0x1afd9e[_0x130824(0xbf)](',')>=0x0){_0x1afd9e=_0x1afd9e[_0x130824(0xc1)](',','/');}return _0x1afd9e;}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x17e5(_0x3fae44,_0x3ead22){const _0x324b18=_0x324b();return _0x17e5=function(_0x17e5b0,_0x3217ac){_0x17e5b0=_0x17e5b0-0x1d8;let _0x112c48=_0x324b18[_0x17e5b0];return _0x112c48;},_0x17e5(_0x3fae44,_0x3ead22);}const _0x1c2922=_0x17e5;function _0x324b(){const _0x3d4bf3=['1625460sDbQXR','modify','XcodeManager','12624TQNVOw','parseProject','./xcodeproject','./xcodebuild','archive','defineProperty','PROJECT_DIRECTORY','name','2516508bDEjrR','../resource','existsSync','3125GSRxRt','log','join','6222ETsyDO','14832jCvxvj','/web-spatial.xcodeproj/project.pbxproj','PROJECT_EXPORT_DIRECTORY','968054uIpqaz','uploadApp','default','.ipa','10725582vdfgZa','./xcrun','write\x20project.pbxproj:\x20ok','runWithSimulator','1191046SuUXLA'];_0x324b=function(){return _0x3d4bf3;};return _0x324b();}(function(_0x41bd8c,_0x263c27){const _0x4c2e21=_0x17e5,_0x140fcd=_0x41bd8c();while(!![]){try{const _0x137dcf=-parseInt(_0x4c2e21(0x1e4))/0x1+parseInt(_0x4c2e21(0x1dc))/0x2+parseInt(_0x4c2e21(0x1e5))/0x3+parseInt(_0x4c2e21(0x1f0))/0x4+parseInt(_0x4c2e21(0x1f3))/0x5*(-parseInt(_0x4c2e21(0x1d8))/0x6)+-parseInt(_0x4c2e21(0x1e0))/0x7+parseInt(_0x4c2e21(0x1e8))/0x8*(parseInt(_0x4c2e21(0x1d9))/0x9);if(_0x137dcf===_0x263c27)break;else _0x140fcd['push'](_0x140fcd['shift']());}catch(_0x27cb9b){_0x140fcd['push'](_0x140fcd['shift']());}}}(_0x324b,0xd7d99));Object[_0x1c2922(0x1ed)](exports,'__esModule',{'value':!![]}),exports[_0x1c2922(0x1e7)]=void 0x0;const fs=require('fs'),resource_1=require(_0x1c2922(0x1f1)),xcodeproject_1=require(_0x1c2922(0x1ea)),xcodebuild_1=require(_0x1c2922(0x1eb)),xcrun_1=require(_0x1c2922(0x1e1)),path_1=require('path');class XcodeManager{static async[_0x1c2922(0x1e9)](_0x10754a,_0x5470b2=![]){const _0x25015f=_0x1c2922,_0x4f2948=resource_1[_0x25015f(0x1ee)]+_0x25015f(0x1da);await xcodeproject_1[_0x25015f(0x1de)][_0x25015f(0x1e6)](_0x4f2948,_0x10754a),console[_0x25015f(0x1f4)](_0x25015f(0x1e2));!fs[_0x25015f(0x1f2)](resource_1[_0x25015f(0x1db)])&&fs['mkdirSync'](resource_1[_0x25015f(0x1db)],{'recursive':!![]});if(!_0x5470b2)await xcodebuild_1['default'][_0x25015f(0x1ec)](_0x10754a['export']);}static async['upload'](_0x20cf3e,_0x3a0520){const _0x4af417=_0x1c2922;if(_0x20cf3e['u']&&_0x20cf3e['p'])xcrun_1[_0x4af417(0x1de)][_0x4af417(0x1dd)]((0x0,path_1[_0x4af417(0x1f5)])(resource_1[_0x4af417(0x1db)],_0x3a0520[_0x4af417(0x1ef)]+'.ipa'),_0x20cf3e['u'],_0x20cf3e['p'],!![]);else _0x20cf3e['k']&&_0x20cf3e['i']&&xcrun_1[_0x4af417(0x1de)][_0x4af417(0x1dd)]((0x0,path_1['join'])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x3a0520['name']+_0x4af417(0x1df)),_0x20cf3e['k'],_0x20cf3e['i'],![]);}static async[_0x1c2922(0x1e3)](_0x1a1206){const _0x620d0b=_0x1c2922;await xcrun_1[_0x620d0b(0x1de)][_0x620d0b(0x1e3)](_0x1a1206);}}exports['XcodeManager']=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x5603(_0x49d746,_0x3a38b0){var _0x10ac70=_0x10ac();return _0x5603=function(_0x5603d1,_0x276887){_0x5603d1=_0x5603d1-0x1ed;var _0x56c6e0=_0x10ac70[_0x5603d1];return _0x56c6e0;},_0x5603(_0x49d746,_0x3a38b0);}var _0x24002c=_0x5603;function _0x10ac(){var _0x537a0a=['defineProperty','31869770fdGJBV','771236xblBFz','\x0aimport\x20Foundation\x0a\x0avar\x20pwaManager\x20=\x20PWAManager()\x0a\x0astruct\x20PWAManager:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20isLocal:\x20Bool\x20=\x20false\x0a\x20\x20\x20\x20var\x20start_url:\x20String\x20=\x20\x22START_URL\x22\x0a\x20\x20\x20\x20var\x20scope:\x20String\x20=\x20\x22SCOPE\x22\x0a\x20\x20\x20\x20var\x20id:\x20String\x20=\x20\x22AppID\x22\x0a\x0a\x20\x20\x20\x20var\x20name:\x20String\x20=\x20\x22AppName\x22\x0a\x20\x20\x20\x20var\x20short_name:\x20String\x20=\x20\x22name\x22\x0a\x20\x20\x20\x20var\x20description:\x20String\x20=\x20\x22Description\x22\x0a\x0a\x20\x20\x20\x20var\x20display:\x20PWADisplayMode\x20=\x20.minimal\x0a\x20\x20\x20\x20var\x20display_override:\x20[PWADisplayMode]\x20=\x20[]\x0a\x20\x20\x20\x20var\x20protocol_handlers:\x20[PWAProtocol]\x20=\x20[PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)]\x0a\x20\x20\x20\x20var\x20mainScene:\x20WindowContainerOptions\x20=\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20defaultSize:\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20SceneWidth,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20SceneHeight\x0a\x20\x20\x20\x20\x20\x20\x20\x20),\x0a\x20\x20\x20\x20\x20\x20\x20\x20resizability:\x20SceneResizability\x0a\x20\x20\x20\x20)\x0a\x20\x20\x20\x20var\x20useMainScene:\x20Bool\x20=\x20USE_MAIN_SCENE\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22file://\x22\x20+\x20Bundle.main.bundlePath\x20+\x20\x22/\x22\x20+\x20scope\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20scope.replacingOccurrences(of:\x20\x22\x20\x22,\x20with:\x20\x22%20\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path:String\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20root:String\x20=\x20String(url.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20params\x20=\x20String(url.split(separator:\x20\x22file://\x22\x20+\x20root).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:String\x20=\x20Bundle.main.url(forResource:\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20params\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a','11uwLqmU','6002296JATdxI','9RxSGru','1433863ahlNTn','3iohCar','__esModule','3470EWbKyN','manifestSwiftTemplate','7570570yRcQdt','12714nzmsvj','4968364vPwTqw'];_0x10ac=function(){return _0x537a0a;};return _0x10ac();}(function(_0x10ec57,_0x1cc4d2){var _0x23add8=_0x5603,_0x345df0=_0x10ec57();while(!![]){try{var _0x35f7b5=-parseInt(_0x23add8(0x1ef))/0x1+-parseInt(_0x23add8(0x1f9))/0x2+-parseInt(_0x23add8(0x1f0))/0x3*(-parseInt(_0x23add8(0x1f6))/0x4)+parseInt(_0x23add8(0x1f2))/0x5*(-parseInt(_0x23add8(0x1f5))/0x6)+-parseInt(_0x23add8(0x1f4))/0x7+-parseInt(_0x23add8(0x1ed))/0x8*(-parseInt(_0x23add8(0x1ee))/0x9)+parseInt(_0x23add8(0x1f8))/0xa*(parseInt(_0x23add8(0x1fb))/0xb);if(_0x35f7b5===_0x1cc4d2)break;else _0x345df0['push'](_0x345df0['shift']());}catch(_0x4d6642){_0x345df0['push'](_0x345df0['shift']());}}}(_0x10ac,0xc5362));Object[_0x24002c(0x1f7)](exports,_0x24002c(0x1f1),{'value':!![]}),exports[_0x24002c(0x1f3)]=void 0x0,exports['manifestSwiftTemplate']=_0x24002c(0x1fa);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0xb5fc(_0x5d8b68,_0xa4276a){const _0x33170e=_0x3317();return _0xb5fc=function(_0xb5fcec,_0x2a037e){_0xb5fcec=_0xb5fcec-0x1de;let _0x33cbc4=_0x33170e[_0xb5fcec];return _0x33cbc4;},_0xb5fc(_0x5d8b68,_0xa4276a);}const _0x188a82=_0xb5fc;(function(_0x23cddd,_0x3918f9){const _0xbaf82c=_0xb5fc,_0x5db7c4=_0x23cddd();while(!![]){try{const _0x58678f=-parseInt(_0xbaf82c(0x1fe))/0x1+parseInt(_0xbaf82c(0x1f1))/0x2+parseInt(_0xbaf82c(0x1f6))/0x3+parseInt(_0xbaf82c(0x20a))/0x4+parseInt(_0xbaf82c(0x1de))/0x5+-parseInt(_0xbaf82c(0x1f0))/0x6+parseInt(_0xbaf82c(0x212))/0x7*(-parseInt(_0xbaf82c(0x1df))/0x8);if(_0x58678f===_0x3918f9)break;else _0x5db7c4['push'](_0x5db7c4['shift']());}catch(_0x23efe1){_0x5db7c4['push'](_0x5db7c4['shift']());}}}(_0x3317,0xe4b11));Object[_0x188a82(0x1fd)](exports,_0x188a82(0x1fc),{'value':!![]}),exports[_0x188a82(0x201)]=void 0x0;const fs=require('fs'),path_1=require(_0x188a82(0x203)),resource_1=require(_0x188a82(0x1ea)),semver_1=require(_0x188a82(0x1e2)),file_1=require(_0x188a82(0x1e7)),{execSync,exec}=require(_0x188a82(0x200));class Xcodebuild{static async[_0x188a82(0x1e8)](){const _0x53d07e=_0x188a82;try{await new Promise((_0x5cfbd1,_0x3caf08)=>{const _0x5870a3=_0xb5fc,_0x126ced=resource_1[_0x5870a3(0x20b)]+_0x5870a3(0x1f5),_0x49d4bf=execSync(new XcodebuildCMD()[_0x5870a3(0x1e8)](_0x126ced)[_0x5870a3(0x1f3)]()['line']);console[_0x5870a3(0x210)](_0x49d4bf[_0x5870a3(0x1f8)]()),_0x5cfbd1(_0x49d4bf);});}catch(_0x540672){console[_0x53d07e(0x210)](_0x540672);}}static async[_0x188a82(0x1f3)](){const _0x7ac1d4=_0x188a82;try{await new Promise((_0xe9f3fc,_0x42cf1c)=>{const _0x1a969a=_0xb5fc,_0x5612a9=resource_1[_0x1a969a(0x20b)]+_0x1a969a(0x1f5),_0x36c581=execSync(new XcodebuildCMD()[_0x1a969a(0x1e8)](_0x5612a9)[_0x1a969a(0x1f3)]()[_0x1a969a(0x204)]);console['log'](_0x36c581[_0x1a969a(0x1f8)]()),_0xe9f3fc(_0x36c581);});}catch(_0x31b92a){console[_0x7ac1d4(0x210)](_0x31b92a);}}static async['archive'](_0xd3696c){const _0x31be94=_0x188a82;try{return console[_0x31be94(0x210)](_0x31be94(0x1e0)),!fs[_0x31be94(0x20c)](resource_1['PROJECT_EXPORT_DIRECTORY'])&&fs[_0x31be94(0x1e5)](resource_1[_0x31be94(0x208)],{'recursive':!![]}),await new Promise((_0x4f7c76,_0x395398)=>{const _0x518b83=_0x31be94,_0x409998=resource_1[_0x518b83(0x20b)]+'/web-spatial.xcodeproj',_0x3b3cab=execSync(new XcodebuildCMD()[_0x518b83(0x1e8)](_0x409998)['scheme']('web-spatial')[_0x518b83(0x1ec)]((0x0,path_1[_0x518b83(0x1e9)])(resource_1[_0x518b83(0x1f9)],'./pack'))['clean']()[_0x518b83(0x204)]);let _0x1792a7=_0x3b3cab['toString']();if(_0x1792a7[_0x518b83(0x213)](_0x518b83(0x1e3))>0x0){console[_0x518b83(0x210)](_0x518b83(0x202)),console[_0x518b83(0x210)](_0x518b83(0x1f7));const _0x171221=execSync(new XcodebuildCMD()[_0x518b83(0x1eb)]((0x0,path_1[_0x518b83(0x1e9)])(resource_1[_0x518b83(0x1f9)],_0x518b83(0x20f)),resource_1[_0x518b83(0x208)],(0x0,path_1[_0x518b83(0x1e9)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x518b83(0x1e6)))['allowProvisioningUpdates']()[_0x518b83(0x204)]);_0x1792a7=_0x171221['toString']();if(_0x1792a7[_0x518b83(0x213)]('EXPORT\x20SUCCEEDED')>0x0){if(_0xd3696c){const _0x4c10ce=(0x0,path_1['join'])(process['cwd'](),_0xd3696c);!fs[_0x518b83(0x20c)](_0x4c10ce)&&fs[_0x518b83(0x1e5)](_0x4c10ce,{'recursive':!![]}),(0x0,file_1[_0x518b83(0x1ef)])(resource_1['PROJECT_EXPORT_DIRECTORY'],_0x4c10ce);}console[_0x518b83(0x210)](_0x518b83(0x1f2)),_0x4f7c76(!![]);}(0x0,semver_1[_0x518b83(0x1fb)])(resource_1[_0x518b83(0x1f9)]);}_0x4f7c76(![]);});}catch(_0x542d6c){console[_0x31be94(0x210)](_0x542d6c);}}}exports[_0x188a82(0x205)]=Xcodebuild;function _0x3317(){const _0x151922=['../resource/file','project','join','../resource','output','archive','\x20-exportPath\x20','destination','copyDir','6315390znDJoN','1707480Ravvif','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','list','\x20-archivePath\x20','/web-spatial.xcodeproj','3686991TgYcoE','start\x20export','toString','PROJECT_BUILD_DIRECTORY','\x20-scheme\x20','clean','__esModule','defineProperty','367193kvlRxe','\x20-exportArchive\x20-archivePath\x20','child_process','XcodebuildCMD','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','path','line','default','\x20archive','\x20-destination\x20\x27','PROJECT_EXPORT_DIRECTORY','\x20-project\x20','4258792sxlmoa','PROJECT_DIRECTORY','existsSync','\x20-allowProvisioningUpdates','xcodebuild','pack.xcarchive','log','\x20-list','541989TydClI','indexOf','9207810ZiETub','272jPOrru','start\x20archive','\x20-exportOptionsPlist\x20','semver','ARCHIVE\x20SUCCEEDED','allowProvisioningUpdates','mkdirSync','ExportOptions.plist'];_0x3317=function(){return _0x151922;};return _0x3317();}class XcodebuildCMD{constructor(){const _0xac32a9=_0x188a82;this[_0xac32a9(0x204)]=_0xac32a9(0x20e);}[_0x188a82(0x1e8)](_0x2f89ad){const _0x44091d=_0x188a82;return this[_0x44091d(0x204)]+=_0x44091d(0x209)+_0x2f89ad,this;}[_0x188a82(0x1f3)](){const _0x397be4=_0x188a82;return this[_0x397be4(0x204)]+=_0x397be4(0x211),this;}['scheme'](_0x386fb1){const _0x1f73db=_0x188a82;return this[_0x1f73db(0x204)]+=_0x1f73db(0x1fa)+_0x386fb1,this;}[_0x188a82(0x1ec)](_0x3b7988){const _0x4e80d0=_0x188a82;return this[_0x4e80d0(0x204)]+=_0x4e80d0(0x1f4)+_0x3b7988+_0x4e80d0(0x206),this;}[_0x188a82(0x1e4)](){const _0x59862f=_0x188a82;return this[_0x59862f(0x204)]+=_0x59862f(0x20d),this;}[_0x188a82(0x1ee)](_0x34c41a){const _0x5031a7=_0x188a82;return this['line']+=_0x5031a7(0x207)+_0x34c41a+'\x27',this;}[_0x188a82(0x1eb)](_0x52a031,_0x2e0a2a,_0x4ca0f5){const _0x13a9f0=_0x188a82;return this[_0x13a9f0(0x204)]+=_0x13a9f0(0x1ff)+_0x52a031+_0x13a9f0(0x1ed)+_0x2e0a2a+_0x13a9f0(0x1e1)+_0x4ca0f5,this;}[_0x188a82(0x1fb)](){const _0x3c5b1d=_0x188a82;return this[_0x3c5b1d(0x204)]+='\x20clean',this;}}exports[_0x188a82(0x201)]=XcodebuildCMD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xe17257=_0x5ec2;function _0xc745(){const _0x3bd75e=['pbxTargetByName','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a','manifestSwiftTemplate','bindIcon','mkdirSync','PROJECT_DIRECTORY','resizability','SceneResizability','updateDeeplink','Contents.json','json','../resource/imageHelper','3696324nMOtaH','existsSync','join','.standalone','updateTeamId','stringify','length','defaultSize','project','BACK_APPICON_DIRECTORY','./web-spatial/libs/webView/manifest.swift','9OCLPjZ','writeFileSync','writeSync','.minimal','path','modifySwift','modify','ExportOptions.plist','xcode','log','url','2943316qvrcbh','pbxXCBuildConfigurationSection','buildType','icon.','loadJsonFromDisk','protocol','Description','../resource','PRODUCT_BUNDLE_IDENTIFIER','ImageHelper','MIDDLE_APPICON_DIRECTORY','getMIME','fixProjectFunction','test','hash','3026807WZoeEE','13358504vWTRZP','PBXGroup','debugging','\x22automatic\x22','PWAProtocol(protocolValue:\x20\x22','buildSettings','icon.png','./web-spatial/Info.plist','updateVersion','icon','updateBuildProperty','\x22,\x20url:\x20\x22','protocol_handlers','object','1280','AppID','mainScene','1.0','CURRENT_PROJECT_VERSION','scope','../resource/load','1153646xYvJVW','enterprise','writeAsync','BUILDTYPE','AppName','<?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>','buildConfigurations','DEVELOPMENT_TEAM','version','PROJECT_BUILD_DIRECTORY','updateProductName','1717710dEBmYt','teamId','start_url','height','3667620qvfQes','SceneWidth','includes','release-testing','parseSync','DEEPLINK','updateExportOptions','pbxGroupByName','pbxXCConfigurationList','name','1hlgZvd','manifestInfo','buildConfigurationList','images','display','default','replace','SceneHeight','bindManifestInfo','./manifestSwiftTemplate','defineProperty'];_0xc745=function(){return _0x3bd75e;};return _0xc745();}function _0x5ec2(_0xbe8f1f,_0x2469f1){const _0xc745e8=_0xc745();return _0x5ec2=function(_0x5ec219,_0x1320ef){_0x5ec219=_0x5ec219-0x156;let _0x1641b7=_0xc745e8[_0x5ec219];return _0x1641b7;},_0x5ec2(_0xbe8f1f,_0x2469f1);}(function(_0x36dfcd,_0x13f4d5){const _0x321d7c=_0x5ec2,_0x568413=_0x36dfcd();while(!![]){try{const _0xfa5a2a=-parseInt(_0x321d7c(0x162))/0x1*(parseInt(_0x321d7c(0x1b4))/0x2)+parseInt(_0x321d7c(0x1bf))/0x3+-parseInt(_0x321d7c(0x18f))/0x4+parseInt(_0x321d7c(0x158))/0x5+-parseInt(_0x321d7c(0x179))/0x6+-parseInt(_0x321d7c(0x19e))/0x7+-parseInt(_0x321d7c(0x19f))/0x8*(-parseInt(_0x321d7c(0x184))/0x9);if(_0xfa5a2a===_0x13f4d5)break;else _0x568413['push'](_0x568413['shift']());}catch(_0x5e6f69){_0x568413['push'](_0x568413['shift']());}}}(_0xc745,0x96190));Object[_0xe17257(0x16c)](exports,'__esModule',{'value':!![]});const fs=require('fs'),resource_1=require(_0xe17257(0x196)),path_1=require(_0xe17257(0x188)),load_1=require(_0xe17257(0x1b3)),imageHelper_1=require(_0xe17257(0x178)),manifestSwiftTemplate_1=require(_0xe17257(0x16b)),xcode=require(_0xe17257(0x18c)),exportOptionsXML=_0xe17257(0x1b9),infoPlistXML=_0xe17257(0x16e);let useExportOptionsXML='';class XcodeProject{static async[_0xe17257(0x18a)](_0x347a2,_0x21a68f){const _0x3b3366=_0xe17257;let _0x310614=xcode[_0x3b3366(0x181)](_0x347a2);this[_0x3b3366(0x19b)](_0x310614),_0x310614[_0x3b3366(0x15c)]();let _0x209928=_0x21a68f[_0x3b3366(0x191)];const _0x1ca37c=[_0x3b3366(0x15b),'app-store-connect',_0x3b3366(0x1a1),_0x3b3366(0x1b5)];useExportOptionsXML=exportOptionsXML[_0x3b3366(0x168)](_0x3b3366(0x1b7),_0x1ca37c[_0x3b3366(0x15a)](_0x209928)?_0x209928:_0x3b3366(0x15b));_0x21a68f[_0x3b3366(0x1c0)]&&this[_0x3b3366(0x17d)](_0x310614,_0x21a68f[_0x3b3366(0x1c0)]);this[_0x3b3366(0x15e)](),await this[_0x3b3366(0x170)](_0x21a68f[_0x3b3366(0x1a8)]),this[_0x3b3366(0x16a)](_0x310614,_0x21a68f[_0x3b3366(0x163)][_0x3b3366(0x177)]);_0x21a68f[_0x3b3366(0x1bc)]?this[_0x3b3366(0x1a7)](_0x310614,_0x21a68f[_0x3b3366(0x1bc)]):this[_0x3b3366(0x1a7)](_0x310614,_0x3b3366(0x1b0));try{fs[_0x3b3366(0x185)](_0x347a2,_0x310614[_0x3b3366(0x186)]());}catch(_0x3c9079){console[_0x3b3366(0x18d)](_0x3c9079);}}static[_0xe17257(0x19b)](_0x30bfb1){const _0x4c09e8=_0xe17257;_0x30bfb1[_0x4c09e8(0x15f)]=function(_0x4a4f68){const _0x960169=_0x4c09e8;var _0x41df9d=this[_0x960169(0x19d)]['project']['objects'][_0x960169(0x1a0)],_0x3dba54,_0x53ca2a;for(_0x3dba54 in _0x41df9d){if(!/_comment$/[_0x960169(0x19c)](_0x3dba54))continue;if(_0x41df9d[_0x3dba54]==_0x4a4f68)return _0x53ca2a=_0x3dba54['split'](/_comment$/)[0x0],_0x41df9d[_0x53ca2a];}return![];},_0x30bfb1[_0x4c09e8(0x1a9)]=function(_0x5135df,_0x5475a1,_0x4fcd3c,_0x17d647){const _0x2934fe=_0x4c09e8;let _0x212610=[];const _0x158231=/_comment$/;if(_0x17d647){const _0x5e7015=this[_0x2934fe(0x16d)](_0x17d647),_0x50dcba=_0x5e7015&&_0x5e7015[_0x2934fe(0x164)],_0x352760=this[_0x2934fe(0x160)]();for(const _0x46e54b in _0x352760){if(!_0x158231['test'](_0x46e54b)&&_0x50dcba===_0x46e54b){const _0xc8c811=_0x352760[_0x46e54b][_0x2934fe(0x1ba)];for(const _0x3690da of _0xc8c811){_0x212610['push'](_0x3690da['value']);}break;}}}var _0x3fe5c8=this[_0x2934fe(0x190)]();for(var _0x20df39 in _0x3fe5c8){if(!_0x158231[_0x2934fe(0x19c)](_0x20df39)){if(_0x17d647&&!_0x212610[_0x2934fe(0x15a)](_0x20df39))continue;var _0x16dea1=_0x3fe5c8[_0x20df39];(_0x4fcd3c&&_0x16dea1[_0x2934fe(0x161)]===_0x4fcd3c||!_0x4fcd3c)&&_0x16dea1[_0x2934fe(0x1a4)][_0x5135df]&&(_0x16dea1[_0x2934fe(0x1a4)][_0x5135df]=_0x5475a1);}}};}static async['bindIcon'](_0x3666fc){const _0x3dc8a0=_0xe17257;if(_0x3666fc){const _0x3e50d8=(0x0,path_1[_0x3dc8a0(0x17b)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x3dc8a0(0x182)]),_0x57da72=(0x0,path_1['join'])(_0x3e50d8,_0x3dc8a0(0x176)),_0x3c3e11=_0x3dc8a0(0x192)+_0x3666fc[_0x3dc8a0(0x19a)]()[_0x3dc8a0(0x168)]('image/',''),_0x4f74f4=(0x0,path_1[_0x3dc8a0(0x17b)])(_0x3e50d8,_0x3c3e11);let _0xada4a2=await(0x0,load_1[_0x3dc8a0(0x193)])(_0x57da72);_0xada4a2[_0x3dc8a0(0x165)][0x0]['filename']=_0x3c3e11,await _0x3666fc[_0x3dc8a0(0x1b6)](_0x4f74f4),await fs[_0x3dc8a0(0x185)](_0x57da72,JSON[_0x3dc8a0(0x17e)](_0xada4a2));const _0xa90163=(0x0,path_1[_0x3dc8a0(0x17b)])(resource_1[_0x3dc8a0(0x172)],resource_1[_0x3dc8a0(0x199)]),_0x2a6351=(0x0,path_1[_0x3dc8a0(0x17b)])(_0xa90163,_0x3dc8a0(0x176)),_0x2cd38d=_0x3dc8a0(0x1a5),_0xa8046=(0x0,path_1['join'])(_0xa90163,_0x2cd38d);let _0x5f3d58=await(0x0,load_1[_0x3dc8a0(0x193)])(_0x2a6351),_0x363aa6=imageHelper_1[_0x3dc8a0(0x198)]['createImg'](0x200);_0x5f3d58[_0x3dc8a0(0x165)][0x0]['filename']=_0x2cd38d,await _0x363aa6[_0x3dc8a0(0x1b6)](_0xa8046),await fs[_0x3dc8a0(0x185)](_0x2a6351,JSON[_0x3dc8a0(0x17e)](_0x5f3d58));}}static[_0xe17257(0x17d)](_0x3955aa,_0x4ef898){const _0xb39f1=_0xe17257;_0x3955aa['updateBuildProperty'](_0xb39f1(0x1bb),_0x4ef898),useExportOptionsXML=useExportOptionsXML[_0xb39f1(0x168)]('YOURTEAMID',_0x4ef898);}static['updateExportOptions'](){const _0x38faf0=_0xe17257;!fs[_0x38faf0(0x17a)](resource_1[_0x38faf0(0x1bd)])&&fs[_0x38faf0(0x171)](resource_1[_0x38faf0(0x1bd)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1['join'])(resource_1[_0x38faf0(0x1bd)],_0x38faf0(0x18b)),useExportOptionsXML);}static['bindManifestInfo'](_0x3f0bff,_0x39b168){const _0xb156a=_0xe17257;var _0x3a9571;_0x3f0bff[_0xb156a(0x1be)](_0x39b168[_0xb156a(0x161)]),_0x3f0bff[_0xb156a(0x1a9)](_0xb156a(0x197),'\x22'+_0x39b168['id']+'\x22'),this[_0xb156a(0x175)]((_0x3a9571=_0x39b168['protocol_handlers'])!==null&&_0x3a9571!==void 0x0?_0x3a9571:[]),this[_0xb156a(0x189)](_0x39b168);}static[_0xe17257(0x1a7)](_0x538a29,_0x54423c){const _0x4839c7=_0xe17257;_0x538a29[_0x4839c7(0x1a9)](_0x4839c7(0x1b1),_0x54423c);}static['updateDeeplink'](_0x347854){const _0x54ede9=_0xe17257;let _0x26233a=(0x0,path_1['join'])(resource_1[_0x54ede9(0x172)],_0x54ede9(0x1a6)),_0x1bbd92='';for(let _0x1f1027=0x0;_0x1f1027<_0x347854[_0x54ede9(0x17f)];_0x1f1027++){_0x1bbd92+='<string>'+_0x347854[_0x1f1027][_0x54ede9(0x194)]+'</string>';}const _0x36c845=infoPlistXML[_0x54ede9(0x168)](_0x54ede9(0x15d),_0x1bbd92);fs[_0x54ede9(0x185)](_0x26233a,_0x36c845);}static['modifySwift'](_0x5ada69){const _0x42239e=_0xe17257,_0x437c37=(0x0,path_1['join'])(resource_1[_0x42239e(0x172)],_0x42239e(0x183));let _0x44df6d=manifestSwiftTemplate_1[_0x42239e(0x16f)];_0x44df6d=_0x44df6d[_0x42239e(0x168)]('START_URL',_0x5ada69[_0x42239e(0x156)]),_0x44df6d=_0x44df6d[_0x42239e(0x168)]('SCOPE',_0x5ada69[_0x42239e(0x1b2)]),_0x44df6d=_0x44df6d['replace'](_0x42239e(0x1b8),_0x5ada69['name']),_0x44df6d=_0x44df6d['replace'](_0x42239e(0x195),_0x5ada69['description']),_0x44df6d=_0x44df6d[_0x42239e(0x168)](_0x42239e(0x1ae),_0x5ada69['id']),_0x44df6d=_0x44df6d['replace'](_0x42239e(0x187),_0x5ada69[_0x42239e(0x166)]=='minimal-ui'?_0x42239e(0x187):_0x42239e(0x17c));if(_0x5ada69['protocol_handlers']){let _0x2378d8='';for(let _0x221ccb=0x0;_0x221ccb<_0x5ada69[_0x42239e(0x1ab)][_0x42239e(0x17f)];_0x221ccb++){_0x2378d8+=_0x42239e(0x1a3)+_0x5ada69['protocol_handlers'][_0x221ccb]['protocol']+_0x42239e(0x1aa)+_0x5ada69[_0x42239e(0x1ab)][_0x221ccb][_0x42239e(0x18e)]+'\x22),';}_0x44df6d=_0x44df6d[_0x42239e(0x168)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x2378d8);}typeof _0x5ada69[_0x42239e(0x1af)]===_0x42239e(0x1ac)?(_0x44df6d=_0x44df6d[_0x42239e(0x168)](_0x42239e(0x159),_0x5ada69['mainScene'][_0x42239e(0x180)]['width']),_0x44df6d=_0x44df6d[_0x42239e(0x168)]('SceneHeight',_0x5ada69[_0x42239e(0x1af)][_0x42239e(0x180)][_0x42239e(0x157)]),_0x44df6d=_0x44df6d[_0x42239e(0x168)](_0x42239e(0x174),'\x22'+_0x5ada69['mainScene'][_0x42239e(0x173)]+'\x22'),_0x44df6d=_0x44df6d[_0x42239e(0x168)]('USE_MAIN_SCENE','true')):(_0x44df6d=_0x44df6d[_0x42239e(0x168)](_0x42239e(0x159),_0x42239e(0x1ad)),_0x44df6d=_0x44df6d[_0x42239e(0x168)](_0x42239e(0x169),_0x42239e(0x1ad)),_0x44df6d=_0x44df6d['replace'](_0x42239e(0x174),_0x42239e(0x1a2)),_0x44df6d=_0x44df6d[_0x42239e(0x168)]('USE_MAIN_SCENE','false')),fs[_0x42239e(0x185)](_0x437c37,_0x44df6d,'utf-8');}}exports[_0xe17257(0x167)]=XcodeProject;
|
|
1
|
+
'use strict';function _0x448c(){const _0x4434a0=['BACK_APPICON_DIRECTORY','pbxTargetByName','resizability','1280','false','mkdirSync','SceneHeight','includes','protocol','SceneWidth','PROJECT_BUILD_DIRECTORY','icon.png','icon','enterprise','\x22),','stringify','MIDDLE_APPICON_DIRECTORY','length','303635BUvAUj','AppID','pbxXCBuildConfigurationSection','START_URL','manifestSwiftTemplate','objects','width','\x22,\x20url:\x20\x22','scope','11496oEweet','PBXGroup','325814rJHuXM','53290xBLLFa','display','buildConfigurations','release-testing','SceneResizability','updateTeamId','modify','image/','defaultSize','../resource','writeFileSync','475878YZnTZh','1384075czQlrk','loadJsonFromDisk','updateProductName','2310240LXUhXU','YOURTEAMID','project','USE_MAIN_SCENE','SCOPE','891CWvzpp','push','ExportOptions.plist','test','replace','modifySwift','protocol_handlers','54HdLQbn','writeAsync','<string>','app-store-connect','4EjsheX','defineProperty','updateBuildProperty','fixProjectFunction','manifestInfo','join','hash','buildConfigurationList','./web-spatial/Info.plist','../resource/load','teamId','path','.standalone','updateVersion','existsSync','buildSettings','object','mainScene','getMIME','60pblzXL','updateDeeplink','icon.','\x22automatic\x22','AppName','log','pbxGroupByName','</string>','__esModule','filename','images','debugging','./manifestSwiftTemplate','buildType','updateExportOptions','2009ingJbv','version','minimal-ui','./web-spatial/libs/webView/manifest.swift','pbxXCConfigurationList','.minimal','start_url','createImg','name','url','<?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>','bindIcon','DEEPLINK','Contents.json','bindManifestInfo','PROJECT_DIRECTORY','../resource/imageHelper','writeSync'];_0x448c=function(){return _0x4434a0;};return _0x448c();}const _0x5a9efa=_0x497b;(function(_0x519a23,_0x157a13){const _0x5a0fa0=_0x497b,_0x5cd4ba=_0x519a23();while(!![]){try{const _0x14b697=parseInt(_0x5a0fa0(0x117))/0x1*(parseInt(_0x5a0fa0(0x137))/0x2)+parseInt(_0x5a0fa0(0x123))/0x3+parseInt(_0x5a0fa0(0x127))/0x4+-parseInt(_0x5a0fa0(0x10c))/0x5*(parseInt(_0x5a0fa0(0x133))/0x6)+parseInt(_0x5a0fa0(0xe8))/0x7*(-parseInt(_0x5a0fa0(0x115))/0x8)+-parseInt(_0x5a0fa0(0x12c))/0x9*(-parseInt(_0x5a0fa0(0x118))/0xa)+-parseInt(_0x5a0fa0(0x124))/0xb*(parseInt(_0x5a0fa0(0x14a))/0xc);if(_0x14b697===_0x157a13)break;else _0x5cd4ba['push'](_0x5cd4ba['shift']());}catch(_0x409499){_0x5cd4ba['push'](_0x5cd4ba['shift']());}}}(_0x448c,0x4fe82));function _0x497b(_0x92894f,_0x1bfb7a){const _0x448c9f=_0x448c();return _0x497b=function(_0x497bb9,_0x2daca1){_0x497bb9=_0x497bb9-0xe3;let _0x229ddd=_0x448c9f[_0x497bb9];return _0x229ddd;},_0x497b(_0x92894f,_0x1bfb7a);}Object[_0x5a9efa(0x138)](exports,_0x5a9efa(0x152),{'value':!![]});const fs=require('fs'),resource_1=require(_0x5a9efa(0x121)),path_1=require(_0x5a9efa(0x142)),load_1=require(_0x5a9efa(0x140)),imageHelper_1=require(_0x5a9efa(0xf8)),manifestSwiftTemplate_1=require(_0x5a9efa(0xe5)),xcode=require('xcode'),exportOptionsXML=_0x5a9efa(0xf2),infoPlistXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a';let useExportOptionsXML='';class XcodeProject{static async[_0x5a9efa(0x11e)](_0x2e1534,_0x28c067){const _0x3a3bf5=_0x5a9efa;let _0x1dc741=xcode[_0x3a3bf5(0x129)](_0x2e1534);this[_0x3a3bf5(0x13a)](_0x1dc741),_0x1dc741['parseSync']();let _0x219399=_0x28c067[_0x3a3bf5(0xe6)];const _0x2bd3e5=['release-testing',_0x3a3bf5(0x136),_0x3a3bf5(0xe4),_0x3a3bf5(0x107)];useExportOptionsXML=exportOptionsXML[_0x3a3bf5(0x130)]('BUILDTYPE',_0x2bd3e5[_0x3a3bf5(0x101)](_0x219399)?_0x219399:_0x3a3bf5(0x11b));_0x28c067['teamId']&&this['updateTeamId'](_0x1dc741,_0x28c067[_0x3a3bf5(0x141)]);this[_0x3a3bf5(0xe7)](),await this['bindIcon'](_0x28c067[_0x3a3bf5(0x106)]),this[_0x3a3bf5(0xf6)](_0x1dc741,_0x28c067[_0x3a3bf5(0x13b)]['json']);_0x28c067[_0x3a3bf5(0xe9)]?this['updateVersion'](_0x1dc741,_0x28c067[_0x3a3bf5(0xe9)]):this[_0x3a3bf5(0x144)](_0x1dc741,'1.0');try{fs['writeFileSync'](_0x2e1534,_0x1dc741[_0x3a3bf5(0xf9)]());}catch(_0x45fd00){console[_0x3a3bf5(0x14f)](_0x45fd00);}}static['fixProjectFunction'](_0x51896f){const _0x54f45b=_0x5a9efa;_0x51896f[_0x54f45b(0x150)]=function(_0xf2544e){const _0x31dd17=_0x54f45b;var _0x470484=this[_0x31dd17(0x13d)][_0x31dd17(0x129)][_0x31dd17(0x111)][_0x31dd17(0x116)],_0x5d32f5,_0x537ccd;for(_0x5d32f5 in _0x470484){if(!/_comment$/[_0x31dd17(0x12f)](_0x5d32f5))continue;if(_0x470484[_0x5d32f5]==_0xf2544e)return _0x537ccd=_0x5d32f5['split'](/_comment$/)[0x0],_0x470484[_0x537ccd];}return![];},_0x51896f[_0x54f45b(0x139)]=function(_0x161cd4,_0x3e15d2,_0x33b699,_0x159ee8){const _0x59eaa9=_0x54f45b;let _0x39a8d3=[];const _0x96bda=/_comment$/;if(_0x159ee8){const _0x4d40bb=this[_0x59eaa9(0xfb)](_0x159ee8),_0xb9ad0e=_0x4d40bb&&_0x4d40bb[_0x59eaa9(0x13e)],_0x51e78c=this[_0x59eaa9(0xec)]();for(const _0x4700d6 in _0x51e78c){if(!_0x96bda[_0x59eaa9(0x12f)](_0x4700d6)&&_0xb9ad0e===_0x4700d6){const _0x3e8ebd=_0x51e78c[_0x4700d6][_0x59eaa9(0x11a)];for(const _0x5e643a of _0x3e8ebd){_0x39a8d3[_0x59eaa9(0x12d)](_0x5e643a['value']);}break;}}}var _0x144000=this[_0x59eaa9(0x10e)]();for(var _0x6dd61f in _0x144000){if(!_0x96bda[_0x59eaa9(0x12f)](_0x6dd61f)){if(_0x159ee8&&!_0x39a8d3['includes'](_0x6dd61f))continue;var _0x3b5c44=_0x144000[_0x6dd61f];(_0x33b699&&_0x3b5c44[_0x59eaa9(0xf0)]===_0x33b699||!_0x33b699)&&_0x3b5c44[_0x59eaa9(0x146)][_0x161cd4]&&(_0x3b5c44[_0x59eaa9(0x146)][_0x161cd4]=_0x3e15d2);}}};}static async[_0x5a9efa(0xf3)](_0x50f9e8){const _0x142edd=_0x5a9efa;if(_0x50f9e8){const _0x20f247=(0x0,path_1[_0x142edd(0x13c)])(resource_1[_0x142edd(0xf7)],resource_1[_0x142edd(0xfa)]),_0x1719e6=(0x0,path_1[_0x142edd(0x13c)])(_0x20f247,_0x142edd(0xf5)),_0x45c8bb=_0x142edd(0x14c)+_0x50f9e8[_0x142edd(0x149)]()[_0x142edd(0x130)](_0x142edd(0x11f),''),_0x149b99=(0x0,path_1[_0x142edd(0x13c)])(_0x20f247,_0x45c8bb);let _0x53ef50=await(0x0,load_1[_0x142edd(0x125)])(_0x1719e6);_0x53ef50['images'][0x0][_0x142edd(0x153)]=_0x45c8bb,await _0x50f9e8[_0x142edd(0x134)](_0x149b99),await fs[_0x142edd(0x122)](_0x1719e6,JSON['stringify'](_0x53ef50));const _0x2e3980=(0x0,path_1[_0x142edd(0x13c)])(resource_1[_0x142edd(0xf7)],resource_1[_0x142edd(0x10a)]),_0x310290=(0x0,path_1[_0x142edd(0x13c)])(_0x2e3980,'Contents.json'),_0x598516=_0x142edd(0x105),_0x4b8ef3=(0x0,path_1[_0x142edd(0x13c)])(_0x2e3980,_0x598516);let _0x5a834f=await(0x0,load_1['loadJsonFromDisk'])(_0x310290),_0x16a8c9=imageHelper_1['ImageHelper'][_0x142edd(0xef)](0x200);_0x5a834f[_0x142edd(0xe3)][0x0][_0x142edd(0x153)]=_0x598516,await _0x16a8c9[_0x142edd(0x134)](_0x4b8ef3),await fs[_0x142edd(0x122)](_0x310290,JSON[_0x142edd(0x109)](_0x5a834f));}}static[_0x5a9efa(0x11d)](_0x3789d8,_0x10fb90){const _0xfc3672=_0x5a9efa;_0x3789d8[_0xfc3672(0x139)]('DEVELOPMENT_TEAM',_0x10fb90),useExportOptionsXML=useExportOptionsXML['replace'](_0xfc3672(0x128),_0x10fb90);}static[_0x5a9efa(0xe7)](){const _0x57973e=_0x5a9efa;!fs[_0x57973e(0x145)](resource_1[_0x57973e(0x104)])&&fs[_0x57973e(0xff)](resource_1[_0x57973e(0x104)],{'recursive':!![]}),fs[_0x57973e(0x122)]((0x0,path_1[_0x57973e(0x13c)])(resource_1[_0x57973e(0x104)],_0x57973e(0x12e)),useExportOptionsXML);}static[_0x5a9efa(0xf6)](_0x23ad54,_0x2cfe7f){const _0x2878f6=_0x5a9efa;var _0x3adc62;_0x23ad54[_0x2878f6(0x126)](_0x2cfe7f[_0x2878f6(0xf0)]),_0x23ad54['updateBuildProperty']('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x2cfe7f['id']+'\x22'),this[_0x2878f6(0x14b)]((_0x3adc62=_0x2cfe7f[_0x2878f6(0x132)])!==null&&_0x3adc62!==void 0x0?_0x3adc62:[]),this[_0x2878f6(0x131)](_0x2cfe7f);}static[_0x5a9efa(0x144)](_0x601532,_0x4a36f1){const _0x1d8a7a=_0x5a9efa;_0x601532[_0x1d8a7a(0x139)]('CURRENT_PROJECT_VERSION',_0x4a36f1);}static[_0x5a9efa(0x14b)](_0x1a05d8){const _0x59c113=_0x5a9efa;let _0x3862e6=(0x0,path_1[_0x59c113(0x13c)])(resource_1[_0x59c113(0xf7)],_0x59c113(0x13f)),_0x5afc0b='';for(let _0x5d67c1=0x0;_0x5d67c1<_0x1a05d8['length'];_0x5d67c1++){_0x5afc0b+=_0x59c113(0x135)+_0x1a05d8[_0x5d67c1]['protocol']+_0x59c113(0x151);}const _0x269ee7=infoPlistXML['replace'](_0x59c113(0xf4),_0x5afc0b);fs[_0x59c113(0x122)](_0x3862e6,_0x269ee7);}static[_0x5a9efa(0x131)](_0x56a9a4){const _0x3635e7=_0x5a9efa,_0x21af6b=(0x0,path_1[_0x3635e7(0x13c)])(resource_1[_0x3635e7(0xf7)],_0x3635e7(0xeb));let _0x249816=manifestSwiftTemplate_1[_0x3635e7(0x110)];_0x249816=_0x249816['replace'](_0x3635e7(0x10f),_0x56a9a4[_0x3635e7(0xee)]),_0x249816=_0x249816['replace'](_0x3635e7(0x12b),_0x56a9a4[_0x3635e7(0x114)]),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x14e),_0x56a9a4[_0x3635e7(0xf0)]),_0x249816=_0x249816[_0x3635e7(0x130)]('Description',_0x56a9a4['description']),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x10d),_0x56a9a4['id']),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0xed),_0x56a9a4[_0x3635e7(0x119)]==_0x3635e7(0xea)?_0x3635e7(0xed):_0x3635e7(0x143));if(_0x56a9a4[_0x3635e7(0x132)]){let _0x49f5da='';for(let _0x117943=0x0;_0x117943<_0x56a9a4[_0x3635e7(0x132)][_0x3635e7(0x10b)];_0x117943++){_0x49f5da+='PWAProtocol(protocolValue:\x20\x22'+_0x56a9a4['protocol_handlers'][_0x117943][_0x3635e7(0x102)]+_0x3635e7(0x113)+_0x56a9a4['protocol_handlers'][_0x117943][_0x3635e7(0xf1)]+_0x3635e7(0x108);}_0x249816=_0x249816[_0x3635e7(0x130)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x49f5da);}typeof _0x56a9a4['mainScene']===_0x3635e7(0x147)?(_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x103),_0x56a9a4['mainScene']['defaultSize'][_0x3635e7(0x112)]),_0x249816=_0x249816[_0x3635e7(0x130)]('SceneHeight',_0x56a9a4[_0x3635e7(0x148)][_0x3635e7(0x120)]['height']),_0x249816=_0x249816['replace'](_0x3635e7(0x11c),'\x22'+_0x56a9a4[_0x3635e7(0x148)][_0x3635e7(0xfc)]+'\x22'),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x12a),'true')):(_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x103),'1280'),_0x249816=_0x249816[_0x3635e7(0x130)](_0x3635e7(0x100),_0x3635e7(0xfd)),_0x249816=_0x249816[_0x3635e7(0x130)]('SceneResizability',_0x3635e7(0x14d)),_0x249816=_0x249816[_0x3635e7(0x130)]('USE_MAIN_SCENE',_0x3635e7(0xfe))),fs['writeFileSync'](_0x21af6b,_0x249816,'utf-8');}}exports['default']=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x559998=_0x2f29;(function(_0x54d6cf,_0x140668){const _0x4264ad=_0x2f29,_0x11f4e5=_0x54d6cf();while(!![]){try{const _0x42701a=parseInt(_0x4264ad(0x127))/0x1*(-parseInt(_0x4264ad(0x135))/0x2)+parseInt(_0x4264ad(0x143))/0x3+-parseInt(_0x4264ad(0x12f))/0x4*(parseInt(_0x4264ad(0x13e))/0x5)+-parseInt(_0x4264ad(0x13a))/0x6+-parseInt(_0x4264ad(0x140))/0x7+-parseInt(_0x4264ad(0x10a))/0x8*(parseInt(_0x4264ad(0x14a))/0x9)+-parseInt(_0x4264ad(0x138))/0xa*(-parseInt(_0x4264ad(0x14c))/0xb);if(_0x42701a===_0x140668)break;else _0x11f4e5['push'](_0x11f4e5['shift']());}catch(_0x490034){_0x11f4e5['push'](_0x11f4e5['shift']());}}}(_0x4716,0x8939a));function _0x4716(){const _0xec1a9d=['trim','253192OoQqNm','\x20--apiIssuer\x20','Apple\x20Vision\x20Pro','3588820NUTSnh','no\x20visionOS\x20simulator\x20found','3561432TmAqba','length','default','list','3849595ozQBgB','verbose','1478246VCEqqq','includes','platform','105438XgOegC','\x20-p\x20','simctl','start\x20building','/test','toString','PROJECT_BUILD_DIRECTORY','9ikZSFP','state','88qaXXVE','split','join','\x20shutdown\x20booted','authApi','\x20launch\x20\x22','uploadApp','\x20--validate-app\x20-f\x20','\x20--apiKey\x20','log','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','name','Shutdown','--\x20visionOS','install','4130136KwdOLN','Booted','appleId','mkdirSync','defineProperty','path','\x20--apple-id\x20','\x20-u\x20','authAccount','xcrun','existsSync','/web-spatial.xcodeproj','\x20--upload-package\x20','\x20altool','line','shutdown','build\x20success','\x20boot\x20\x22','--\x20','altool','PROJECT_DIRECTORY','uploadPackage','\x22\x20\x22','parseListDevices','project','install\x20success','\x20--verbose','validate','child_process','2vQqBrX','\x20--bundle-version\x20','\x20list','deviceId','execSync','find\x20simulator:\x20','launch','visionos','4LEEYmY','launch\x20app','boot','listDevices','Build/Products/Debug-xrsimulator/'];_0x4716=function(){return _0xec1a9d;};return _0x4716();}Object[_0x559998(0x10e)](exports,'__esModule',{'value':!![]});function _0x2f29(_0x4652ea,_0x643b4e){const _0x4716ae=_0x4716();return _0x2f29=function(_0x2f2932,_0x139094){_0x2f2932=_0x2f2932-0x102;let _0xcf36bb=_0x4716ae[_0x2f2932];return _0xcf36bb;},_0x2f29(_0x4652ea,_0x643b4e);}const child_process_1=require(_0x559998(0x126)),resource_1=require('../resource'),path_1=require(_0x559998(0x10f)),fs=require('fs'),xcodebuild_1=require('./xcodebuild');class Xcrun{static async[_0x559998(0x125)](_0x1653b7,_0x577457,_0x477653,_0x4faab2){const _0xb0a0c2=_0x559998,_0x5f05be=new XcrunCMD()['altool']();_0x5f05be['validate'](_0x1653b7);_0x4faab2?_0x5f05be['authAccount'](_0x577457,_0x477653):_0x5f05be['authApi'](_0x577457,_0x477653);_0x5f05be[_0xb0a0c2(0x142)]('visionos');const _0x36a0c2=(0x0,child_process_1['execSync'])(_0x5f05be[_0xb0a0c2(0x118)]);return _0x36a0c2[_0xb0a0c2(0x148)]();}static async[_0x559998(0x11f)](_0x51bfd3,_0x5db108,_0x32a56e,_0x3ae919,_0x394713){const _0x1f2e00=_0x559998,_0x37b564=new XcrunCMD()[_0x1f2e00(0x11d)]();_0x37b564[_0x1f2e00(0x11f)](_0x51bfd3);_0x394713?_0x37b564['authAccount'](_0x5db108,_0x32a56e):_0x37b564[_0x1f2e00(0x150)](_0x5db108,_0x32a56e);_0x37b564[_0x1f2e00(0x142)](_0x1f2e00(0x12e)),_0x37b564['appleId'](_0x3ae919);const _0x546791=(0x0,child_process_1['execSync'])(_0x37b564['line']);return _0x546791[_0x1f2e00(0x148)]();}static async['uploadApp'](_0x118e97,_0x57183d,_0x1eb41d,_0x2b9b72){const _0x102573=_0x559998,_0x4d7128=new XcrunCMD()[_0x102573(0x11d)]();_0x4d7128[_0x102573(0x152)](_0x118e97);_0x2b9b72?_0x4d7128['authAccount'](_0x57183d,_0x1eb41d):_0x4d7128[_0x102573(0x150)](_0x57183d,_0x1eb41d);_0x4d7128['platform'](_0x102573(0x12e));const _0x385a10=(0x0,child_process_1[_0x102573(0x12b)])(_0x4d7128[_0x102573(0x118)]);return _0x385a10[_0x102573(0x148)]();}static async['runWithSimulator'](_0x2af9f1){const _0x6e94ec=_0x559998;let _0xef85ae=new XcrunCMD()[_0x6e94ec(0x145)]();_0xef85ae[_0x6e94ec(0x132)](_0x6e94ec(0x137));const _0x93f61e=(0x0,child_process_1[_0x6e94ec(0x12b)])(_0xef85ae['line']),_0x68535e=this[_0x6e94ec(0x121)](_0x93f61e[_0x6e94ec(0x148)]());if(_0x68535e['length']===0x0)throw new Error(_0x6e94ec(0x139));let _0x42a115=_0x68535e[0x0];for(let _0xd50085=0x0;_0xd50085<_0x68535e[_0x6e94ec(0x13b)];_0xd50085++){if(_0x68535e[_0xd50085][_0x6e94ec(0x14b)]===_0x6e94ec(0x10b)){_0x42a115=_0x68535e[_0xd50085];break;}}console['log'](_0x6e94ec(0x12c)+_0x42a115[_0x6e94ec(0x12a)]);const _0x42ab67=resource_1[_0x6e94ec(0x11e)]+_0x6e94ec(0x115),_0x57f769=resource_1[_0x6e94ec(0x149)]+_0x6e94ec(0x147);!fs[_0x6e94ec(0x114)](resource_1[_0x6e94ec(0x149)])&&fs[_0x6e94ec(0x10d)](resource_1[_0x6e94ec(0x149)],{'recursive':!![]});!fs[_0x6e94ec(0x114)](_0x57f769)&&fs[_0x6e94ec(0x10d)](_0x57f769,{'recursive':!![]});const _0x35f3dd=new xcodebuild_1['XcodebuildCMD']()[_0x6e94ec(0x122)](_0x42ab67)[_0x6e94ec(0x118)]+(_0x6e94ec(0x105)+_0x42a115['deviceId']+'\x27\x20-derivedDataPath\x20'+_0x57f769);console[_0x6e94ec(0x104)](_0x6e94ec(0x146)),(0x0,child_process_1[_0x6e94ec(0x12b)])(_0x35f3dd),console[_0x6e94ec(0x104)](_0x6e94ec(0x11a));_0x42a115[_0x6e94ec(0x14b)]===_0x6e94ec(0x107)&&(_0xef85ae=new XcrunCMD()[_0x6e94ec(0x145)](),_0xef85ae[_0x6e94ec(0x131)](_0x42a115['deviceId']),(0x0,child_process_1[_0x6e94ec(0x12b)])(_0xef85ae['line']));(0x0,child_process_1[_0x6e94ec(0x12b)])('open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/'),console[_0x6e94ec(0x104)]('installing\x20app');const _0x2527a6=(0x0,path_1[_0x6e94ec(0x14e)])(_0x57f769,_0x6e94ec(0x133)+_0x2af9f1[_0x6e94ec(0x106)]+'.app');_0xef85ae=new XcrunCMD()[_0x6e94ec(0x145)](),_0xef85ae[_0x6e94ec(0x109)](_0x42a115[_0x6e94ec(0x12a)],_0x2527a6),(0x0,child_process_1['execSync'])(_0xef85ae[_0x6e94ec(0x118)]),console[_0x6e94ec(0x104)](_0x6e94ec(0x123)),console['log'](_0x6e94ec(0x130)),_0xef85ae=new XcrunCMD()[_0x6e94ec(0x145)](),_0xef85ae[_0x6e94ec(0x12d)](_0x42a115['deviceId'],_0x2af9f1['id']),(0x0,child_process_1[_0x6e94ec(0x12b)])(_0xef85ae[_0x6e94ec(0x118)]);}static[_0x559998(0x121)](_0x4f0d4c){const _0x2858fb=_0x559998;let _0x3eaea4=_0x4f0d4c['split']('\x0a'),_0x48d8fe=[],_0x26b7ee=-0x1;for(let _0x41ee30=0x0;_0x41ee30<_0x3eaea4[_0x2858fb(0x13b)];_0x41ee30++){if(_0x3eaea4[_0x41ee30][_0x2858fb(0x141)](_0x2858fb(0x108)))_0x26b7ee=_0x41ee30;else{if(_0x26b7ee>0x0){if(_0x3eaea4[_0x41ee30][_0x2858fb(0x141)](_0x2858fb(0x11c)))break;if(_0x3eaea4[_0x41ee30]['length']>0x0){const _0x2c8f7b=_0x3eaea4[_0x41ee30][_0x2858fb(0x14d)]('('),_0x22e8a1={'name':_0x2c8f7b[0x0][_0x2858fb(0x134)](),'deviceId':_0x2c8f7b[0x1][_0x2858fb(0x14d)](')')[0x0][_0x2858fb(0x134)](),'state':_0x2c8f7b[0x2]['split'](')')[0x0][_0x2858fb(0x134)]()};_0x48d8fe['push'](_0x22e8a1);}}}}return _0x48d8fe;}}exports[_0x559998(0x13c)]=Xcrun;class XcrunCMD{constructor(){const _0xd66a28=_0x559998;this['line']=_0xd66a28(0x113);}[_0x559998(0x11d)](){const _0x148e53=_0x559998;return this[_0x148e53(0x118)]+=_0x148e53(0x117),this;}[_0x559998(0x145)](){return this['line']+='\x20simctl',this;}[_0x559998(0x13d)](){const _0x513f08=_0x559998;return this[_0x513f08(0x118)]+=_0x513f08(0x129),this;}[_0x559998(0x132)](_0xf87ad9){const _0x9728f9=_0x559998;return this[_0x9728f9(0x118)]+='\x20list\x20devices\x20\x22'+_0xf87ad9+'\x22',this;}['validate'](_0x4df3a9){const _0x1758d=_0x559998;return this[_0x1758d(0x118)]+=_0x1758d(0x102)+_0x4df3a9,this;}[_0x559998(0x152)](_0x16ef8d){const _0x1a0eb0=_0x559998;return this[_0x1a0eb0(0x118)]+='\x20--upload-app\x20-f\x20'+_0x16ef8d,this;}[_0x559998(0x11f)](_0x59ac77){const _0x5a128e=_0x559998;return this[_0x5a128e(0x118)]+=_0x5a128e(0x116)+_0x59ac77,this;}[_0x559998(0x112)](_0x4ee7b2,_0x344c96){const _0x54007a=_0x559998;return this['line']+=_0x54007a(0x111)+_0x4ee7b2+_0x54007a(0x144)+_0x344c96,this;}['authApi'](_0xfd54,_0x20e152){const _0x37841a=_0x559998;return this[_0x37841a(0x118)]+=_0x37841a(0x103)+_0xfd54+_0x37841a(0x136)+_0x20e152,this;}[_0x559998(0x10c)](_0x1eae79){const _0xcabdf5=_0x559998;return this['line']+=_0xcabdf5(0x110)+_0x1eae79,this;}[_0x559998(0x142)](_0x1266b7){const _0x383b25=_0x559998;return this[_0x383b25(0x118)]+='\x20-t\x20'+_0x1266b7,this;}['version'](_0x12378b){const _0x2029dc=_0x559998;return this[_0x2029dc(0x118)]+=_0x2029dc(0x128)+_0x12378b,this;}[_0x559998(0x13f)](){const _0x49a4e5=_0x559998;return this['line']+=_0x49a4e5(0x124),this;}[_0x559998(0x119)](){const _0x2c4664=_0x559998;return this[_0x2c4664(0x118)]+=_0x2c4664(0x14f),this;}['boot'](_0x1c0ca6){const _0x17a841=_0x559998;return this['line']+=_0x17a841(0x11b)+_0x1c0ca6+'\x22',this;}[_0x559998(0x109)](_0x6ab6e7,_0x314bf1){const _0x454167=_0x559998;return this[_0x454167(0x118)]+='\x20install\x20\x22'+_0x6ab6e7+_0x454167(0x120)+_0x314bf1+'\x22',this;}['launch'](_0x5190c0,_0x41de1c){const _0x16cfd4=_0x559998;return this[_0x16cfd4(0x118)]+=_0x16cfd4(0x151)+_0x5190c0+_0x16cfd4(0x120)+_0x41de1c+'\x22',this;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -60,10 +60,11 @@
|
|
|
60
60
|
"registry": "https://registry.npmjs.org"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
|
+
"start": "tsc -w",
|
|
63
64
|
"test1": "npm run build && bin/bundlepwa.js build --manifest=../testLocal/manifest.json --project=../testLocal --export=./export --version=1.0 --teamId=teamId",
|
|
64
65
|
"test2": "npm run build && bin/bundlepwa.js publish --manifest=../pack-test/pwa_test.json --project=../pack-test --version=1.0 --teamId=teamId --u=username --p=password",
|
|
65
66
|
"test3": "npm run build && bin/bundlepwa.js publish --name=webspatial --version=1.0 --u=username --p=password",
|
|
66
|
-
"test4": "npm run build && bin/bundlepwa.js
|
|
67
|
+
"test4": "npm run build && bin/bundlepwa.js run --manifest=../pack-test/pwa_test.json --project=../pack-test --base-url=./",
|
|
67
68
|
"obfuscate": "node obfuscate.js",
|
|
68
69
|
"build": "tsc && npm run obfuscate",
|
|
69
70
|
"build1": "rollup -c ./rollup.config.js",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>RealityKitContent.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>1</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"pathsToIds": {
|
|
3
|
-
"/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/GridMaterial.usda": "CB766F92-EE55-4A63-9401-E7B8C009764D",
|
|
4
|
-
"/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda": "65F6F990-A780-4474-B78B-572E0E4E273D",
|
|
5
|
-
"/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda": "0A9B4653-B11E-4D6A-850E-C6FCB621626C",
|
|
6
|
-
"/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Untitled Scene.usda": "D560BB77-AAF3-4BDE-B7C4-989332A4688B",
|
|
7
|
-
"RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/GridMaterial.usda": "66168B71-AB05-424E-8B6C-D33D6E61B08F",
|
|
8
|
-
"RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda": "AF09ED6F-1707-48FD-8720-65B998362C09",
|
|
9
|
-
"RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda": "D66134B1-3681-4A8E-AFE5-29F257229F3B"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"0A9B4653-B11E-4D6A-850E-C6FCB621626C": {
|
|
3
|
-
"cameraTransform": [
|
|
4
|
-
1, 0, 0, 0, 0, 0.86602545, -0.49999994, 0, 0, 0.49999994, 0.86602545, 0,
|
|
5
|
-
0.0035969093, 0.35542378, 0.62919164, 1
|
|
6
|
-
],
|
|
7
|
-
"objectMetadataList": [
|
|
8
|
-
["0A9B4653-B11E-4D6A-850E-C6FCB621626C", "Root"],
|
|
9
|
-
{
|
|
10
|
-
"isExpanded": true,
|
|
11
|
-
"isLocked": false
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"65F6F990-A780-4474-B78B-572E0E4E273D": {
|
|
16
|
-
"cameraTransform": [
|
|
17
|
-
1, 0, -0, 0, -0, 0.86602545, -0.49999988, 0, 0, 0.49999988, 0.86602545, 0,
|
|
18
|
-
1.1972517e-8, 2.6179132, 0.43191218, 1
|
|
19
|
-
],
|
|
20
|
-
"objectMetadataList": [
|
|
21
|
-
["65F6F990-A780-4474-B78B-572E0E4E273D", "Root"],
|
|
22
|
-
{
|
|
23
|
-
"isExpanded": true,
|
|
24
|
-
"isLocked": false
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"66168B71-AB05-424E-8B6C-D33D6E61B08F": {
|
|
29
|
-
"cameraTransform": [
|
|
30
|
-
1, 0, -0, 0, -0, 0.8660254, -0.5, 0, 0, 0.5, 0.8660254, 0, 0, 0.23875366,
|
|
31
|
-
0.4135335, 1
|
|
32
|
-
],
|
|
33
|
-
"objectMetadataList": [
|
|
34
|
-
["66168B71-AB05-424E-8B6C-D33D6E61B08F", "Root"],
|
|
35
|
-
{
|
|
36
|
-
"isExpanded": true,
|
|
37
|
-
"isLocked": false
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"AF09ED6F-1707-48FD-8720-65B998362C09": {
|
|
42
|
-
"cameraTransform": [
|
|
43
|
-
1, 0, -0, 0, -0, 0.7071069, -0.7071067, 0, 0, 0.7071067, 0.7071069, 0, 0,
|
|
44
|
-
2.8836339, -0.107588194, 1
|
|
45
|
-
],
|
|
46
|
-
"objectMetadataList": [
|
|
47
|
-
["AF09ED6F-1707-48FD-8720-65B998362C09", "Root"],
|
|
48
|
-
{
|
|
49
|
-
"isExpanded": true,
|
|
50
|
-
"isLocked": false
|
|
51
|
-
},
|
|
52
|
-
["AF09ED6F-1707-48FD-8720-65B998362C09", "Root", "Sphere_Left"],
|
|
53
|
-
{
|
|
54
|
-
"isExpanded": true,
|
|
55
|
-
"isLocked": false
|
|
56
|
-
},
|
|
57
|
-
["AF09ED6F-1707-48FD-8720-65B998362C09", "Root", "Sphere_Right"],
|
|
58
|
-
{
|
|
59
|
-
"isExpanded": true,
|
|
60
|
-
"isLocked": false
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"CB766F92-EE55-4A63-9401-E7B8C009764D": {
|
|
65
|
-
"cameraTransform": [
|
|
66
|
-
1, 0, -0, 0, -0, 0.8660253, -0.5000001, 0, 0, 0.5000001, 0.8660253, 0, 0,
|
|
67
|
-
0.27093494, 0.4692731, 1
|
|
68
|
-
],
|
|
69
|
-
"objectMetadataList": [
|
|
70
|
-
["CB766F92-EE55-4A63-9401-E7B8C009764D", "Root", "GridMaterial"],
|
|
71
|
-
{
|
|
72
|
-
"isExpanded": true,
|
|
73
|
-
"isLocked": false
|
|
74
|
-
},
|
|
75
|
-
["CB766F92-EE55-4A63-9401-E7B8C009764D", "Root"],
|
|
76
|
-
{
|
|
77
|
-
"isExpanded": true,
|
|
78
|
-
"isLocked": false
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
"D560BB77-AAF3-4BDE-B7C4-989332A4688B": {
|
|
83
|
-
"cameraTransform": [
|
|
84
|
-
1, 0, -0, 0, -0, 0.8660253, -0.5000001, 0, 0, 0.5000001, 0.8660253, 0, 0,
|
|
85
|
-
0.27093494, 0.4692731, 1
|
|
86
|
-
],
|
|
87
|
-
"objectMetadataList": []
|
|
88
|
-
},
|
|
89
|
-
"D66134B1-3681-4A8E-AFE5-29F257229F3B": {
|
|
90
|
-
"cameraTransform": [
|
|
91
|
-
1, 0, -0, 0, -0, 0.7071069, -0.7071067, 0, 0, 0.7071067, 0.7071069, 0, 0,
|
|
92
|
-
0.26894823, 0.26934713, 1
|
|
93
|
-
],
|
|
94
|
-
"objectMetadataList": [
|
|
95
|
-
[
|
|
96
|
-
"D66134B1-3681-4A8E-AFE5-29F257229F3B",
|
|
97
|
-
"Root",
|
|
98
|
-
"GridMaterial",
|
|
99
|
-
"GridMaterial"
|
|
100
|
-
],
|
|
101
|
-
{
|
|
102
|
-
"isExpanded": true,
|
|
103
|
-
"isLocked": false
|
|
104
|
-
},
|
|
105
|
-
["D66134B1-3681-4A8E-AFE5-29F257229F3B", "Root"],
|
|
106
|
-
{
|
|
107
|
-
"isExpanded": true,
|
|
108
|
-
"isLocked": false
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
}
|