mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 20:45:24 +00:00
46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("org.lsposed.lsparanoid")
|
|
}
|
|
|
|
lsparanoid {
|
|
seed = if (RAND_SEED != 0) RAND_SEED else null
|
|
includeDependencies = true
|
|
classFilter = { true }
|
|
}
|
|
|
|
android {
|
|
namespace = "com.topjohnwu.magisk"
|
|
|
|
val canary = !Config.version.contains(".")
|
|
|
|
val url = if (canary) null
|
|
else "https://github.com/topjohnwu/Magisk/releases/download/v${Config.version}/Magisk-v${Config.version}.apk"
|
|
|
|
defaultConfig {
|
|
applicationId = "com.topjohnwu.magisk"
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
buildConfigField("String", "APK_URL", url?.let { "\"$it\"" } ?: "null" )
|
|
buildConfigField("int", "STUB_VERSION", Config.stubVersion)
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = false
|
|
proguardFiles("proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
}
|
|
|
|
setupStub()
|
|
|
|
dependencies {
|
|
implementation(project(":app:shared"))
|
|
}
|