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.LibraryExtension
|
||||||
import com.android.build.gradle.BaseExtension
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.application") apply false
|
id("com.android.application") apply false
|
||||||
@@ -30,30 +29,24 @@ tasks.register("Delete", Delete::class) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun Project.configureBaseExtension() {
|
fun Project.configureBaseExtension() {
|
||||||
extensions.findByType(BaseExtension::class)?.run {
|
extensions.findByType(LibraryExtension::class)?.run {
|
||||||
namespace = "icu.nullptr.zygisksu"
|
namespace = "icu.nullptr.zygisksu"
|
||||||
compileSdkVersion(androidCompileSdkVersion)
|
compileSdk = androidCompileSdkVersion
|
||||||
ndkVersion = androidCompileNdkVersion
|
ndkVersion = androidCompileNdkVersion
|
||||||
buildToolsVersion = androidBuildToolsVersion
|
buildToolsVersion = androidBuildToolsVersion
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = androidMinSdkVersion
|
minSdk = androidMinSdkVersion
|
||||||
targetSdk = androidTargetSdkVersion
|
targetSdk = androidTargetSdkVersion
|
||||||
versionCode = verCode
|
|
||||||
versionName = verName
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extensions.findByType(ApplicationExtension::class)?.lint {
|
lint {
|
||||||
abortOnError = true
|
abortOnError = true
|
||||||
checkReleaseBuilds = false
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
plugins.withId("com.android.application") {
|
|
||||||
configureBaseExtension()
|
|
||||||
}
|
|
||||||
plugins.withId("com.android.library") {
|
plugins.withId("com.android.library") {
|
||||||
configureBaseExtension()
|
configureBaseExtension()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ plugins {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
|
androidResources = false
|
||||||
|
buildConfig = false
|
||||||
prefab = true
|
prefab = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
plugins {
|
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 verCode: Int by rootProject.extra
|
||||||
val verName: String 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")
|
id("org.mozilla.rust-android-gradle.rust-android")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
android.buildFeatures {
|
||||||
|
androidResources = false
|
||||||
|
buildConfig = false
|
||||||
|
}
|
||||||
|
|
||||||
cargo {
|
cargo {
|
||||||
module = "."
|
module = "."
|
||||||
libname = "zygiskd"
|
libname = "zygiskd"
|
||||||
targetIncludes = arrayOf("zygiskd")
|
targetIncludes = arrayOf("zygiskd")
|
||||||
targets = listOf("arm64", "arm", "x86", "x86_64")
|
targets = listOf("arm64", "arm", "x86", "x86_64")
|
||||||
|
targetDirectory = "build/intermediates/rust"
|
||||||
val isDebug = gradle.startParameter.taskNames.any { it.toLowerCase().contains("debug") }
|
val isDebug = gradle.startParameter.taskNames.any { it.toLowerCase().contains("debug") }
|
||||||
profile = if (isDebug) "debug" else "release"
|
profile = if (isDebug) "debug" else "release"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user