merge: 同步生产包 ABI 约束到 release/v1.0.0

This commit is contained in:
Vicky authored and trae-solo-agent committed 2026-10-21 19:10:10 +08:00
commit e531c78997
2 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -151,8 +151,9 @@ flutter build apk --release --target-platform android-arm64,android-arm
说明:
- `android/app/build.gradle.kts` 的 `release` 已配置 `abiFilters`,只保留 `arm64-v8a` 与 `armeabi-v7a`,插件也不会再带入 `x86_64` 原生库。
- `x86_64` 只用于模拟器,不进入生产包。
- 不要直接运行 `flutter build apk --release`:默认会把 `arm64-v8a`、`armeabi-v7a`、`x86_64` 三套原生库都打进去,包体约 57MB。
- 不要直接运行 `flutter build apk --release`:默认会编译三套原生库,包体约 57MB。
- 只有需要进一步压缩单机下载体积时,才考虑 `--split-per-abi` 出分架构包(arm64 约 21MB、armv7 约 19MB),默认不用。
## 门禁
+4
View File
@@ -29,6 +29,10 @@ android {
buildTypes {
release {
// 生产包只保留 arm64-v8a 与 armeabi-v7a,避免插件带入 x86_64 原生库
ndk {
abiFilters += listOf("arm64-v8a", "armeabi-v7a")
}
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")