log panel hidden
This commit is contained in:
@@ -13,6 +13,8 @@ val configuredAbiList = (project.findProperty("abiList") as String?)
|
||||
?.filter { it.isNotEmpty() }
|
||||
?.ifEmpty { null }
|
||||
?: defaultAbiList
|
||||
val buildUniversalApk = configuredAbiList.size > 1
|
||||
val singleAbi = configuredAbiList.singleOrNull()
|
||||
|
||||
android {
|
||||
namespace = "io.github.miuzarte.scrcpyforandroid"
|
||||
@@ -74,10 +76,10 @@ android {
|
||||
|
||||
splits {
|
||||
abi {
|
||||
isEnable = true
|
||||
isEnable = buildUniversalApk
|
||||
reset()
|
||||
include(*configuredAbiList.toTypedArray())
|
||||
isUniversalApk = true
|
||||
isUniversalApk = buildUniversalApk
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,6 +113,16 @@ android {
|
||||
ndkVersion = "29.0.14206865"
|
||||
}
|
||||
|
||||
androidComponents {
|
||||
onVariants { variant ->
|
||||
singleAbi?.let { abi ->
|
||||
variant.outputs.forEach { output ->
|
||||
output.outputFileName.set("app-$abi-${variant.name}.apk")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.androidx.core.ktx)
|
||||
implementation(libs.androidx.lifecycle.runtime.ktx)
|
||||
|
||||
Reference in New Issue
Block a user