Skip to content

Commit 0cad2e8

Browse files
committed
chore: build optimizations for reduced apk size
1 parent ff4ee3a commit 0cad2e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,18 @@ android {
2323
buildTypes {
2424
release {
2525
isMinifyEnabled = true
26+
isShrinkResources = true
2627
proguardFiles(
2728
getDefaultProguardFile("proguard-android-optimize.txt"),
2829
"proguard-rules.pro"
2930
)
31+
32+
ndk {
33+
// maplibre native increases the app size by a lot, hence we limit
34+
// the architectures that we're building for
35+
// see https://github.com/maplibre/maplibre-compose/discussions/615
36+
abiFilters.addAll(listOf("arm64-v8a", "armeabi-v7a"))
37+
}
3038
}
3139
debug {
3240
isDebuggable = true

0 commit comments

Comments
 (0)