Print Supported Abi
task("hi") {
doLast {
println("Supported ABIs: ${android.defaultConfig.ndk.abiFilters}")
}
}
android {
compileSdk = getAndroidApiVersion()
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = 24
targetSdk = 32
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
ndk {
abiFilters += listOf("x86_64", "armeabi-v7a", "arm64-v8a")
}
externalNativeBuild {
cmake {
arguments("-DANDROID_API_LEVEL=${getAndroidApiVersion()}")
abiFilters("arm64-v8a", "armeabi-v7a", "x86_64")
}
}
}