Magisk/stub/build.gradle.kts

39 lines
962 B
Plaintext
Raw Normal View History

2020-07-04 06:53:31 -07:00
plugins {
id("com.android.application")
}
android {
val canary = !Config.appVersion.contains(".")
2020-07-04 06:53:31 -07:00
defaultConfig {
applicationId = "com.topjohnwu.magisk"
versionCode = 1
versionName = Config.appVersion
buildConfigField("int", "STUB_VERSION", "15")
2020-07-04 06:53:31 -07:00
buildConfigField("String", "DEV_CHANNEL", Config["DEV_CHANNEL"] ?: "null")
buildConfigField("boolean", "CANARY", if (canary) "true" else "false")
2020-07-04 06:53:31 -07:00
}
buildTypes {
getByName("release") {
isMinifyEnabled = true
2020-12-29 02:39:47 -08:00
isShrinkResources = false
2020-10-16 13:59:40 +08:00
proguardFiles("proguard-rules.pro")
2020-07-04 06:53:31 -07:00
}
}
2020-08-14 00:40:24 +08:00
2020-12-29 02:39:47 -08:00
aaptOptions {
additionalParameters("--package-id", "0x80")
}
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"))
}