2020-07-04 13:53:31 +00:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2020-12-29 09:44:02 +00:00
|
|
|
val canary = !Config.appVersion.contains(".")
|
2020-10-03 08:57:53 +00:00
|
|
|
|
2020-07-04 13:53:31 +00:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.topjohnwu.magisk"
|
|
|
|
versionCode = 1
|
2020-12-28 04:13:50 +00:00
|
|
|
versionName = Config.appVersion
|
2020-12-29 09:44:02 +00:00
|
|
|
buildConfigField("int", "STUB_VERSION", "15")
|
2020-07-04 13:53:31 +00:00
|
|
|
buildConfigField("String", "DEV_CHANNEL", Config["DEV_CHANNEL"] ?: "null")
|
2020-10-03 08:57:53 +00:00
|
|
|
buildConfigField("boolean", "CANARY", if (canary) "true" else "false")
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
getByName("release") {
|
|
|
|
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
|
|
|
|
2020-12-29 10:39:47 +00:00
|
|
|
aaptOptions {
|
|
|
|
additionalParameters("--package-id", "0x80")
|
|
|
|
}
|
|
|
|
|
2020-08-13 16:40:24 +00:00
|
|
|
dependenciesInfo {
|
|
|
|
includeInApk = false
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
|
|
|
implementation(project(":app:shared"))
|
|
|
|
}
|