@picoxr/web-cli-core
Version:
Core Library to generate, build and sign TWA projects
1 lines • 2.46 kB
JavaScript
;function _0x16fb(){const _0x3908b1=['promises','ENOENT','utf8','loadConfig','5606200xHKqrM','serialize','48QocVkF','7Nuaaxj','28oRgNux','defineProperty','14269730zUXyZB','parse','deserialize','Config','5983923KpEPUK','1120858sFDIIn','writeFile','3kMWuTu','readFile','saveConfig','559485SctxXo','5275272PiVjDx','mkdir','320346ENerFa','stringify','9uSwbAk','path','androidSdkPath','code','jdkPath'];_0x16fb=function(){return _0x3908b1;};return _0x16fb();}const _0x285045=_0x43e6;(function(_0x392882,_0x378d21){const _0x1a6636=_0x43e6,_0x25aa0d=_0x392882();while(!![]){try{const _0x41f12c=parseInt(_0x1a6636(0x7f))/0x1*(-parseInt(_0x1a6636(0x7d))/0x2)+-parseInt(_0x1a6636(0x85))/0x3*(-parseInt(_0x1a6636(0x94))/0x4)+-parseInt(_0x1a6636(0x82))/0x5+-parseInt(_0x1a6636(0x83))/0x6*(parseInt(_0x1a6636(0x93))/0x7)+parseInt(_0x1a6636(0x90))/0x8*(-parseInt(_0x1a6636(0x87))/0x9)+parseInt(_0x1a6636(0x96))/0xa+-parseInt(_0x1a6636(0x7c))/0xb*(-parseInt(_0x1a6636(0x92))/0xc);if(_0x41f12c===_0x378d21)break;else _0x25aa0d['push'](_0x25aa0d['shift']());}catch(_0x2c546f){_0x25aa0d['push'](_0x25aa0d['shift']());}}}(_0x16fb,0xee960));Object[_0x285045(0x95)](exports,'__esModule',{'value':!![]}),exports[_0x285045(0x7b)]=void 0x0;function _0x43e6(_0x50b105,_0x2080db){const _0x16fb10=_0x16fb();return _0x43e6=function(_0x43e657,_0x1e9f5f){_0x43e657=_0x43e657-0x7a;let _0x15c4f7=_0x16fb10[_0x43e657];return _0x15c4f7;},_0x43e6(_0x50b105,_0x2080db);}const fs_1=require('fs'),path_1=require(_0x285045(0x88));class Config{constructor(_0x3e351f,_0x424808){const _0x20cbd0=_0x285045;this[_0x20cbd0(0x8b)]=_0x3e351f,this[_0x20cbd0(0x89)]=_0x424808;}[_0x285045(0x91)](){const _0x107b62=_0x285045;return JSON[_0x107b62(0x86)](this);}async[_0x285045(0x81)](_0x5c5266){const _0x3529c0=_0x285045;await fs_1[_0x3529c0(0x8c)][_0x3529c0(0x84)]((0x0,path_1['dirname'])(_0x5c5266),{'recursive':!![]}),await fs_1[_0x3529c0(0x8c)][_0x3529c0(0x7e)](_0x5c5266,this[_0x3529c0(0x91)]());}static[_0x285045(0x7a)](_0x341720){const _0x3d28d4=_0x285045,_0x5e0983=JSON[_0x3d28d4(0x97)](_0x341720);return new Config(_0x5e0983['jdkPath'],_0x5e0983[_0x3d28d4(0x89)]);}static async[_0x285045(0x8f)](_0x38b53e){const _0x5b0e24=_0x285045;try{const _0x590337=await fs_1[_0x5b0e24(0x8c)][_0x5b0e24(0x80)](_0x38b53e,_0x5b0e24(0x8e));return Config['deserialize'](_0x590337);}catch(_0x3a6000){if(_0x3a6000[_0x5b0e24(0x8a)]===_0x5b0e24(0x8d))return undefined;throw _0x3a6000;}}}exports['Config']=Config;