feat(expo): JS热更新(expo-updates) + APK大更新双轨

- app.json: expo-updates配置(checkAutomatically ON_LOAD)
- ota/expo-manifest.json: JS bundle热更新manifest
- App.tsx: 启动时自动检查JS+APK双轨更新
- pnpm install后npx expo prebuild生成android/原生工程
This commit is contained in:
LukeMackin
2026-07-19 23:40:17 +08:00
parent a2f204f5ee
commit e5ce52ac40
2 changed files with 18 additions and 23 deletions

View File

@@ -4,39 +4,24 @@
"slug": "yuzu-gca",
"version": "0.1.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "dark",
"newArchEnabled": true,
"splash": {
"backgroundColor": "#0f172a"
},
"ios": {
"supportsTablet": false,
"bundleIdentifier": "dev.yuzu.gca"
},
"splash": { "backgroundColor": "#0f172a" },
"ios": { "supportsTablet": false, "bundleIdentifier": "dev.yuzu.gca" },
"android": {
"adaptiveIcon": {
"backgroundColor": "#0f172a"
},
"adaptiveIcon": { "backgroundColor": "#0f172a" },
"package": "dev.yuzu.gca",
"allowBackup": false,
"permissions": [
"REQUEST_INSTALL_PACKAGES"
]
"versionCode": 8,
"permissions": ["REQUEST_INSTALL_PACKAGES"]
},
"plugins": [
"expo-updates"
],
"plugins": ["expo-updates"],
"updates": {
"enabled": true,
"checkAutomatically": "ON_LOAD",
"fallbackToCacheTimeout": 3000,
"url": "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/releases/download/manifest/expo-manifest.json"
"url": "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/raw/branch/main/ota/expo-manifest.json"
},
"extra": {
"eas": {
"projectId": "yuzu-gca-android"
}
}
"extra": { "eas": { "projectId": "yuzu-gca-android" } }
}
}