@dcloudio/uni-cli-shared 3.0.0-alpha-3050520220824001 → 3.0.0-alpha-3050520220824002
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.
- package/dist/preprocess/context.js +12 -0
- package/lib/.DS_Store +0 -0
- package/lib/vue-i18n/.DS_Store +0 -0
- package/package.json +3 -3
|
@@ -8,6 +8,8 @@ const DEFAULT_KEYS = [
|
|
|
8
8
|
'APP_PLUS',
|
|
9
9
|
'APP_PLUS_NVUE',
|
|
10
10
|
'APP_VUE',
|
|
11
|
+
'APP_ANDROID',
|
|
12
|
+
'APP_IOS',
|
|
11
13
|
'H5',
|
|
12
14
|
'MP',
|
|
13
15
|
'MP_360',
|
|
@@ -52,6 +54,16 @@ function initPreContext(platform, userPreContext) {
|
|
|
52
54
|
vueContext.APP_VUE = true;
|
|
53
55
|
nvueContext.APP_NVUE = true;
|
|
54
56
|
nvueContext.APP_PLUS_NVUE = true;
|
|
57
|
+
if (process.env.UNI_APP_PLATFORM === 'app-android') {
|
|
58
|
+
defaultContext.APP_ANDROID = true;
|
|
59
|
+
}
|
|
60
|
+
else if (process.env.UNI_APP_PLATFORM === 'app-ios') {
|
|
61
|
+
defaultContext.APP_IOS = true;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
defaultContext.APP_ANDROID = true;
|
|
65
|
+
defaultContext.APP_IOS = true;
|
|
66
|
+
}
|
|
55
67
|
}
|
|
56
68
|
else if (platform.startsWith('mp-')) {
|
|
57
69
|
defaultContext.MP = true;
|
package/lib/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3050520220824002",
|
|
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-
|
|
26
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
25
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3050520220824002",
|
|
26
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3050520220824002",
|
|
27
27
|
"@intlify/core-base": "9.1.9",
|
|
28
28
|
"@intlify/shared": "9.1.9",
|
|
29
29
|
"@intlify/vue-devtools": "9.1.9",
|