Rewrote the build system and module...

+ Added more architectures to compile.
- Removed all scripts from the module, now it is compatible with all root implementations.
- Removed unused code and variables.
- Removed most references to the module name.
* Compilation is now parallelized.
This commit is contained in:
snake-4
2024-03-25 00:19:26 +01:00
parent 813cc9807c
commit f7d067546d
10 changed files with 19 additions and 194 deletions

View File

@@ -4,30 +4,8 @@ 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("v1.0.0")
val verCode by extra(100)
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)
}
val abiList by extra(listOf("armeabi-v7a","arm64-v8a","x86","x86_64"))