UNPKG

@picoxr/web-cli-core

Version:

Core Library to generate, build and sign TWA projects

1 lines 3.33 kB
'use strict';const _0x353692=_0x1132;(function(_0x44d92f,_0x31a4a4){const _0x15b1b3=_0x1132,_0x39318e=_0x44d92f();while(!![]){try{const _0x3b414f=-parseInt(_0x15b1b3(0xea))/0x1*(-parseInt(_0x15b1b3(0xef))/0x2)+-parseInt(_0x15b1b3(0xda))/0x3*(-parseInt(_0x15b1b3(0xe9))/0x4)+-parseInt(_0x15b1b3(0xe7))/0x5+-parseInt(_0x15b1b3(0xd8))/0x6*(-parseInt(_0x15b1b3(0xdf))/0x7)+parseInt(_0x15b1b3(0xe5))/0x8+parseInt(_0x15b1b3(0xf1))/0x9+parseInt(_0x15b1b3(0xdc))/0xa*(-parseInt(_0x15b1b3(0xe6))/0xb);if(_0x3b414f===_0x31a4a4)break;else _0x39318e['push'](_0x39318e['shift']());}catch(_0x11b1c6){_0x39318e['push'](_0x39318e['shift']());}}}(_0x4ffb,0xa8f5d));Object[_0x353692(0xdd)](exports,_0x353692(0xe8),{'value':!![]}),exports[_0x353692(0xe3)]=void 0x0;const EmptyFeature_1=require(_0x353692(0xed));function _0x4ffb(){const _0x15fc13=['private\x20boolean\x20checkAndMarkFirstOpen()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20StrictMode.ThreadPolicy\x20originalPolicy\x20=\x20StrictMode.allowThreadDiskReads();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SharedPreferences\x20preferences\x20=\x20getPreferences(MODE_PRIVATE);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20boolean\x20isFirstRun\x20=\x20preferences.getBoolean(KEY_FIRST_OPEN,\x20true);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preferences.edit().putBoolean(KEY_FIRST_OPEN,\x20false).apply();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20isFirstRun;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20finally\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20StrictMode.setThreadPolicy(originalPolicy);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}','private\x20static\x20final\x20String\x20KEY_FIRST_OPEN\x20=\x20\x22bubblewrap.first_open\x22;','push','FirstRunFlagFeature','EmptyFeature','6720072fDfltl','141020LjhxsJ','3389505oHjSbI','__esModule','4UgTFRT','41EZXpPS','methods','launcherActivity','./EmptyFeature','queryParameterName','20446DvwChl','launchUrl','9411003XtBiVo','102684kSGkck','uri\x20=\x20uri\x0a\x20\x20\x20\x20\x20\x20.buildUpon()\x0a\x20\x20\x20\x20\x20\x20.appendQueryParameter(PARAM_FIRST_OPEN,\x20String.valueOf(checkAndMarkFirstOpen()))\x0a\x20\x20\x20\x20\x20\x20.build();','3233463nvkHkb','firstRunFlag','1610sxPYRP','defineProperty','android.content.SharedPreferences','21PcvWGF'];_0x4ffb=function(){return _0x15fc13;};return _0x4ffb();}class FirstRunFlagFeature extends EmptyFeature_1[_0x353692(0xe4)]{constructor(_0x197e02){const _0x85197b=_0x353692;super(_0x85197b(0xdb)),this[_0x85197b(0xec)]['imports'][_0x85197b(0xe2)](_0x85197b(0xde),'android.os.StrictMode'),this['launcherActivity'][_0x85197b(0xeb)][_0x85197b(0xe2)](_0x85197b(0xe0)),this['launcherActivity']['variables']['push'](_0x85197b(0xe1),'private\x20static\x20final\x20String\x20PARAM_FIRST_OPEN\x20=\x20\x22'+_0x197e02[_0x85197b(0xee)]+'\x22;'),this[_0x85197b(0xec)][_0x85197b(0xf0)]=_0x85197b(0xd9);}}function _0x1132(_0x59c17a,_0x3da27c){const _0x4ffbb5=_0x4ffb();return _0x1132=function(_0x1132ee,_0x21829d){_0x1132ee=_0x1132ee-0xd8;let _0x1e872a=_0x4ffbb5[_0x1132ee];return _0x1e872a;},_0x1132(_0x59c17a,_0x3da27c);}exports['FirstRunFlagFeature']=FirstRunFlagFeature;