Repo created
This commit is contained in:
parent
d327c31227
commit
0b2aca0925
638 changed files with 76461 additions and 0 deletions
49
app/stub/build.gradle.kts
Normal file
49
app/stub/build.gradle.kts
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
plugins {
|
||||
id("com.android.application")
|
||||
id("org.lsposed.lsparanoid")
|
||||
}
|
||||
|
||||
lsparanoid {
|
||||
seed = if (RAND_SEED != 0) RAND_SEED else null
|
||||
includeDependencies = true
|
||||
classFilter = { true }
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.topjohnwu.magisk"
|
||||
|
||||
val canary = !Config.version.contains(".")
|
||||
val base = "https://github.com/topjohnwu/Magisk/releases/download/"
|
||||
val url = base + "v${Config.version}/Magisk-v${Config.version}.apk"
|
||||
val canaryUrl = base + "canary-${Config.versionCode}/"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.topjohnwu.magisk"
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
buildConfigField("String", "APK_URL", "\"$url\"")
|
||||
buildConfigField("int", "STUB_VERSION", Config.stubVersion)
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
if (canary) buildConfigField("String", "APK_URL", "\"${canaryUrl}app-release.apk\"")
|
||||
proguardFiles("proguard-rules.pro")
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = false
|
||||
}
|
||||
debug {
|
||||
if (canary) buildConfigField("String", "APK_URL", "\"${canaryUrl}app-debug.apk\"")
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
}
|
||||
}
|
||||
|
||||
setupStubApk()
|
||||
|
||||
dependencies {
|
||||
implementation(project(":shared"))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue