@dcloudio/uni-cli-shared 3.0.0-alpha-3041120220520001 → 3.0.0-alpha-3041320220527002

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.
@@ -0,0 +1 @@
1
+ export declare function initCheckSystemWebview(manifestJson: Record<string, any>): void;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initCheckSystemWebview = void 0;
4
+ function initCheckSystemWebview(manifestJson) {
5
+ // 检查Android系统webview版本 || 下载X5后启动
6
+ let plusWebview = manifestJson.plus.webView;
7
+ if (plusWebview) {
8
+ manifestJson.plus['uni-app'].webView = plusWebview;
9
+ delete manifestJson.plus.webView;
10
+ }
11
+ }
12
+ exports.initCheckSystemWebview = initCheckSystemWebview;
@@ -26,6 +26,7 @@ const splashscreen_1 = require("./splashscreen");
26
26
  const confusion_1 = require("./confusion");
27
27
  const uniApp_1 = require("./uniApp");
28
28
  const launchwebview_1 = require("./launchwebview");
29
+ const checksystemwebview_1 = require("./checksystemwebview");
29
30
  const tabBar_1 = require("./tabBar");
30
31
  const i18n_1 = require("./i18n");
31
32
  function normalizeAppManifestJson(userManifestJson, pagesJson) {
@@ -39,6 +40,8 @@ function normalizeAppManifestJson(userManifestJson, pagesJson) {
39
40
  (0, uniApp_1.initUniApp)(manifestJson);
40
41
  // 依赖 initArguments 先执行
41
42
  (0, tabBar_1.initTabBar)((0, launchwebview_1.initLaunchwebview)(manifestJson, pagesJson), manifestJson, pagesJson);
43
+ // 依赖 initUniApp 先执行
44
+ (0, checksystemwebview_1.initCheckSystemWebview)(manifestJson);
42
45
  return (0, i18n_1.initI18n)(manifestJson);
43
46
  }
44
47
  exports.normalizeAppManifestJson = normalizeAppManifestJson;
@@ -67,7 +67,10 @@ function findChangedJsonFiles(supportGlobalUsingComponents = true) {
67
67
  // 如果小程序不支持 global 的 usingComponents
68
68
  if (!supportGlobalUsingComponents) {
69
69
  // 从 appJsonCache 中读取全局的 usingComponents 并补充到子组件 usingComponents 中
70
- usingComponents = { ...globalUsingComponents, ...newJson.usingComponents };
70
+ usingComponents = {
71
+ ...globalUsingComponents,
72
+ ...newJson.usingComponents,
73
+ };
71
74
  }
72
75
  Object.keys(usingComponents).forEach((name) => {
73
76
  const componentFilename = usingComponents[name];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3041120220520001",
3
+ "version": "3.0.0-alpha-3041320220527002",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "@babel/core": "^7.17.9",
23
23
  "@babel/parser": "^7.17.9",
24
24
  "@babel/types": "^7.17.0",
25
- "@dcloudio/uni-i18n": "3.0.0-alpha-3041120220520001",
26
- "@dcloudio/uni-shared": "3.0.0-alpha-3041120220520001",
25
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3041320220527002",
26
+ "@dcloudio/uni-shared": "3.0.0-alpha-3041320220527002",
27
27
  "@intlify/core-base": "9.1.9",
28
28
  "@intlify/shared": "9.1.9",
29
29
  "@intlify/vue-devtools": "9.1.9",