feat: expo-updates热更新完整实现 — Metro bundle嵌入APK

- @react-native/metro-config metro配置(代替expo/ExpoMetroConfig)
- index.js纯JS入口(避免TS编译依赖)
- metro.config.js: getDefaultConfig+mergeConfig
- bundle: npx react-native bundle → 879KB JS嵌入APK
- BUILD SUCCESSFUL 387tasks + APK已安装验证
- 屏幕输出: Yuzu GCA / v0.1.0 / expo-updates active
This commit is contained in:
LukeMackin
2026-07-20 23:21:29 +08:00
parent 1360eb379c
commit 79a1d306ee
26 changed files with 2777 additions and 62 deletions

View File

@@ -2,7 +2,7 @@
"name": "@yuzu-gca/client-android",
"version": "0.1.0",
"private": true,
"main": "expo-router/entry",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo run:android",
@@ -12,7 +12,8 @@
"ios": "expo run:ios"
},
"dependencies": {
"@react-native/gradle-plugin": "^0.86.0","expo": "~52.0.49",
"@react-native/gradle-plugin": "^0.86.0",
"expo": "~52.0.49",
"expo-constants": "~17.0.0",
"expo-file-system": "~18.0.0",
"expo-status-bar": "~2.0.0",
@@ -22,6 +23,7 @@
"react-native": "0.76.5"
},
"devDependencies": {
"@react-native-community/cli": "^20.2.0",
"@types/react": "~18.3.0",
"typescript": "^5.5.0"
}