Magisk/app/stub/build.gradle.kts

46 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2020-07-04 06:53:31 -07:00
plugins {
id("com.android.application")
2023-02-20 14:55:27 +08:00
id("org.lsposed.lsparanoid")
2020-07-04 06:53:31 -07:00
}
2023-02-20 14:55:27 +08:00
lsparanoid {
seed = if (RAND_SEED != 0) RAND_SEED else null
includeDependencies = true
2024-07-24 16:53:15 -07:00
classFilter = { true }
2021-09-02 21:31:33 -07:00
}
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
2024-10-17 19:42:10 -07:00
else "https://github.com/topjohnwu/Magisk/releases/download/v${Config.version}/Magisk-v${Config.version}.apk"
2021-03-05 05:09:25 -08:00
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-03-05 05:09:25 -08:00
buildConfigField("String", "APK_URL", url?.let { "\"$it\"" } ?: "null" )
buildConfigField("int", "STUB_VERSION", Config.stubVersion)
2020-07-04 06:53:31 -07:00
}
buildTypes {
2021-09-08 00:45:15 +08:00
release {
2020-10-16 13:59:40 +08:00
proguardFiles("proguard-rules.pro")
2024-11-19 20:25:10 -08:00
isMinifyEnabled = true
isShrinkResources = false
2020-07-04 06:53:31 -07:00
}
}
buildFeatures {
buildConfig = true
}
2020-07-04 06:53:31 -07:00
}
2024-11-09 20:07:53 -08:00
setupStubApk()
2021-09-02 21:31:33 -07:00
2020-07-04 06:53:31 -07:00
dependencies {
implementation(project(":app:shared"))
}