Skip to content
Snippets Groups Projects
Commit b37b27eb authored by Taras's avatar Taras
Browse files

Add ABI_FILTERS property for fdroid

parent 935bd81c
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@ apply plugin: 'androidx.navigation.safeargs.kotlin'
apply plugin: 'kotlin-kapt'
apply plugin: 'dagger.hilt.android.plugin'
def splitApks = !project.hasProperty("noSplits")
android {
compileSdk rootProject.ext.sdk_version
......@@ -17,14 +19,24 @@ android {
archivesBaseName = "circles-v${versionName}"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
if (project.hasProperty("noSplits")) {
ndk {
(project.properties["ABI_FILTERS"] as String).split(';').each {
abiFilters.add(it)
}
}
}
}
splits {
abi {
enable true
reset()
include "x86", "x86_64", "arm64-v8a", "armeabi-v7a"
universalApk false
if (splitApks) {
splits {
abi {
enable true
reset()
include "x86", "x86_64", "arm64-v8a", "armeabi-v7a"
universalApk false
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment