Skip to content

Commit 29dcdf6

Browse files
committed
Split ABIs
1 parent 687e2c1 commit 29dcdf6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

app/build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ android {
2929
)
3030
}
3131
}
32+
33+
splits {
34+
abi {
35+
isEnable = true
36+
reset()
37+
38+
val abiFilterFromProperty = project.findProperty("abiFilter") as? String
39+
if (!abiFilterFromProperty.isNullOrEmpty()) {
40+
include(abiFilterFromProperty)
41+
} else {
42+
include("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
43+
}
44+
}
45+
}
46+
3247
compileOptions {
3348
sourceCompatibility = JavaVersion.VERSION_11
3449
targetCompatibility = JavaVersion.VERSION_11

0 commit comments

Comments
 (0)