Magisk/stub/build.gradle.kts
topjohnwu de3747d65e Copy APK from external storage in stub
Much faster and easier development
2021-12-13 04:05:42 -08:00

44 lines
988 B
Plaintext

plugins {
id("com.android.application")
id("io.michaelrocks.paranoid")
}
paranoid {
obfuscationSeed = if (RAND_SEED != 0) RAND_SEED else null
includeSubprojects = true
}
android {
val canary = !Config.version.contains(".")
val url = if (canary) null
else "https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@${Config.version}/app-release.apk"
defaultConfig {
applicationId = "com.topjohnwu.magisk"
versionCode = 1
versionName = "1.0"
buildConfigField("int", "STUB_VERSION", Config.stubVersion)
buildConfigField("String", "APK_URL", url?.let { "\"$it\"" } ?: "null" )
}
buildTypes {
release {
isMinifyEnabled = true
isShrinkResources = false
proguardFiles("proguard-rules.pro")
}
}
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
}
setupStub()
dependencies {
implementation(project(":app:shared"))
}