You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Historically "zygisksu" is the ZygiskOnKernelSU (known as Zygisk Next) module id, which due to ReZygisk being a fork of Zygisk Next, was used by it. To avoid conflicts in systems like MMRL, we decided to change it to "rezygisk". This, however, will allow both to be installed in the same system, although causing problems, as a side effect. The old module, with the old module id, must be uninstalled while the new one is installed. closes #113
67 lines
1.9 KiB
Plaintext
67 lines
1.9 KiB
Plaintext
import com.android.build.gradle.LibraryExtension
|
|
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 gitCommitCount = "git rev-list HEAD --count".execute().toInt()
|
|
val gitCommitHash = "git rev-parse --verify --short HEAD".execute()
|
|
|
|
val moduleId by extra("rezygisk")
|
|
val moduleName by extra("ReZygisk")
|
|
val verName by extra("v1.0.0")
|
|
val verCode by extra(gitCommitCount)
|
|
val commitHash by extra(gitCommitHash)
|
|
val minAPatchVersion by extra(10655)
|
|
val minKsuVersion by extra(10940)
|
|
val minKsudVersion by extra(11425)
|
|
val maxKsuVersion by extra(20000)
|
|
val minMagiskVersion by extra(26402)
|
|
|
|
val androidMinSdkVersion by extra(26)
|
|
val androidTargetSdkVersion by extra(34)
|
|
val androidCompileSdkVersion by extra(34)
|
|
val androidBuildToolsVersion by extra("34.0.0")
|
|
val androidCompileNdkVersion by extra("27.2.12479018")
|
|
val androidSourceCompatibility by extra(JavaVersion.VERSION_11)
|
|
val androidTargetCompatibility by extra(JavaVersion.VERSION_11)
|
|
|
|
tasks.register("Delete", Delete::class) {
|
|
delete(rootProject.buildDir)
|
|
}
|
|
|
|
fun Project.configureBaseExtension() {
|
|
extensions.findByType(LibraryExtension::class)?.run {
|
|
namespace = "icu.nullptr.zygisk.next"
|
|
compileSdk = androidCompileSdkVersion
|
|
ndkVersion = androidCompileNdkVersion
|
|
buildToolsVersion = androidBuildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdk = androidMinSdkVersion
|
|
targetSdk = androidTargetSdkVersion
|
|
}
|
|
|
|
lint {
|
|
abortOnError = true
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
plugins.withId("com.android.library") {
|
|
configureBaseExtension()
|
|
}
|
|
}
|