Skip to content

Commit ec134f9

Browse files
SampleApp: ABI split final APK
1 parent 127b661 commit ec134f9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

android-sample-app/app/build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ android {
2323
version "3.10.2"
2424
}
2525
}
26+
splits {
27+
abi {
28+
// Enables building multiple APKs per ABI.
29+
enable true
30+
31+
// By default all ABIs are included, so use reset() and include to specify that we only
32+
// want APKs for x86 and x86_64.
33+
34+
// Resets the list of ABIs that Gradle should create APKs for to none.
35+
reset()
36+
37+
// Specifies a list of ABIs that Gradle should create APKs for.
38+
include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
39+
40+
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
41+
universalApk true
42+
}
43+
}
2644
}
2745

2846
dependencies {

0 commit comments

Comments
 (0)