6.4.0 - 新增 barcode/qrcode/shizuku 等模块; 适配高版本系统语言设置; 优化打包功能; 支持应用快捷方式; 修复屏幕旋转相关问题
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// noinspection JSUnusedLocalSymbols
|
||||
|
||||
/* Overwritten protection. */
|
||||
|
||||
let { util } = global;
|
||||
|
||||
@@ -19,17 +19,11 @@ module.exports = function (scriptRuntime, scope) {
|
||||
const shizuku = function (cmd) {
|
||||
return rtShizuku.execCommand(cmd);
|
||||
};
|
||||
return Object.assign(shizuku, ShizukuCtor.prototype);
|
||||
return Object.assign(Object.setPrototypeOf(shizuku, rtShizuku), ShizukuCtor.prototype);
|
||||
};
|
||||
|
||||
ShizukuCtor.prototype = {
|
||||
constructor: ShizukuCtor,
|
||||
ensureService() {
|
||||
rtShizuku.ensureService();
|
||||
},
|
||||
execCommand() {
|
||||
return rtShizuku.execCommand.apply(rtShizuku, arguments);
|
||||
},
|
||||
};
|
||||
|
||||
return ShizukuCtor;
|
||||
|
||||
Reference in New Issue
Block a user