| 1 |
- const _0x25fe=['generateServiceCamke','appid','android','mac','csEditor','main','csConfig','insertServiceCmakeToCmakeList','vivo-mini-game','bytedance-mini-game','join','native','csLogger','readConfigSet','oppo-mini-game','__esModule','getServicePluginInfo','package','use\x20strict','readServiceParam','getCreatorVersion','path','processCommonNativeModule','debug','readConfigSets','readEnableServices','qtt','length','huawei-quick-game','packageName','xiaomi-quick-game','all','./native','updateConfigInfos','checkCocosService','platform','ios','defineProperty','dir','push','csPlugin','paths','builder','has','cocos-service','getPlatformID','wechatgame','includes','packages','checkUsedCocosService','service_id','map','../../utils','readServiceList','service_component_name','configID','services','generatePostAndPreServiceCamke','shift','dirname'];(function(_0x59ca4c,_0xa4c5b8){const _0x25fe55=function(_0x129699){while(--_0x129699){_0x59ca4c['push'](_0x59ca4c['shift']());}};_0x25fe55(++_0xa4c5b8);}(_0x25fe,0x99));const _0x1296=function(_0x59ca4c,_0xa4c5b8){_0x59ca4c=_0x59ca4c-0x1e9;let _0x25fe55=_0x25fe[_0x59ca4c];return _0x25fe55;};const _0x45681f=_0x1296,_0x9a3b=[_0x45681f(0x1e9),_0x45681f(0x1ff),_0x45681f(0x215),_0x45681f(0x1fa),'service_component_name',_0x45681f(0x224),_0x45681f(0x1f8),_0x45681f(0x203),_0x45681f(0x211),_0x45681f(0x213),_0x45681f(0x1f1),_0x45681f(0x1fc),_0x45681f(0x1ef),_0x45681f(0x207),_0x45681f(0x1ea),_0x45681f(0x205),_0x45681f(0x1f6),_0x45681f(0x21e),'generateServiceConfigInfo',_0x45681f(0x20a),_0x45681f(0x219),_0x45681f(0x1f5),_0x45681f(0x204),_0x45681f(0x1f2),_0x45681f(0x220),_0x45681f(0x210),'huawei-agc',_0x45681f(0x1eb),_0x45681f(0x217),'cocos-service',_0x45681f(0x21a),'split',_0x45681f(0x209),_0x45681f(0x21b),'getProjectPath',_0x45681f(0x21f),_0x45681f(0x208),_0x45681f(0x1f3),_0x45681f(0x1ec),_0x45681f(0x1f7),_0x45681f(0x1ee),_0x45681f(0x1fb),_0x45681f(0x221),_0x45681f(0x200),_0x45681f(0x223),_0x45681f(0x20d),_0x45681f(0x21c),_0x45681f(0x218),_0x45681f(0x1fd),_0x45681f(0x206),_0x45681f(0x20e),_0x45681f(0x20f)];(function(_0xfb0cf0,_0x39dd89){const _0x54f517=function(_0x1d0302){const _0x264d98=_0x1296;while(--_0x1d0302){_0xfb0cf0[_0x264d98(0x1ef)](_0xfb0cf0[_0x264d98(0x202)]());}};_0x54f517(++_0x39dd89);}(_0x9a3b,0x1b8));const _0x3c02=function(_0x4e8f9d,_0x3feb5f){_0x4e8f9d=_0x4e8f9d-0xa6;let _0x5be537=_0x9a3b[_0x4e8f9d];return _0x5be537;},_0x577902=_0x3c02;_0x45681f(0x216),(Object[_0x45681f(0x1ed)](exports,_0x577902(0xcb),{'value':!0x0}),exports[_0x45681f(0x1f5)]=exports[_0x577902(0xac)]=exports['updateConfigInfos']=exports[_0x577902(0xd0)]=exports[_0x45681f(0x1f9)]=exports[_0x577902(0xd4)]=void 0x0);const path_1=require(_0x577902(0xd6)),utils_1=require(_0x577902(0xcd)),native_1=require(_0x577902(0xc7));async function generateServiceConfigInfo(_0x48a92f,_0x49a075,_0x4cb14f=''){const _0x5e097c=_0x45681f,_0x3e47dd=_0x577902;let _0x3e6f2a=[];try{await Promise[_0x3e47dd(0xba)](_0x48a92f[_0x3e47dd(0xb7)](async _0xe98c52=>{const _0x20fd28=_0x1296,_0x1ed1e7=_0x3e47dd;var _0x7c040c;let _0x1a3562=utils_1[_0x20fd28(0x1f0)][_0x20fd28(0x214)](_0xe98c52[_0x1ed1e7(0xc6)]);if(void 0x0===_0x1a3562||!(null===(_0x7c040c=_0x1a3562[_0x1ed1e7(0xd9)])||void 0x0===_0x7c040c?void 0x0:_0x7c040c['main']))return;let _0x3a6c9d={};_0x3a6c9d[_0x1ed1e7(0xc5)]=_0xe98c52[_0x1ed1e7(0xc5)],_0x3a6c9d[_0x1ed1e7(0xc6)]=_0xe98c52[_0x20fd28(0x1fe)],_0x3a6c9d['builder']=path_1[_0x1ed1e7(0xc0)](_0x1a3562[_0x1ed1e7(0xd6)],_0x1a3562['builder'][_0x1ed1e7(0xae)]),_0x3a6c9d['enable']=_0x49a075[_0x1ed1e7(0xb3)](_0xe98c52[_0x1ed1e7(0xc5)]),_0x3a6c9d['params']=await utils_1[_0x20fd28(0x20a)][_0x1ed1e7(0xaa)](_0xe98c52[_0x20fd28(0x1fa)],_0x4cb14f),_0x3e6f2a[_0x1ed1e7(0xce)](_0x3a6c9d);}));}catch(_0x15afec){utils_1[_0x5e097c(0x210)][_0x5e097c(0x21b)](_0x15afec);}return _0x3e6f2a;}async function checkUsedCocosService(){const _0x44d5cb=_0x45681f,_0xe326a7=_0x577902;let _0x35f295=await utils_1[_0x44d5cb(0x20a)]['readBindGame']();if(null==_0x35f295)return!0x1;if(0x0===(await utils_1[_0xe326a7(0xd5)][_0xe326a7(0xbc)]())[_0xe326a7(0xb1)])return!0x1;let _0x5bea8a=await utils_1[_0xe326a7(0xd5)][_0xe326a7(0xca)]();return null!=_0x5bea8a;}async function checkCocosService(_0x1b0930){const _0x468e79=_0x45681f,_0x3f6ab2=_0x577902;var _0x431b98;return!!await checkUsedCocosService()&&!!(null===(_0x431b98=_0x1b0930[_0x468e79(0x1f8)][_0x3f6ab2(0xab)])||void 0x0===_0x431b98?void 0x0:_0x431b98[_0x3f6ab2(0xc3)]);}async function updateConfigInfos(_0x117fc2){const _0x10469a=_0x45681f,_0xd6b8f4=_0x577902;try{const _0x372482=_0x117fc2[_0xd6b8f4(0xc8)][_0xd6b8f4(0xab)][_0xd6b8f4(0xc3)],_0x434727=await utils_1[_0xd6b8f4(0xd5)][_0xd6b8f4(0xbe)](),_0x55da38=new Set(await utils_1[_0xd6b8f4(0xd5)][_0x10469a(0x21d)](_0x372482)),_0x24738d=await generateServiceConfigInfo(_0x434727,_0x55da38,_0x372482);_0x117fc2[_0xd6b8f4(0xc8)][_0x10469a(0x1f4)][_0xd6b8f4(0xb9)]=_0x24738d;}catch(_0x183ab4){utils_1[_0xd6b8f4(0xa7)][_0xd6b8f4(0xaf)](_0x183ab4);}}async function processCommonNativeModule(_0x587322){const _0x500b5f=_0x45681f,_0x3c2b77=_0x577902;let _0x54ac2b=path_1[_0x3c2b77(0xc9)](_0x587322[_0x3c2b77(0xcc)][_0x3c2b77(0xb6)]),_0x52cee9=path_1[_0x3c2b77(0xc0)](utils_1[_0x500b5f(0x208)][_0x3c2b77(0xb0)](),_0x3c2b77(0xc1)),_0x2e7c41=utils_1[_0x3c2b77(0xb2)][_0x3c2b77(0xbd)]()[_0x3c2b77(0xad)]('.')['join'](''),_0x4c7609=Number(_0x2e7c41);!isNaN(_0x4c7609)&&_0x4c7609>=0x15e?native_1[_0x500b5f(0x201)](_0x52cee9):(native_1[_0x3c2b77(0xd8)](_0x54ac2b),native_1[_0x500b5f(0x20b)](_0x52cee9));}function getPlatformID(_0x2ce84b){const _0x2a938e=_0x45681f,_0x261f6c=_0x577902;let _0x42ef55=_0x2ce84b[_0x261f6c(0xc8)][_0x2ce84b[_0x261f6c(0xa9)]],_0x757be8='';return[_0x261f6c(0xcf),_0x261f6c(0xb4),_0x261f6c(0xbf)][_0x261f6c(0xb5)](_0x2ce84b[_0x261f6c(0xa9)])?_0x757be8=_0x42ef55[_0x2a938e(0x221)]:_0x261f6c(0xa8)===_0x2ce84b[_0x261f6c(0xa9)]?_0x757be8=_0x2ce84b[_0x261f6c(0xc8)][_0x261f6c(0xbf)][_0x261f6c(0xb8)]:[_0x261f6c(0xd2),'baidu-mini-game',_0x261f6c(0xbb)][_0x261f6c(0xb5)](_0x2ce84b[_0x2a938e(0x1eb)])?_0x757be8=_0x42ef55[_0x261f6c(0xd1)]:[_0x261f6c(0xd3),_0x2a938e(0x212),_0x2a938e(0x20c),_0x261f6c(0xa6),_0x2a938e(0x222)][_0x261f6c(0xb5)](_0x2ce84b[_0x261f6c(0xa9)])&&(_0x757be8=_0x42ef55[_0x261f6c(0xc4)]),_0x2ce84b[_0x2a938e(0x1eb)]+'$$'+_0x757be8;}exports[_0x577902(0xd4)]=generateServiceConfigInfo,exports['checkUsedCocosService']=checkUsedCocosService,exports[_0x577902(0xd0)]=checkCocosService,exports[_0x577902(0xc2)]=updateConfigInfos,exports[_0x577902(0xac)]=processCommonNativeModule,exports[_0x577902(0xd7)]=getPlatformID;
|