@picoxr/web-cli-core
Version:
Core Library to generate, build and sign TWA projects
1 lines • 7.34 kB
JavaScript
;const _0x30305a=_0x50d0;(function(_0x55fdad,_0x5363c0){const _0x30d06f=_0x50d0,_0x142808=_0x55fdad();while(!![]){try{const _0x3ea3f1=-parseInt(_0x30d06f(0x16e))/0x1+parseInt(_0x30d06f(0x167))/0x2*(parseInt(_0x30d06f(0x14a))/0x3)+-parseInt(_0x30d06f(0x15b))/0x4+-parseInt(_0x30d06f(0x144))/0x5+-parseInt(_0x30d06f(0x14e))/0x6+-parseInt(_0x30d06f(0x166))/0x7*(-parseInt(_0x30d06f(0x154))/0x8)+parseInt(_0x30d06f(0x156))/0x9;if(_0x3ea3f1===_0x5363c0)break;else _0x142808['push'](_0x142808['shift']());}catch(_0x4c906b){_0x142808['push'](_0x142808['shift']());}}}(_0x7d36,0x5dbbe));function _0x50d0(_0x35ba66,_0x5847a8){const _0x7d361f=_0x7d36();return _0x50d0=function(_0x50d01,_0x14de32){_0x50d01=_0x50d01-0x139;let _0xc0f21c=_0x7d361f[_0x50d01];return _0xc0f21c;},_0x50d0(_0x35ba66,_0x5847a8);}Object['defineProperty'](exports,_0x30305a(0x168),{'value':!![]}),exports['FeatureManager']=void 0x0;const AppsFlyerFeature_1=require(_0x30305a(0x157)),LocationDelegationFeature_1=require(_0x30305a(0x148)),PlayBillingFeature_1=require(_0x30305a(0x16c)),FirstRunFlagFeature_1=require(_0x30305a(0x146)),Log_1=require(_0x30305a(0x142)),ArCoreFeature_1=require('./ArCoreFeature'),UpdateMetadataFeature_1=require('./UpdateMetadataFeature'),ANDROID_BROWSER_HELPER_VERSIONS={'stable':'com.google.androidbrowserhelper:androidbrowserhelper:2.4.0','alpha':_0x30305a(0x161)};function _0x7d36(){const _0x4c1c00=['alphaDependencies','applicationMetadata','add','Skipping\x20PlayBillingFeature.\x20','8iKjFEg','enabled','12880737eMJRsg','./AppsFlyerFeature','fallbackType','push','FeatureManager','454288kweQmd','Enable\x20alphaDependencies\x20to\x20add\x20PlayBillingFeature.','alpha','launcherActivity','variables','delegationService','com.google.androidbrowserhelper:androidbrowserhelper:2.4.0','permissions','dependencies','applicationClass','forEach','293083syokcm','28rkzsxd','__esModule','error','LocationDelegationFeature','appsFlyer','./PlayBillingFeature','stable','416660kBHajy','ArCoreFeature','repositories','onCreate','locationDelegation','features','FirstRunFlagFeature','addFeature','android.permission.INTERNET','imports','enableNotifications','../Log','launchUrl','2977090cCAqsz','ConsoleLog','./FirstRunFlagFeature','arCore','./LocationDelegationFeature','methods','46830utxMli','androidManifest','webview','buildGradle','1092108QYuFTq','playBilling'];_0x7d36=function(){return _0x4c1c00;};return _0x7d36();}class FeatureManager{constructor(_0x3d5dcc,_0x41d1af=new Log_1[(_0x30305a(0x145))]('FeatureManager')){const _0x5b3d5b=_0x30305a;var _0x47faca,_0x4d3694,_0x2b80df,_0x34bf90,_0x1a24da,_0x5602b5,_0x50061c;this[_0x5b3d5b(0x14d)]={'repositories':new Set(),'dependencies':new Set()},this[_0x5b3d5b(0x14b)]={'permissions':new Set(),'components':new Array(),'applicationMetadata':new Array()},this['applicationClass']={'imports':new Set(),'variables':new Array(),'onCreate':new Array()},this[_0x5b3d5b(0x15e)]={'imports':new Set(),'methods':new Set(),'variables':new Set(),'launchUrl':new Array()},this['delegationService']={'imports':new Set(),'onCreate':new Array()},((_0x47faca=_0x3d5dcc[_0x5b3d5b(0x13c)][_0x5b3d5b(0x13b)])===null||_0x47faca===void 0x0?void 0x0:_0x47faca[_0x5b3d5b(0x155)])&&this['addFeature'](new LocationDelegationFeature_1[(_0x5b3d5b(0x16a))]()),((_0x4d3694=_0x3d5dcc[_0x5b3d5b(0x13c)][_0x5b3d5b(0x14f)])===null||_0x4d3694===void 0x0?void 0x0:_0x4d3694[_0x5b3d5b(0x155)])&&(((_0x2b80df=_0x3d5dcc[_0x5b3d5b(0x150)])===null||_0x2b80df===void 0x0?void 0x0:_0x2b80df[_0x5b3d5b(0x155)])?this[_0x5b3d5b(0x13e)](new PlayBillingFeature_1['PlayBillingFeature']()):_0x41d1af[_0x5b3d5b(0x169)](_0x5b3d5b(0x153)+_0x5b3d5b(0x15c))),((_0x34bf90=_0x3d5dcc[_0x5b3d5b(0x13c)][_0x5b3d5b(0x16b)])===null||_0x34bf90===void 0x0?void 0x0:_0x34bf90[_0x5b3d5b(0x155)])&&this['addFeature'](new AppsFlyerFeature_1['AppsFlyerFeature'](_0x3d5dcc[_0x5b3d5b(0x13c)]['appsFlyer'])),((_0x1a24da=_0x3d5dcc[_0x5b3d5b(0x13c)]['firstRunFlag'])===null||_0x1a24da===void 0x0?void 0x0:_0x1a24da[_0x5b3d5b(0x155)])&&this[_0x5b3d5b(0x13e)](new FirstRunFlagFeature_1[(_0x5b3d5b(0x13d))](_0x3d5dcc[_0x5b3d5b(0x13c)]['firstRunFlag'])),_0x3d5dcc[_0x5b3d5b(0x158)]===_0x5b3d5b(0x14c)&&this[_0x5b3d5b(0x14b)][_0x5b3d5b(0x162)][_0x5b3d5b(0x152)](_0x5b3d5b(0x13f)),((_0x5602b5=_0x3d5dcc[_0x5b3d5b(0x150)])===null||_0x5602b5===void 0x0?void 0x0:_0x5602b5[_0x5b3d5b(0x155)])?this[_0x5b3d5b(0x14d)][_0x5b3d5b(0x163)][_0x5b3d5b(0x152)](ANDROID_BROWSER_HELPER_VERSIONS[_0x5b3d5b(0x15d)]):this['buildGradle'][_0x5b3d5b(0x163)][_0x5b3d5b(0x152)](ANDROID_BROWSER_HELPER_VERSIONS[_0x5b3d5b(0x16d)]),((_0x50061c=_0x3d5dcc[_0x5b3d5b(0x13c)][_0x5b3d5b(0x147)])===null||_0x50061c===void 0x0?void 0x0:_0x50061c[_0x5b3d5b(0x155)])&&this[_0x5b3d5b(0x13e)](new ArCoreFeature_1[(_0x5b3d5b(0x16f))]()),_0x3d5dcc[_0x5b3d5b(0x141)]&&this['androidManifest']['permissions'][_0x5b3d5b(0x152)]('android.permission.POST_NOTIFICATIONS'),this[_0x5b3d5b(0x13e)](new UpdateMetadataFeature_1['UpdateMetadataFeature'](_0x3d5dcc));}[_0x30305a(0x13e)](_0x32a130){const _0x3c6c81=_0x30305a;_0x32a130['buildGradle']['repositories'][_0x3c6c81(0x165)](_0x2db43d=>{const _0xaea9e2=_0x3c6c81;this[_0xaea9e2(0x14d)][_0xaea9e2(0x139)][_0xaea9e2(0x152)](_0x2db43d);}),_0x32a130['buildGradle']['dependencies'][_0x3c6c81(0x165)](_0x177058=>{const _0x10fa51=_0x3c6c81;this[_0x10fa51(0x14d)][_0x10fa51(0x163)][_0x10fa51(0x152)](_0x177058);}),_0x32a130[_0x3c6c81(0x164)][_0x3c6c81(0x140)][_0x3c6c81(0x165)](_0x225524=>{const _0x28e49b=_0x3c6c81;this['applicationClass'][_0x28e49b(0x140)][_0x28e49b(0x152)](_0x225524);}),_0x32a130['applicationClass'][_0x3c6c81(0x15f)]['forEach'](_0x3ef378=>{const _0x768038=_0x3c6c81;this[_0x768038(0x164)][_0x768038(0x15f)][_0x768038(0x159)](_0x3ef378);}),_0x32a130[_0x3c6c81(0x164)][_0x3c6c81(0x13a)]&&this['applicationClass']['onCreate'][_0x3c6c81(0x159)](_0x32a130[_0x3c6c81(0x164)][_0x3c6c81(0x13a)]),_0x32a130[_0x3c6c81(0x14b)][_0x3c6c81(0x162)][_0x3c6c81(0x165)](_0x1a8735=>{const _0x36217d=_0x3c6c81;this[_0x36217d(0x14b)][_0x36217d(0x162)]['add'](_0x1a8735);}),_0x32a130[_0x3c6c81(0x14b)]['components'][_0x3c6c81(0x165)](_0x48a4fc=>{const _0x165518=_0x3c6c81;this[_0x165518(0x14b)]['components'][_0x165518(0x159)](_0x48a4fc);}),_0x32a130[_0x3c6c81(0x14b)][_0x3c6c81(0x151)][_0x3c6c81(0x165)](_0x486275=>{const _0x1d7e66=_0x3c6c81;this[_0x1d7e66(0x14b)][_0x1d7e66(0x151)][_0x1d7e66(0x159)](_0x486275);}),_0x32a130['launcherActivity']['imports'][_0x3c6c81(0x165)](_0x6b51ab=>{this['launcherActivity']['imports']['add'](_0x6b51ab);}),_0x32a130[_0x3c6c81(0x15e)][_0x3c6c81(0x15f)][_0x3c6c81(0x165)](_0xf3bb87=>{const _0x1542e2=_0x3c6c81;this[_0x1542e2(0x15e)]['variables'][_0x1542e2(0x152)](_0xf3bb87);}),_0x32a130[_0x3c6c81(0x15e)][_0x3c6c81(0x149)][_0x3c6c81(0x165)](_0x343ba0=>{const _0x487db2=_0x3c6c81;this[_0x487db2(0x15e)][_0x487db2(0x149)]['add'](_0x343ba0);}),_0x32a130['launcherActivity']['launchUrl']&&this[_0x3c6c81(0x15e)]['launchUrl']['push'](_0x32a130['launcherActivity'][_0x3c6c81(0x143)]),_0x32a130[_0x3c6c81(0x160)][_0x3c6c81(0x140)]['forEach'](_0x32d951=>{const _0x124b0e=_0x3c6c81;this[_0x124b0e(0x160)][_0x124b0e(0x140)]['add'](_0x32d951);}),_0x32a130['delegationService'][_0x3c6c81(0x13a)]&&this[_0x3c6c81(0x160)][_0x3c6c81(0x13a)][_0x3c6c81(0x159)](_0x32a130[_0x3c6c81(0x160)][_0x3c6c81(0x13a)]);}}exports[_0x30305a(0x15a)]=FeatureManager;