feat(android): OTA双轨更新 — shared版本号+Android Expo/PackageInstaller
- packages/shared: 版本号解析 vX.Y.Z-dav-{client}-{build} + manifest远程检查
- packages/client-android: Expo52 + expo-updates JS bundle OTA
- PackageInstallerModule.kt: APK静默安装原生模块(~60行Kotlin)
- monorepo: pnpm workspace + 版本号体系
This commit is contained in:
42
packages/client-android/app.json
Normal file
42
packages/client-android/app.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"expo": {
|
||||
"name": "YuzuGCA",
|
||||
"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"
|
||||
},
|
||||
"android": {
|
||||
"adaptiveIcon": {
|
||||
"backgroundColor": "#0f172a"
|
||||
},
|
||||
"package": "dev.yuzu.gca",
|
||||
"allowBackup": false,
|
||||
"permissions": [
|
||||
"REQUEST_INSTALL_PACKAGES"
|
||||
]
|
||||
},
|
||||
"plugins": [
|
||||
"expo-updates"
|
||||
],
|
||||
"updates": {
|
||||
"enabled": true,
|
||||
"checkAutomatically": "ON_LOAD",
|
||||
"fallbackToCacheTimeout": 0,
|
||||
"url": "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/releases/download/manifest/expo-manifest.json"
|
||||
},
|
||||
"extra": {
|
||||
"eas": {
|
||||
"projectId": "yuzu-gca-android"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user