UNPKG

@picoxr/web-cli-core

Version:

Core Library to generate, build and sign TWA projects

1 lines 2.64 kB
'use strict';function _0x210c(_0x54baad,_0x1bf4d3){const _0xefb395=_0xefb3();return _0x210c=function(_0x210ca7,_0x531103){_0x210ca7=_0x210ca7-0x8b;let _0x3f9955=_0xefb395[_0x210ca7];return _0x3f9955;},_0x210c(_0x54baad,_0x1bf4d3);}const _0x32b3c5=_0x210c;(function(_0x2f702d,_0x5b5b8f){const _0x3529f3=_0x210c,_0x54f760=_0x2f702d();while(!![]){try{const _0x43a68a=-parseInt(_0x3529f3(0x9c))/0x1*(parseInt(_0x3529f3(0xa9))/0x2)+-parseInt(_0x3529f3(0xa1))/0x3+-parseInt(_0x3529f3(0x95))/0x4+parseInt(_0x3529f3(0x8d))/0x5+-parseInt(_0x3529f3(0xab))/0x6*(parseInt(_0x3529f3(0x97))/0x7)+parseInt(_0x3529f3(0x8c))/0x8+-parseInt(_0x3529f3(0x9a))/0x9*(-parseInt(_0x3529f3(0x91))/0xa);if(_0x43a68a===_0x5b5b8f)break;else _0x54f760['push'](_0x54f760['shift']());}catch(_0x2e4e42){_0x54f760['push'](_0x54f760['shift']());}}}(_0xefb3,0x723a7));Object[_0x32b3c5(0xa5)](exports,_0x32b3c5(0x9d),{'value':!![]}),exports[_0x32b3c5(0x9b)]=void 0x0;const util_1=require('./util'),path=require('path');function _0xefb3(){const _0x227397=['3921600lmqVlT','3410445kMCgAc','gradlew.bat','ENABLE_SERVER_LOG','assembleRelease','10XRVExH','getEnv','process','--stacktrace','2868692VwEfgt','platform','520639YVfFca','projectLocation','env','7739577wMEALi','GradleWrapper','1LyICSg','__esModule','bundleRelease','gradleCmd','androidSdkTools','1804677fwrwEq','stderr:','cwd','--status','defineProperty','true','log','executeFile','342508gbEzPU','join','6KpGEwV','executeGradleCommand','win32'];_0xefb3=function(){return _0x227397;};return _0xefb3();}class GradleWrapper{constructor(_0x1a6ece,_0x5725bf,_0x33e4f2){const _0x3c9cfb=_0x32b3c5;this['process']=_0x1a6ece,this[_0x3c9cfb(0xa0)]=_0x5725bf,this[_0x3c9cfb(0x98)]=_0x33e4f2||this[_0x3c9cfb(0x93)][_0x3c9cfb(0xa3)](),_0x1a6ece[_0x3c9cfb(0x96)]===_0x3c9cfb(0x8b)?this[_0x3c9cfb(0x9f)]=_0x3c9cfb(0x8e):this[_0x3c9cfb(0x9f)]='./gradlew';}async[_0x32b3c5(0x9e)](){const _0x267dc1=_0x32b3c5;await this[_0x267dc1(0xac)]([_0x267dc1(0x9e),_0x267dc1(0x94)]);}async[_0x32b3c5(0x90)](){const _0x23a32e=_0x32b3c5;await this[_0x23a32e(0xac)]([_0x23a32e(0xa4)]),await this[_0x23a32e(0xac)]([_0x23a32e(0x90),_0x23a32e(0x94)]);}async['executeGradleCommand'](_0x4dc101){const _0xf3c550=_0x32b3c5,_0x521c75=this[_0xf3c550(0xa0)][_0xf3c550(0x92)](),{stdout:_0x29d630,stderr:_0xbd801f}=await(0x0,util_1[_0xf3c550(0xa8)])(path[_0xf3c550(0xaa)](this[_0xf3c550(0x98)],this['gradleCmd']),_0x4dc101,_0x521c75,undefined,this[_0xf3c550(0x98)]);process[_0xf3c550(0x99)][_0xf3c550(0x8f)]===_0xf3c550(0xa6)&&(console[_0xf3c550(0xa7)]('stdout:',_0x29d630),console[_0xf3c550(0xa7)](_0xf3c550(0xa2),_0xbd801f));}}exports[_0x32b3c5(0x9b)]=GradleWrapper;