@picoxr/web-cli-core
Version:
Core Library to generate, build and sign TWA projects
1 lines • 5.22 kB
JavaScript
;function _0x5af2(_0x15859e,_0x4698d7){const _0x538a11=_0x538a();return _0x5af2=function(_0x5af2fc,_0x216ff2){_0x5af2fc=_0x5af2fc-0x1c8;let _0x187aab=_0x538a11[_0x5af2fc];return _0x187aab;},_0x5af2(_0x15859e,_0x4698d7);}const _0x2ce213=_0x5af2;(function(_0x42f01e,_0x43558c){const _0x15e852=_0x5af2,_0x238134=_0x42f01e();while(!![]){try{const _0x1e5988=parseInt(_0x15e852(0x1e9))/0x1+parseInt(_0x15e852(0x1eb))/0x2+-parseInt(_0x15e852(0x1e0))/0x3*(parseInt(_0x15e852(0x1f6))/0x4)+parseInt(_0x15e852(0x1c9))/0x5*(parseInt(_0x15e852(0x1d7))/0x6)+-parseInt(_0x15e852(0x1f0))/0x7*(parseInt(_0x15e852(0x1ef))/0x8)+-parseInt(_0x15e852(0x1cb))/0x9*(-parseInt(_0x15e852(0x1f2))/0xa)+-parseInt(_0x15e852(0x1ea))/0xb;if(_0x1e5988===_0x43558c)break;else _0x238134['push'](_0x238134['shift']());}catch(_0x5722a8){_0x238134['push'](_0x238134['shift']());}}}(_0x538a,0x74571));Object[_0x2ce213(0x1db)](exports,_0x2ce213(0x1cd),{'value':!![]}),exports['UpdateMetadataFeature']=void 0x0;const EmptyFeature_1=require(_0x2ce213(0x1c8)),Feature_1=require(_0x2ce213(0x1d4));class UpdateMetadataFeature extends EmptyFeature_1[_0x2ce213(0x1d6)]{constructor(_0x5848ff){const _0x25f5b4=_0x2ce213;var _0x48dc18;super(_0x25f5b4(0x1e2));const _0x5f250d=_0x5848ff[_0x25f5b4(0x1cc)]||{};_0x5f250d['name']&&this[_0x25f5b4(0x1f1)][_0x25f5b4(0x1cf)][_0x25f5b4(0x1ca)](new Feature_1[(_0x25f5b4(0x1e1))]('org.pico.twaapk.shellapk.name',encodeURIComponent(_0x5f250d['name'])));_0x5f250d[_0x25f5b4(0x1f4)]&&this[_0x25f5b4(0x1f1)][_0x25f5b4(0x1cf)]['push'](new Feature_1[(_0x25f5b4(0x1e1))]('org.pico.twaapk.shellapk.shortName',encodeURIComponent(_0x5f250d[_0x25f5b4(0x1f4)])));this[_0x25f5b4(0x1f1)][_0x25f5b4(0x1cf)][_0x25f5b4(0x1ca)](new Feature_1[(_0x25f5b4(0x1e1))](_0x25f5b4(0x1d5),encodeURIComponent(_0x5f250d[_0x25f5b4(0x1ee)])));_0x5f250d['scope']&&this[_0x25f5b4(0x1f1)][_0x25f5b4(0x1cf)][_0x25f5b4(0x1ca)](new Feature_1[(_0x25f5b4(0x1e1))](_0x25f5b4(0x1ce),encodeURIComponent(_0x5f250d[_0x25f5b4(0x1df)])));_0x5f250d['display']&&this[_0x25f5b4(0x1f1)]['applicationMetadata']['push'](new Feature_1[(_0x25f5b4(0x1e1))](_0x25f5b4(0x1dc),_0x5f250d[_0x25f5b4(0x1d3)]));_0x5f250d[_0x25f5b4(0x1ec)]&&this[_0x25f5b4(0x1f1)][_0x25f5b4(0x1cf)][_0x25f5b4(0x1ca)](new Feature_1['Metadata'](_0x25f5b4(0x1f7),encodeURIComponent(_0x5f250d['orientation'])));_0x5f250d[_0x25f5b4(0x1da)]&&this['androidManifest'][_0x25f5b4(0x1cf)][_0x25f5b4(0x1ca)](new Feature_1['Metadata'](_0x25f5b4(0x1f3),(_0x5f250d[_0x25f5b4(0x1da)]||'')['replace']('#','')));_0x5f250d[_0x25f5b4(0x1d2)]&&this[_0x25f5b4(0x1f1)][_0x25f5b4(0x1cf)][_0x25f5b4(0x1ca)](new Feature_1[(_0x25f5b4(0x1e1))](_0x25f5b4(0x1ed),(_0x5f250d['background_color']||'')['replace']('#','')));if(_0x5f250d[_0x25f5b4(0x1dd)]&&((_0x48dc18=_0x5f250d[_0x25f5b4(0x1dd)])===null||_0x48dc18===void 0x0?void 0x0:_0x48dc18[_0x25f5b4(0x1e3)])>0x0){const _0x5dabf4=_0x5f250d[_0x25f5b4(0x1dd)][_0x25f5b4(0x1d9)](_0x313158=>{const _0xa7141f=_0x25f5b4;return((_0x313158===null||_0x313158===void 0x0?void 0x0:_0x313158[_0xa7141f(0x1d0)])||'')+'_'+((_0x313158===null||_0x313158===void 0x0?void 0x0:_0x313158[_0xa7141f(0x1e6)])||'')+'_'+((_0x313158===null||_0x313158===void 0x0?void 0x0:_0x313158[_0xa7141f(0x1e7)])||'')+','+((_0x313158===null||_0x313158===void 0x0?void 0x0:_0x313158['src'])||'');})['join'](',');this[_0x25f5b4(0x1f1)][_0x25f5b4(0x1cf)]['push'](new Feature_1[(_0x25f5b4(0x1e1))](_0x25f5b4(0x1d1),encodeURIComponent(_0x5dabf4)));}_0x5f250d[_0x25f5b4(0x1e5)]&&this[_0x25f5b4(0x1f1)][_0x25f5b4(0x1cf)][_0x25f5b4(0x1ca)](new Feature_1[(_0x25f5b4(0x1e1))](_0x25f5b4(0x1f8),_0x5f250d['pico_xr_button_selector'])),_0x5848ff[_0x25f5b4(0x1e4)]&&this[_0x25f5b4(0x1f1)][_0x25f5b4(0x1cf)][_0x25f5b4(0x1ca)](new Feature_1[(_0x25f5b4(0x1e1))]('org.pico.twaapk.shellapk.picoGenerator',_0x5848ff[_0x25f5b4(0x1e4)])),_0x5848ff[_0x25f5b4(0x1e8)]&&this[_0x25f5b4(0x1f1)]['applicationMetadata'][_0x25f5b4(0x1ca)](new Feature_1['Metadata'](_0x25f5b4(0x1d8),_0x5848ff[_0x25f5b4(0x1e8)])),_0x5848ff[_0x25f5b4(0x1f5)]&&this['androidManifest'][_0x25f5b4(0x1cf)][_0x25f5b4(0x1ca)](new Feature_1[(_0x25f5b4(0x1e1))](_0x25f5b4(0x1de),_0x5848ff['cliVersion']));}}function _0x538a(){const _0x4f5b61=['org.pico.twaapk.shellapk.backgroundColor','start_url','2133304wKFxSI','21LRnuRE','androidManifest','10afKPQB','org.pico.twaapk.shellapk.themeColor','short_name','cliVersion','568KJEYhQ','org.pico.twaapk.shellapk.orientation','org.pico.twaapk.shellapk.picoXRButtonSelector','./EmptyFeature','1135ReCOre','push','6220881zQFApG','webManifest','__esModule','org.pico.twaapk.shellapk.scope','applicationMetadata','purpose','org.pico.twaapk.shellapk.iconUrls','background_color','display','./Feature','org.pico.twaapk.shellapk.startUrl','EmptyFeature','12924BBijhg','org.pico.twaapk.shellapk.ciVersionName','map','theme_color','defineProperty','org.pico.twaapk.shellapk.displayMode','icons','org.pico.twaapk.shellapk.ciVersionInfo','scope','7485fLoppr','Metadata','UpdateMetadataFeature','length','generatorTag','pico_xr_button_selector','type','size','cliName','490616OIuYKr','4235341OsLRYO','690112BVAWAK','orientation'];_0x538a=function(){return _0x4f5b61;};return _0x538a();}exports['UpdateMetadataFeature']=UpdateMetadataFeature;