@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-alpha-33620211231001 → 2.0.1-alpha-33720220111001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -213,15 +213,16 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
213
213
  from: path.resolve(process.env.UNI_INPUT_DIR, 'static'),
214
214
  to: 'static'
215
215
  }]
216
-
217
- const androidPrivacyPath = path.resolve(process.env.UNI_INPUT_DIR, 'androidPrivacy.json')
218
- if (fs.existsSync(androidPrivacyPath)) {
219
- array.push({
220
- from: androidPrivacyPath,
221
- to: 'androidPrivacy.json'
222
- })
216
+ // 自动化测试时,不启用androidPrivacy.json
217
+ if (!process.env.UNI_AUTOMATOR_WS_ENDPOINT) {
218
+ const androidPrivacyPath = path.resolve(process.env.UNI_INPUT_DIR, 'androidPrivacy.json')
219
+ if (fs.existsSync(androidPrivacyPath)) {
220
+ array.push({
221
+ from: androidPrivacyPath,
222
+ to: 'androidPrivacy.json'
223
+ })
224
+ }
223
225
  }
224
-
225
226
  const hybridHtmlPath = path.resolve(process.env.UNI_INPUT_DIR, 'hybrid/html')
226
227
  if (fs.existsSync(hybridHtmlPath)) {
227
228
  array.push({
@@ -389,4 +390,4 @@ module.exports = function () {
389
390
  zlib: false
390
391
  }
391
392
  }
392
- }
393
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-hbuilderx",
3
- "version": "2.0.1-alpha-33620211231001",
3
+ "version": "2.0.1-alpha-33720220111001",
4
4
  "description": "HBuilderX plugin for vue-cli 3",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -18,5 +18,5 @@
18
18
  "css": "~2.2.1",
19
19
  "escodegen": "^1.8.1"
20
20
  },
21
- "gitHead": "69ec687babc8908eda718d0e2bb4a52c971b421d"
21
+ "gitHead": "ae20a1e0c511d81be43382a256733a6e9a8102a2"
22
22
  }