log panel hidden

This commit is contained in:
Miuzarte
2026-04-25 18:15:13 +08:00
parent 4cfb5b31c9
commit 84cf447b84
8 changed files with 181 additions and 76 deletions

View File

@@ -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)