fix(mobile): recover direct channels after network failure

This commit is contained in:
key
2026-07-29 02:31:19 +08:00
parent 376a7c4b84
commit dc20b92061
6 changed files with 66 additions and 9 deletions
+13
View File
@@ -36,6 +36,19 @@ test('App 平台编译器已声明且与其他 uni 包同版本,避免 build:a
assert.equal(appPlus, pkg.devDependencies['@dcloudio/vite-plugin-uni']);
});
test('App 版本在 package、lockfile 与原生 manifest 间保持一致', async () => {
const [pkg, lockfile, manifest] = await Promise.all([
readJson('../package.json'),
readJson('../package-lock.json'),
readJson('../src/manifest.json')
]);
assert.equal(lockfile.version, pkg.version);
assert.equal(lockfile.packages?.['']?.version, pkg.version);
assert.equal(manifest.versionName, pkg.version);
assert.match(String(manifest.versionCode || ''), /^\d+$/);
});
test('Android 自定义基座显式面向 Android 15 权限模型', async () => {
const manifest = await readJson('../src/manifest.json');
const android = manifest['app-plus']?.distribute?.android;