Magisk/stub/build.gradle.kts

41 lines
937 B
Plaintext
Raw Normal View History

2020-07-04 06:53:31 -07:00
plugins {
id("com.android.application")
2021-09-08 00:45:15 +08:00
id("io.michaelrocks.paranoid")
2020-07-04 06:53:31 -07:00
}
2021-09-08 00:45:15 +08:00
paranoid {
2021-09-02 21:31:33 -07:00
obfuscationSeed = if (RAND_SEED != 0) RAND_SEED else null
includeSubprojects = true
}
2020-07-04 06:53:31 -07:00
android {
2022-05-09 20:53:47 -07:00
namespace = "com.topjohnwu.magisk"
val canary = !Config.version.contains(".")
val url = if (canary) null
2021-03-05 05:09:25 -08:00
else "https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@${Config.version}/app-release.apk"
2020-07-04 06:53:31 -07:00
defaultConfig {
applicationId = "com.topjohnwu.magisk"
versionCode = 1
2021-09-02 21:31:33 -07:00
versionName = "1.0"
2021-01-22 20:45:37 -08:00
buildConfigField("int", "STUB_VERSION", Config.stubVersion)
2021-03-05 05:09:25 -08:00
buildConfigField("String", "APK_URL", url?.let { "\"$it\"" } ?: "null" )
2020-07-04 06:53:31 -07:00
}
buildTypes {
2021-09-08 00:45:15 +08:00
release {
2020-07-04 06:53:31 -07:00
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
}
}
}
2021-09-09 20:19:49 -07:00
setupStub()
2021-09-02 21:31:33 -07:00
2020-07-04 06:53:31 -07:00
dependencies {
implementation(project(":app:shared"))
}