misc: allow to disable new api in build script

This commit is contained in:
ACh Sulfate
2024-07-23 13:46:37 +08:00
parent 8b5c6414c2
commit 74d3203216

View File

@@ -60,6 +60,7 @@ if (ccacheExecutablePath != null) {
} }
val fullNativeDebugMode = false val fullNativeDebugMode = false
val isNewXposedApiEnabled = true
fun getSignatureKeyDigest(signConfig: SigningConfig?): String? { fun getSignatureKeyDigest(signConfig: SigningConfig?): String? {
var key1: String? = if (signConfig != null && signConfig.storeFile != null) { var key1: String? = if (signConfig != null && signConfig.storeFile != null) {
@@ -214,6 +215,9 @@ android {
"kotlin-tooling-metadata.json" "kotlin-tooling-metadata.json"
) )
) )
if (!isNewXposedApiEnabled) {
resources.excludes.add("META-INF/xposed/**")
}
} }
buildFeatures { buildFeatures {