@htyf-mp/cli 0.2.12 → 0.2.14
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/package.json +1 -1
- package/src/HtyfImportsPlugin.mjs +23 -0
- package/src/config.mjs +6 -3
- package/src/shared-output.json +29 -28
package/package.json
CHANGED
|
@@ -342,6 +342,29 @@ export class HtyfModulesPlugin {
|
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
try {
|
|
345
|
+
// 确保 react-native 版本在依赖报告中
|
|
346
|
+
if (!dependencies['react-native']) {
|
|
347
|
+
// 如果 shared-output.json 中没有,尝试从 package.json 读取
|
|
348
|
+
try {
|
|
349
|
+
const packageJsonPath = path.join(nodeModulesPath, '../package.json');
|
|
350
|
+
if (fse.pathExistsSync(packageJsonPath)) {
|
|
351
|
+
const packageJson = fse.readJsonSync(packageJsonPath);
|
|
352
|
+
const reactNativeVersion = packageJson.dependencies?.['react-native'] ||
|
|
353
|
+
packageJson.devDependencies?.['react-native'];
|
|
354
|
+
if (reactNativeVersion) {
|
|
355
|
+
const cleanVersion = reactNativeVersion.replace(/^[~^]/, '');
|
|
356
|
+
dependencies['react-native'] = {
|
|
357
|
+
name: 'react-native',
|
|
358
|
+
version: cleanVersion,
|
|
359
|
+
nativeModule: true,
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
} catch (error) {
|
|
364
|
+
// 静默失败
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
345
368
|
const reportDir = path.dirname(manifest);
|
|
346
369
|
fse.ensureDirSync(reportDir);
|
|
347
370
|
fse.writeJsonSync(
|
package/src/config.mjs
CHANGED
|
@@ -33,9 +33,12 @@ export class ProjectConfig {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
generateAppId() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
// 生成唯一的 UUID,然后转换为 MD5
|
|
37
|
+
// 使用时间戳和随机数确保唯一性
|
|
38
|
+
const timestamp = Date.now();
|
|
39
|
+
const randomUuid = uuidv4();
|
|
40
|
+
const uniqueString = `${timestamp}-${randomUuid}`;
|
|
41
|
+
return md5(uniqueString);
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
createProjectConfig(appName, displayName, appid, rotate) {
|
package/src/shared-output.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"@bam.tech/react-native-image-resizer": "3.0.11",
|
|
3
3
|
"@borndotcom/react-native-godot": "1.0.1",
|
|
4
4
|
"@boterop/react-native-background-timer": "2.6.0",
|
|
5
|
-
"@callstack/repack": "5.2.
|
|
5
|
+
"@callstack/repack": "5.2.3",
|
|
6
6
|
"@d11/react-native-fast-image": "8.13.0",
|
|
7
7
|
"@dr.pogodin/react-native-fs": "2.36.1",
|
|
8
8
|
"@dr.pogodin/react-native-static-server": "0.25.3",
|
|
@@ -22,60 +22,60 @@
|
|
|
22
22
|
"@react-native-picker/picker": "2.11.4",
|
|
23
23
|
"@react-native-segmented-control/segmented-control": "2.5.7",
|
|
24
24
|
"@sayem314/react-native-keep-awake": "1.4.0",
|
|
25
|
-
"@shopify/react-native-skia": "2.4.
|
|
26
|
-
"expo": "54.0.
|
|
27
|
-
"expo-asset": "12.0.
|
|
28
|
-
"expo-audio": "1.0
|
|
29
|
-
"expo-brightness": "14.0.
|
|
30
|
-
"expo-camera": "17.0.
|
|
31
|
-
"expo-clipboard": "8.0.
|
|
32
|
-
"expo-constants": "18.0.
|
|
33
|
-
"expo-crypto": "15.0.
|
|
34
|
-
"expo-document-picker": "14.0.
|
|
35
|
-
"expo-font": "14.0.
|
|
36
|
-
"expo-linear-gradient": "15.0.
|
|
37
|
-
"expo-linking": "8.0.
|
|
38
|
-
"expo-modules-autolinking": "3.0.
|
|
39
|
-
"expo-modules-core": "3.0.
|
|
40
|
-
"expo-router": "6.0.
|
|
41
|
-
"expo-system-ui": "6.0.
|
|
42
|
-
"expo-video": "3.0.
|
|
25
|
+
"@shopify/react-native-skia": "2.4.7",
|
|
26
|
+
"expo": "54.0.28",
|
|
27
|
+
"expo-asset": "12.0.11",
|
|
28
|
+
"expo-audio": "1.1.0",
|
|
29
|
+
"expo-brightness": "14.0.8",
|
|
30
|
+
"expo-camera": "17.0.10",
|
|
31
|
+
"expo-clipboard": "8.0.8",
|
|
32
|
+
"expo-constants": "18.0.11",
|
|
33
|
+
"expo-crypto": "15.0.8",
|
|
34
|
+
"expo-document-picker": "14.0.8",
|
|
35
|
+
"expo-font": "14.0.10",
|
|
36
|
+
"expo-linear-gradient": "15.0.8",
|
|
37
|
+
"expo-linking": "8.0.10",
|
|
38
|
+
"expo-modules-autolinking": "3.0.23",
|
|
39
|
+
"expo-modules-core": "3.0.28",
|
|
40
|
+
"expo-router": "6.0.18",
|
|
41
|
+
"expo-system-ui": "6.0.9",
|
|
42
|
+
"expo-video": "3.0.15",
|
|
43
43
|
"jcore-react-native": "2.3.2",
|
|
44
44
|
"jpush-react-native": "3.2.1",
|
|
45
|
-
"llama.rn": "0.9.
|
|
45
|
+
"llama.rn": "0.9.3",
|
|
46
46
|
"lottie-react-native": "7.3.4",
|
|
47
47
|
"react-airplay": "1.2.0",
|
|
48
48
|
"react-native-agora": "4.5.3",
|
|
49
49
|
"react-native-avoid-softinput": "8.0.2",
|
|
50
50
|
"react-native-background-actions": "4.0.1",
|
|
51
51
|
"react-native-ble-manager": "12.4.1",
|
|
52
|
-
"react-native-blob-util": "0.24.
|
|
52
|
+
"react-native-blob-util": "0.24.5",
|
|
53
53
|
"react-native-compressor": "1.13.0",
|
|
54
54
|
"react-native-config": "1.6.1",
|
|
55
55
|
"react-native-device-info": "15.0.1",
|
|
56
56
|
"react-native-edge-to-edge": "1.7.0",
|
|
57
|
-
"react-native-enriched": "0.
|
|
57
|
+
"react-native-enriched": "0.2.0",
|
|
58
58
|
"react-native-file-access": "3.2.0",
|
|
59
59
|
"react-native-gesture-handler": "2.29.1",
|
|
60
60
|
"react-native-get-random-values": "2.0.0",
|
|
61
61
|
"react-native-global-exception-handler": "1.0.1",
|
|
62
|
-
"react-native-google-mobile-ads": "16.0.
|
|
62
|
+
"react-native-google-mobile-ads": "16.0.1",
|
|
63
63
|
"react-native-haptic-feedback": "2.3.3",
|
|
64
|
-
"react-native-iap": "14.
|
|
64
|
+
"react-native-iap": "14.5.0",
|
|
65
65
|
"react-native-image-colors": "2.5.1",
|
|
66
66
|
"react-native-image-picker": "8.2.1",
|
|
67
67
|
"react-native-keyboard-controller": "1.20.1",
|
|
68
68
|
"react-native-keychain": "10.0.0",
|
|
69
69
|
"react-native-linear-gradient": "2.8.3",
|
|
70
70
|
"react-native-localize": "3.6.0",
|
|
71
|
-
"react-native-mmkv": "4.0
|
|
71
|
+
"react-native-mmkv": "4.1.0",
|
|
72
72
|
"react-native-nitro-modules": "0.31.10",
|
|
73
73
|
"react-native-orientation-locker": "1.7.0",
|
|
74
74
|
"react-native-pager-view": "7.0.2",
|
|
75
75
|
"react-native-permissions": "5.4.4",
|
|
76
76
|
"react-native-quick-base64": "2.2.2",
|
|
77
77
|
"react-native-quick-crypto": "1.0.0",
|
|
78
|
-
"react-native-reanimated": "4.
|
|
78
|
+
"react-native-reanimated": "4.2.0",
|
|
79
79
|
"react-native-restart": "0.0.27",
|
|
80
80
|
"react-native-safe-area-context": "5.6.2",
|
|
81
81
|
"react-native-screens": "4.18.0",
|
|
@@ -94,7 +94,8 @@
|
|
|
94
94
|
"react-native-webview": "13.16.0",
|
|
95
95
|
"react-native-wgpu": "0.4.1",
|
|
96
96
|
"react-native-wifi-reborn": "4.13.6",
|
|
97
|
-
"react-native-worklets": "0.
|
|
97
|
+
"react-native-worklets": "0.7.1",
|
|
98
98
|
"react-native-worklets-core": "1.6.2",
|
|
99
|
-
"react-native-zip-archive": "7.0.2"
|
|
99
|
+
"react-native-zip-archive": "7.0.2",
|
|
100
|
+
"react-native": "0.83.0"
|
|
100
101
|
}
|