You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Update build
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import com.android.build.api.dsl.ApplicationExtension
|
||||
import com.android.build.gradle.BaseExtension
|
||||
import com.android.build.gradle.LibraryExtension
|
||||
|
||||
plugins {
|
||||
id("com.android.application") apply false
|
||||
@@ -30,30 +29,24 @@ tasks.register("Delete", Delete::class) {
|
||||
}
|
||||
|
||||
fun Project.configureBaseExtension() {
|
||||
extensions.findByType(BaseExtension::class)?.run {
|
||||
extensions.findByType(LibraryExtension::class)?.run {
|
||||
namespace = "icu.nullptr.zygisksu"
|
||||
compileSdkVersion(androidCompileSdkVersion)
|
||||
compileSdk = androidCompileSdkVersion
|
||||
ndkVersion = androidCompileNdkVersion
|
||||
buildToolsVersion = androidBuildToolsVersion
|
||||
|
||||
defaultConfig {
|
||||
minSdk = androidMinSdkVersion
|
||||
targetSdk = androidTargetSdkVersion
|
||||
versionCode = verCode
|
||||
versionName = verName
|
||||
}
|
||||
}
|
||||
|
||||
extensions.findByType(ApplicationExtension::class)?.lint {
|
||||
abortOnError = true
|
||||
checkReleaseBuilds = false
|
||||
lint {
|
||||
abortOnError = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
plugins.withId("com.android.application") {
|
||||
configureBaseExtension()
|
||||
}
|
||||
plugins.withId("com.android.library") {
|
||||
configureBaseExtension()
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@ plugins {
|
||||
|
||||
android {
|
||||
buildFeatures {
|
||||
androidResources = false
|
||||
buildConfig = false
|
||||
prefab = true
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("com.android.library")
|
||||
}
|
||||
|
||||
val moduleName = "Zygisk On KernelSU"
|
||||
val moduleBaseId = "zygisksu"
|
||||
val authors = "Nullptr"
|
||||
|
||||
val verCode: Int by rootProject.extra
|
||||
val verName: String by rootProject.extra
|
||||
|
||||
android.buildFeatures {
|
||||
androidResources = false
|
||||
buildConfig = false
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<manifest/>
|
||||
@@ -3,11 +3,17 @@ plugins {
|
||||
id("org.mozilla.rust-android-gradle.rust-android")
|
||||
}
|
||||
|
||||
android.buildFeatures {
|
||||
androidResources = false
|
||||
buildConfig = false
|
||||
}
|
||||
|
||||
cargo {
|
||||
module = "."
|
||||
libname = "zygiskd"
|
||||
targetIncludes = arrayOf("zygiskd")
|
||||
targets = listOf("arm64", "arm", "x86", "x86_64")
|
||||
targetDirectory = "build/intermediates/rust"
|
||||
val isDebug = gradle.startParameter.taskNames.any { it.toLowerCase().contains("debug") }
|
||||
profile = if (isDebug) "debug" else "release"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user