mobile: APK 压缩打包 native 库(useLegacyPackaging),arm64 包从 52MB 降到 23MB,绕开附件平台 50MB 上传上限
This commit is contained in:
@@ -25,6 +25,14 @@ android {
|
||||
versionName = flutter.versionName
|
||||
}
|
||||
|
||||
// 压缩打包 .so(默认未压缩存储,OpenIM/WebRTC 的 native 库让包多占近一倍体积);
|
||||
// 代价是安装时多解压一次,对内网分发来说体积更关键。
|
||||
packaging {
|
||||
jniLibs {
|
||||
useLegacyPackaging = true
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
|
||||
Reference in New Issue
Block a user