4 Commits

Author SHA1 Message Date
LukeMackin
73d7eff9d9 merge: 同步main的清理 2026-07-20 12:57:23 +08:00
LukeMackin
6cd2a22d09 feat(expo): app.json 添加 runtimeVersion 字段 2026-07-20 00:38:32 +08:00
LukeMackin
71f6b6369b fix: expo-manifest.json 改为 Expo Updates Modern Manifest 格式(id+createdAt+runtimeVersion) 2026-07-19 23:46:17 +08:00
LukeMackin
e5ce52ac40 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/原生工程
2026-07-19 23:40:17 +08:00
2 changed files with 21 additions and 23 deletions

12
ota/expo-manifest.json Normal file
View File

@@ -0,0 +1,12 @@
{
"id": "e5ce52a-0000-0000-0000-000000000000",
"createdAt": "2026-07-19T15:30:00.000Z",
"runtimeVersion": "0.1.0",
"launchAsset": {
"key": "bundle",
"contentType": "application/javascript",
"url": "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/releases/download/v0.1.0-dav-android-8/bundle.js"
},
"assets": [],
"metadata": {}
}

View File

@@ -3,40 +3,26 @@
"name": "YuzuGCA",
"slug": "yuzu-gca",
"version": "0.1.0",
"runtimeVersion": "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" } }
}
}