2020-07-04 06:53:31 -07:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
kotlin("android")
|
2020-11-23 12:35:24 -08:00
|
|
|
kotlin("plugin.parcelize")
|
2020-07-04 06:53:31 -07:00
|
|
|
kotlin("kapt")
|
|
|
|
id("androidx.navigation.safeargs.kotlin")
|
|
|
|
}
|
|
|
|
|
|
|
|
kapt {
|
|
|
|
correctErrorTypes = true
|
|
|
|
useBuildCache = true
|
|
|
|
mapDiagnosticLocations = true
|
|
|
|
javacOptions {
|
|
|
|
option("-Xmaxerrs", 1000)
|
|
|
|
}
|
2021-04-17 17:32:07 +08:00
|
|
|
arguments {
|
|
|
|
arg("room.incremental", "true")
|
|
|
|
}
|
2020-07-04 06:53:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2022-05-09 20:53:47 -07:00
|
|
|
namespace = "com.topjohnwu.magisk"
|
|
|
|
|
2020-07-04 06:53:31 -07:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.topjohnwu.magisk"
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
2021-01-22 02:28:53 -08:00
|
|
|
versionName = Config.version
|
|
|
|
versionCode = Config.versionCode
|
2021-07-18 13:11:20 +08:00
|
|
|
ndk.abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
|
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
|
|
|
|
isShrinkResources = true
|
2021-07-18 13:11:20 +08:00
|
|
|
proguardFiles("proguard-rules.pro")
|
2020-07-04 06:53:31 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
dataBinding = true
|
|
|
|
}
|
|
|
|
|
|
|
|
packagingOptions {
|
2021-07-24 03:51:00 -07:00
|
|
|
resources {
|
2021-07-18 13:11:20 +08:00
|
|
|
excludes += "/META-INF/*"
|
|
|
|
excludes += "/org/bouncycastle/**"
|
|
|
|
excludes += "/kotlin/**"
|
|
|
|
excludes += "/kotlinx/**"
|
|
|
|
excludes += "/okhttp3/**"
|
|
|
|
excludes += "/*.txt"
|
|
|
|
excludes += "/*.bin"
|
2022-01-22 13:17:31 +08:00
|
|
|
excludes += "/*.json"
|
2021-07-24 03:51:00 -07:00
|
|
|
}
|
|
|
|
jniLibs {
|
2021-07-18 13:11:20 +08:00
|
|
|
keepDebugSymbols += "**/*.so"
|
2021-07-24 03:51:00 -07:00
|
|
|
}
|
2020-07-04 06:53:31 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-09 20:19:49 -07:00
|
|
|
setupApp()
|
2020-07-17 00:44:51 -07:00
|
|
|
|
2021-07-18 13:11:20 +08:00
|
|
|
configurations.all {
|
|
|
|
exclude("org.jetbrains.kotlin", "kotlin-stdlib-jdk7")
|
|
|
|
exclude("org.jetbrains.kotlin", "kotlin-stdlib-jdk8")
|
|
|
|
}
|
|
|
|
|
2020-07-04 06:53:31 -07:00
|
|
|
dependencies {
|
|
|
|
implementation(project(":app:shared"))
|
|
|
|
|
|
|
|
implementation("com.github.topjohnwu:jtar:1.0.0")
|
2020-08-11 00:54:19 -07:00
|
|
|
implementation("com.github.topjohnwu:indeterminate-checkbox:1.0.7")
|
2020-10-06 00:40:57 -07:00
|
|
|
implementation("com.github.topjohnwu:lz4-java:1.7.1")
|
2022-03-18 04:04:35 +08:00
|
|
|
implementation("com.jakewharton.timber:timber:5.0.1")
|
|
|
|
implementation("org.bouncycastle:bcpkix-jdk18on:1.71")
|
2022-01-17 15:03:47 +08:00
|
|
|
implementation("dev.rikka.rikkax.layoutinflater:layoutinflater:1.2.0")
|
2022-03-18 04:04:35 +08:00
|
|
|
implementation("dev.rikka.rikkax.insets:insets:1.2.0")
|
2022-01-17 15:03:47 +08:00
|
|
|
implementation("dev.rikka.rikkax.recyclerview:recyclerview-ktx:1.3.1")
|
2022-01-21 23:52:42 +08:00
|
|
|
implementation("io.noties.markwon:core:4.6.2")
|
2020-12-26 17:03:10 -08:00
|
|
|
|
2022-06-02 02:04:35 -07:00
|
|
|
val vLibsu = "5.0.2"
|
2020-07-04 06:53:31 -07:00
|
|
|
implementation("com.github.topjohnwu.libsu:core:${vLibsu}")
|
2021-12-13 00:16:53 -08:00
|
|
|
implementation("com.github.topjohnwu.libsu:service:${vLibsu}")
|
2022-05-03 01:25:26 -07:00
|
|
|
implementation("com.github.topjohnwu.libsu:nio:${vLibsu}")
|
2020-07-04 06:53:31 -07:00
|
|
|
|
|
|
|
val vRetrofit = "2.9.0"
|
|
|
|
implementation("com.squareup.retrofit2:retrofit:${vRetrofit}")
|
|
|
|
implementation("com.squareup.retrofit2:converter-moshi:${vRetrofit}")
|
|
|
|
implementation("com.squareup.retrofit2:converter-scalars:${vRetrofit}")
|
|
|
|
|
2022-08-05 15:47:46 -07:00
|
|
|
val vOkHttp = "4.10.0"
|
2021-04-09 20:01:32 -07:00
|
|
|
implementation("com.squareup.okhttp3:okhttp:${vOkHttp}")
|
2020-07-04 06:53:31 -07:00
|
|
|
implementation("com.squareup.okhttp3:logging-interceptor:${vOkHttp}")
|
2022-01-13 03:50:29 -08:00
|
|
|
implementation("com.squareup.okhttp3:okhttp-dnsoverhttps:${vOkHttp}")
|
2020-07-04 06:53:31 -07:00
|
|
|
|
2021-11-24 18:08:29 +08:00
|
|
|
val vMoshi = "1.13.0"
|
2020-07-04 06:53:31 -07:00
|
|
|
implementation("com.squareup.moshi:moshi:${vMoshi}")
|
|
|
|
kapt("com.squareup.moshi:moshi-kotlin-codegen:${vMoshi}")
|
|
|
|
|
2022-06-11 03:41:02 -07:00
|
|
|
val vRoom = "2.5.0-alpha02"
|
2020-07-04 06:53:31 -07:00
|
|
|
implementation("androidx.room:room-runtime:${vRoom}")
|
2020-07-09 04:49:14 -07:00
|
|
|
implementation("androidx.room:room-ktx:${vRoom}")
|
2020-07-04 06:53:31 -07:00
|
|
|
kapt("androidx.room:room-compiler:${vRoom}")
|
|
|
|
|
2022-08-05 15:47:46 -07:00
|
|
|
val vNav = "2.5.1"
|
2020-08-15 05:43:28 -07:00
|
|
|
implementation("androidx.navigation:navigation-fragment-ktx:${vNav}")
|
|
|
|
implementation("androidx.navigation:navigation-ui-ktx:${vNav}")
|
2020-07-04 06:53:31 -07:00
|
|
|
|
2021-02-05 04:41:01 -08:00
|
|
|
implementation("androidx.biometric:biometric:1.1.0")
|
2022-05-22 20:11:24 -07:00
|
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
2020-07-04 06:53:31 -07:00
|
|
|
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
2022-06-11 03:41:02 -07:00
|
|
|
implementation("androidx.appcompat:appcompat:1.4.2")
|
2022-01-27 01:46:00 -08:00
|
|
|
implementation("androidx.preference:preference:1.2.0")
|
2021-07-24 03:51:00 -07:00
|
|
|
implementation("androidx.recyclerview:recyclerview:1.2.1")
|
2022-08-05 15:47:46 -07:00
|
|
|
implementation("androidx.fragment:fragment-ktx:1.5.1")
|
2021-05-06 11:37:21 -07:00
|
|
|
implementation("androidx.transition:transition:1.4.1")
|
2022-06-11 03:41:02 -07:00
|
|
|
implementation("androidx.core:core-ktx:1.8.0")
|
2022-08-05 15:47:46 -07:00
|
|
|
implementation("androidx.core:core-splashscreen:1.0.0")
|
2022-06-11 03:41:02 -07:00
|
|
|
implementation("com.google.android.material:material:1.6.1")
|
2020-07-04 06:53:31 -07:00
|
|
|
}
|