Magisk/stub/build.gradle.kts

44 lines
1013 B
Plaintext
Raw Normal View History

2020-07-04 13:53:31 +00:00
plugins {
id("com.android.application")
2021-09-07 16:45:15 +00:00
id("io.michaelrocks.paranoid")
2020-07-04 13:53:31 +00:00
}
2021-09-07 16:45:15 +00:00
paranoid {
2021-09-03 04:31:33 +00:00
obfuscationSeed = if (RAND_SEED != 0) RAND_SEED else null
includeSubprojects = true
}
2020-07-04 13:53:31 +00:00
android {
val canary = !Config.version.contains(".")
2021-03-05 13:09:25 +00:00
val url = Config["DEV_CHANNEL"] ?: if (canary) null
else "https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@${Config.version}/app-release.apk"
2020-07-04 13:53:31 +00:00
defaultConfig {
applicationId = "com.topjohnwu.magisk"
versionCode = 1
2021-09-03 04:31:33 +00:00
versionName = "1.0"
2021-01-23 04:45:37 +00:00
buildConfigField("int", "STUB_VERSION", Config.stubVersion)
2021-03-05 13:09:25 +00:00
buildConfigField("String", "APK_URL", url?.let { "\"$it\"" } ?: "null" )
2020-07-04 13:53:31 +00:00
}
buildTypes {
2021-09-07 16:45:15 +00:00
release {
2020-07-04 13:53:31 +00:00
isMinifyEnabled = true
2020-12-29 10:39:47 +00:00
isShrinkResources = false
2020-10-16 05:59:40 +00:00
proguardFiles("proguard-rules.pro")
2020-07-04 13:53:31 +00:00
}
}
2020-08-13 16:40:24 +00:00
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
2020-07-04 13:53:31 +00:00
}
2021-09-10 03:19:49 +00:00
setupStub()
2021-09-03 04:31:33 +00:00
2020-07-04 13:53:31 +00:00
dependencies {
implementation(project(":app:shared"))
}