2020-07-04 06:53:31 -07:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2020-10-03 01:57:53 -07:00
|
|
|
val canary = !Config["appVersion"].orEmpty().contains(".")
|
|
|
|
|
2020-07-04 06:53:31 -07:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.topjohnwu.magisk"
|
|
|
|
versionCode = 1
|
|
|
|
versionName = Config["appVersion"]
|
|
|
|
buildConfigField("String", "DEV_CHANNEL", Config["DEV_CHANNEL"] ?: "null")
|
2020-10-03 01:57:53 -07:00
|
|
|
buildConfigField("boolean", "CANARY", if (canary) "true" else "false")
|
2020-07-04 06:53:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
getByName("release") {
|
|
|
|
isMinifyEnabled = true
|
|
|
|
isShrinkResources = true
|
|
|
|
proguardFiles(
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
"proguard-rules.pro"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2020-08-14 00:40:24 +08:00
|
|
|
|
|
|
|
dependenciesInfo {
|
|
|
|
includeInApk = false
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
2020-07-04 06:53:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
|
|
|
implementation(project(":app:shared"))
|
|
|
|
}
|