2020-07-04 15:53:31 +02:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2021-01-22 11:28:53 +01:00
|
|
|
val canary = !Config.version.contains(".")
|
2020-10-03 10:57:53 +02:00
|
|
|
|
2020-07-04 15:53:31 +02:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.topjohnwu.magisk"
|
|
|
|
versionCode = 1
|
2021-01-22 11:28:53 +01:00
|
|
|
versionName = Config.version
|
2021-01-23 05:45:37 +01:00
|
|
|
buildConfigField("int", "STUB_VERSION", Config.stubVersion)
|
2020-07-04 15:53:31 +02:00
|
|
|
buildConfigField("String", "DEV_CHANNEL", Config["DEV_CHANNEL"] ?: "null")
|
2020-10-03 10:57:53 +02:00
|
|
|
buildConfigField("boolean", "CANARY", if (canary) "true" else "false")
|
2020-07-04 15:53:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
getByName("release") {
|
|
|
|
isMinifyEnabled = true
|
2020-12-29 11:39:47 +01:00
|
|
|
isShrinkResources = false
|
2020-10-16 07:59:40 +02:00
|
|
|
proguardFiles("proguard-rules.pro")
|
2020-07-04 15:53:31 +02:00
|
|
|
}
|
|
|
|
}
|
2020-08-13 18:40:24 +02:00
|
|
|
|
2020-12-29 11:39:47 +01:00
|
|
|
aaptOptions {
|
|
|
|
additionalParameters("--package-id", "0x80")
|
|
|
|
}
|
|
|
|
|
2020-08-13 18:40:24 +02:00
|
|
|
dependenciesInfo {
|
|
|
|
includeInApk = false
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
2020-07-04 15:53:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
|
|
|
implementation(project(":app:shared"))
|
|
|
|
}
|