Magisk/stub/build.gradle.kts

42 lines
945 B
Plaintext
Raw Normal View History

2020-07-04 15:53:31 +02:00
plugins {
id("com.android.application")
2023-02-20 07:55:27 +01:00
id("org.lsposed.lsparanoid")
2020-07-04 15:53:31 +02:00
}
2023-02-20 07:55:27 +01:00
lsparanoid {
seed = if (RAND_SEED != 0) RAND_SEED else null
includeDependencies = true
global = true
2021-09-03 06:31:33 +02:00
}
2020-07-04 15:53:31 +02:00
android {
2022-05-10 05:53:47 +02:00
namespace = "com.topjohnwu.magisk"
val canary = !Config.version.contains(".")
val url = if (canary) null
2021-03-05 14:09:25 +01:00
else "https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@${Config.version}/app-release.apk"
2020-07-04 15:53:31 +02:00
defaultConfig {
applicationId = "com.topjohnwu.magisk"
versionCode = 1
2021-09-03 06:31:33 +02:00
versionName = "1.0"
2021-01-23 05:45:37 +01:00
buildConfigField("int", "STUB_VERSION", Config.stubVersion)
2021-03-05 14:09:25 +01:00
buildConfigField("String", "APK_URL", url?.let { "\"$it\"" } ?: "null" )
2020-07-04 15:53:31 +02:00
}
buildTypes {
2021-09-07 18:45:15 +02:00
release {
2020-07-04 15:53:31 +02:00
isMinifyEnabled = true
2020-12-29 11:39:47 +01:00
isShrinkResources = false
2020-10-16 07:59:40 +02:00
proguardFiles("proguard-rules.pro")
2020-07-04 15:53:31 +02:00
}
}
}
2021-09-10 05:19:49 +02:00
setupStub()
2021-09-03 06:31:33 +02:00
2020-07-04 15:53:31 +02:00
dependencies {
implementation(project(":app:shared"))
}