2020-07-04 13:53:31 +00:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
kotlin("android")
|
2020-11-23 20:35:24 +00:00
|
|
|
kotlin("plugin.parcelize")
|
2020-07-04 13:53:31 +00:00
|
|
|
kotlin("kapt")
|
|
|
|
id("androidx.navigation.safeargs.kotlin")
|
|
|
|
}
|
|
|
|
|
|
|
|
kapt {
|
|
|
|
correctErrorTypes = true
|
|
|
|
useBuildCache = true
|
|
|
|
mapDiagnosticLocations = true
|
|
|
|
javacOptions {
|
|
|
|
option("-Xmaxerrs", 1000)
|
|
|
|
}
|
2021-04-17 09:32:07 +00:00
|
|
|
arguments {
|
|
|
|
arg("room.incremental", "true")
|
|
|
|
}
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2022-05-10 03:53:47 +00:00
|
|
|
namespace = "com.topjohnwu.magisk"
|
|
|
|
|
2020-07-04 13:53:31 +00:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.topjohnwu.magisk"
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
2021-01-22 10:28:53 +00:00
|
|
|
versionName = Config.version
|
|
|
|
versionCode = Config.versionCode
|
2022-09-14 14:59:12 +00:00
|
|
|
ndk {
|
|
|
|
abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
|
|
|
|
debugSymbolLevel = "FULL"
|
|
|
|
}
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
2021-09-07 16:45:15 +00:00
|
|
|
release {
|
2020-07-04 13:53:31 +00:00
|
|
|
isMinifyEnabled = true
|
|
|
|
isShrinkResources = true
|
2021-07-18 05:11:20 +00:00
|
|
|
proguardFiles("proguard-rules.pro")
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
dataBinding = true
|
2023-02-20 09:03:35 +00:00
|
|
|
aidl = true
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|
|
|
|
|
2023-02-20 09:03:35 +00:00
|
|
|
packaging {
|
2021-07-24 10:51:00 +00:00
|
|
|
resources {
|
2021-07-18 05:11:20 +00:00
|
|
|
excludes += "/META-INF/*"
|
2022-06-19 13:25:19 +00:00
|
|
|
excludes += "/META-INF/versions/**"
|
2021-07-18 05:11:20 +00:00
|
|
|
excludes += "/org/bouncycastle/**"
|
|
|
|
excludes += "/kotlin/**"
|
|
|
|
excludes += "/kotlinx/**"
|
|
|
|
excludes += "/okhttp3/**"
|
|
|
|
excludes += "/*.txt"
|
|
|
|
excludes += "/*.bin"
|
2022-01-22 05:17:31 +00:00
|
|
|
excludes += "/*.json"
|
2021-07-24 10:51:00 +00:00
|
|
|
}
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-10 03:19:49 +00:00
|
|
|
setupApp()
|
2020-07-17 07:44:51 +00:00
|
|
|
|
2021-07-18 05:11:20 +00:00
|
|
|
configurations.all {
|
|
|
|
exclude("org.jetbrains.kotlin", "kotlin-stdlib-jdk7")
|
|
|
|
exclude("org.jetbrains.kotlin", "kotlin-stdlib-jdk8")
|
|
|
|
}
|
|
|
|
|
2020-07-04 13:53:31 +00:00
|
|
|
dependencies {
|
|
|
|
implementation(project(":app:shared"))
|
|
|
|
|
2024-03-14 23:54:46 +00:00
|
|
|
implementation("com.github.topjohnwu:jtar:1.1.0")
|
2020-08-11 07:54:19 +00:00
|
|
|
implementation("com.github.topjohnwu:indeterminate-checkbox:1.0.7")
|
2020-10-06 07:40:57 +00:00
|
|
|
implementation("com.github.topjohnwu:lz4-java:1.7.1")
|
2022-03-17 20:04:35 +00:00
|
|
|
implementation("com.jakewharton.timber:timber:5.0.1")
|
2024-06-07 04:11:52 +00:00
|
|
|
implementation("org.bouncycastle:bcpkix-jdk18on:1.78.1")
|
2023-04-02 09:13:47 +00:00
|
|
|
implementation("dev.rikka.rikkax.layoutinflater:layoutinflater:1.3.0")
|
2022-06-19 13:25:19 +00:00
|
|
|
implementation("dev.rikka.rikkax.insets:insets:1.3.0")
|
2023-08-11 16:38:59 +00:00
|
|
|
implementation("dev.rikka.rikkax.recyclerview:recyclerview-ktx:1.3.2")
|
2022-01-21 15:52:42 +00:00
|
|
|
implementation("io.noties.markwon:core:4.6.2")
|
2020-12-27 01:03:10 +00:00
|
|
|
|
2024-06-28 22:44:42 +00:00
|
|
|
val vLibsu = "6.0.0"
|
2020-07-04 13:53:31 +00:00
|
|
|
implementation("com.github.topjohnwu.libsu:core:${vLibsu}")
|
2021-12-13 08:16:53 +00:00
|
|
|
implementation("com.github.topjohnwu.libsu:service:${vLibsu}")
|
2022-05-03 08:25:26 +00:00
|
|
|
implementation("com.github.topjohnwu.libsu:nio:${vLibsu}")
|
2020-07-04 13:53:31 +00:00
|
|
|
|
2024-06-07 04:11:52 +00:00
|
|
|
val vRetrofit = "2.11.0"
|
2020-07-04 13:53:31 +00:00
|
|
|
implementation("com.squareup.retrofit2:retrofit:${vRetrofit}")
|
|
|
|
implementation("com.squareup.retrofit2:converter-moshi:${vRetrofit}")
|
|
|
|
implementation("com.squareup.retrofit2:converter-scalars:${vRetrofit}")
|
|
|
|
|
2023-07-21 06:10:52 +00:00
|
|
|
val vOkHttp = "4.12.0"
|
2021-04-10 03:01:32 +00:00
|
|
|
implementation("com.squareup.okhttp3:okhttp:${vOkHttp}")
|
2020-07-04 13:53:31 +00:00
|
|
|
implementation("com.squareup.okhttp3:logging-interceptor:${vOkHttp}")
|
2022-01-13 11:50:29 +00:00
|
|
|
implementation("com.squareup.okhttp3:okhttp-dnsoverhttps:${vOkHttp}")
|
2020-07-04 13:53:31 +00:00
|
|
|
|
2024-06-07 04:11:52 +00:00
|
|
|
val vMoshi = "1.15.1"
|
2020-07-04 13:53:31 +00:00
|
|
|
implementation("com.squareup.moshi:moshi:${vMoshi}")
|
|
|
|
kapt("com.squareup.moshi:moshi-kotlin-codegen:${vMoshi}")
|
|
|
|
|
2023-12-08 09:03:18 +00:00
|
|
|
val vRoom = "2.6.1"
|
2020-07-04 13:53:31 +00:00
|
|
|
implementation("androidx.room:room-runtime:${vRoom}")
|
2020-07-09 11:49:14 +00:00
|
|
|
implementation("androidx.room:room-ktx:${vRoom}")
|
2020-07-04 13:53:31 +00:00
|
|
|
kapt("androidx.room:room-compiler:${vRoom}")
|
|
|
|
|
2024-03-09 01:09:54 +00:00
|
|
|
val vNav = "2.7.7"
|
2020-08-15 12:43:28 +00:00
|
|
|
implementation("androidx.navigation:navigation-fragment-ktx:${vNav}")
|
|
|
|
implementation("androidx.navigation:navigation-ui-ktx:${vNav}")
|
2020-07-04 13:53:31 +00:00
|
|
|
|
2022-05-23 03:11:24 +00:00
|
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
2020-07-04 13:53:31 +00:00
|
|
|
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
2024-06-18 18:26:18 +00:00
|
|
|
implementation("androidx.appcompat:appcompat:1.7.0")
|
2023-07-21 06:10:52 +00:00
|
|
|
implementation("androidx.recyclerview:recyclerview:1.3.2")
|
2024-06-18 18:26:18 +00:00
|
|
|
implementation("androidx.fragment:fragment-ktx:1.8.0")
|
2024-06-07 04:11:52 +00:00
|
|
|
implementation("androidx.transition:transition:1.5.0")
|
|
|
|
implementation("androidx.core:core-ktx:1.13.1")
|
2023-05-30 08:32:43 +00:00
|
|
|
implementation("androidx.core:core-splashscreen:1.0.1")
|
2023-10-26 22:56:42 +00:00
|
|
|
implementation("androidx.profileinstaller:profileinstaller:1.3.1")
|
2024-06-07 04:11:52 +00:00
|
|
|
implementation("com.google.android.material:material:1.12.0")
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|