6.3.1 - 新增发布通知权限 / WS 实例创建; 修复 floaty 模块异常 / 安卓 7.x 异常; UI 模式增强; 迁移至 View Binding

This commit is contained in:
SuperMonster003
2023-05-26 20:58:38 +08:00
parent 31ebd5b854
commit 1755ae3271
511 changed files with 12567 additions and 11063 deletions

View File

@@ -484,6 +484,11 @@ module.exports = function (runtime, scope) {
delete this.$appropriateProtect;
},
},
legacies: {
isObjectSpecies(o) {
return species.isObject(o);
},
},
ensureNonUiThread() {
if (ui.isUiThread()) {
throw Error('不能在ui线程执行阻塞操作请在子线程或子脚本执行或者使用setInterval循环检测当前activity和package.');
@@ -533,7 +538,7 @@ module.exports = function (runtime, scope) {
},
};
Object.assign(scope, _.extensions);
Object.assign(scope, _.extensions, _.legacies);
// Object.keys(_.extensions)
// .filter(key => !key.startsWith('$'))