mirror of
https://github.com/topjohnwu/Magisk
synced 2024-11-14 22:28:37 +01:00
34 lines
845 B
Plaintext
34 lines
845 B
Plaintext
plugins {
|
|
id("com.android.application")
|
|
}
|
|
|
|
android {
|
|
val canary = !Config["appVersion"].orEmpty().contains(".")
|
|
|
|
defaultConfig {
|
|
applicationId = "com.topjohnwu.magisk"
|
|
versionCode = 1
|
|
versionName = Config["appVersion"]
|
|
buildConfigField("String", "DEV_CHANNEL", Config["DEV_CHANNEL"] ?: "null")
|
|
buildConfigField("boolean", "CANARY", if (canary) "true" else "false")
|
|
}
|
|
|
|
buildTypes {
|
|
getByName("release") {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
proguardFiles("proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
dependenciesInfo {
|
|
includeInApk = false
|
|
includeInBundle = false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
|
implementation(project(":app:shared"))
|
|
}
|