File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ android {
3939 buildConfigField(' String' , ' BUGLY_ID' , ' "' + BUGLY_ID + ' "' )
4040 // BuglyKey
4141 buildConfigField(' String' , ' BUGLY_KEY' , ' "' + BUGLY_KEY + ' "' )
42+
43+ // 仅保留 arm64-v8a 架构(需要注意的是 mmkv 库在 2.0 及之后的版本已经不支持在 32 位的机器上面运行)
44+ ndk {
45+ abiFilters ' arm64-v8a'
46+ }
4247 }
4348
4449 sourceSets {
@@ -82,10 +87,6 @@ android {
8287 addManifestPlaceholders([
8388 ' app_name' : ' @string/app_name_debug'
8489 ])
85- // 调试模式下只保留一种架构的 so 库,提升打包速度
86- ndk {
87- abiFilters ' arm64-v8a'
88- }
8990 }
9091
9192 preview. initWith(debug)
@@ -113,13 +114,6 @@ android {
113114 addManifestPlaceholders([
114115 ' app_name' : ' @string/app_name'
115116 ])
116- // 仅保留两种架构的 so 库,根据 Bugly 统计得出
117- ndk {
118- // armeabi:万金油架构平台(占用率:0%)
119- // armeabi-v7a:曾经主流的架构平台(占用率:5%)
120- // arm64-v8a:目前主流架构平台(占用率:95%)
121- abiFilters ' armeabi-v7a' , ' arm64-v8a'
122- }
123117 }
124118 }
125119
You can’t perform that action at this time.
0 commit comments