From 86e49d5edc250dc250059513e3b63c05a81567a3 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Mon, 7 Sep 2026 14:29:50 +0800 Subject: [PATCH] fix: disable domestic pda telemetry --- manifest.json | 3 +++ tests/page-contract.test.mjs | 1 + 2 files changed, 4 insertions(+) diff --git a/manifest.json b/manifest.json index 2453bee..e6cd6f3 100644 --- a/manifest.json +++ b/manifest.json @@ -86,6 +86,9 @@ }, "usingComponents" : true }, + "uniStatistics" : { + "enable" : false + }, "vueVersion" : "3", "h5" : { "devServer" : { diff --git a/tests/page-contract.test.mjs b/tests/page-contract.test.mjs index 24d4714..ce1441e 100644 --- a/tests/page-contract.test.mjs +++ b/tests/page-contract.test.mjs @@ -17,6 +17,7 @@ test('page configuration starts at login and registers independent PDA routes', test('application uses the Vue 3 uni-app entry and no unused Android permissions', async () => { const [manifest, main] = await Promise.all([read('../manifest.json'), read('../main.js')]) assert.match(manifest, /"vueVersion"\s*:\s*"3"/) + assert.match(manifest, /"uniStatistics"\s*:\s*\{\s*"enable"\s*:\s*false\s*\}/) assert.match(main, /createSSRApp/) assert.doesNotMatch(main, /new\s+Vue/) assert.doesNotMatch(manifest, /android\.permission\.(VIBRATE|ACCESS_NETWORK_STATE)/)