Files
Zygisk-Assistant/build.gradle.kts
2024-01-16 19:28:29 -03:00

34 lines
1002 B
Plaintext

import java.io.ByteArrayOutputStream
plugins {
alias(libs.plugins.agp.lib) apply false
}
fun String.execute(currentWorkingDir: File = file("./")): String {
val byteOut = ByteArrayOutputStream()
project.exec {
workingDir = currentWorkingDir
commandLine = split("\\s".toRegex())
standardOutput = byteOut
}
return String(byteOut.toByteArray()).trim()
}
val moduleId by extra("qingyue")
val moduleName by extra("Zygisk Qingyue")
val verName by extra("v0.1.1")
val verCode by extra(110)
val abiList by extra(listOf("arm64-v8a"))
val androidMinSdkVersion by extra(29)
val androidTargetSdkVersion by extra(34)
val androidCompileSdkVersion by extra(34)
val androidBuildToolsVersion by extra("34.0.0")
val androidCompileNdkVersion by extra("26.0.10792818")
val androidSourceCompatibility by extra(JavaVersion.VERSION_11)
val androidTargetCompatibility by extra(JavaVersion.VERSION_11)
tasks.register("Delete", Delete::class) {
delete(rootProject.buildDir)
}