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")
|
|
|
|
}
|
|
|
|
|
2024-07-04 00:02:42 -07:00
|
|
|
setupAppCommon()
|
|
|
|
|
2020-07-04 06:53:31 -07:00
|
|
|
kapt {
|
|
|
|
correctErrorTypes = true
|
|
|
|
useBuildCache = true
|
|
|
|
mapDiagnosticLocations = true
|
|
|
|
javacOptions {
|
|
|
|
option("-Xmaxerrs", 1000)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2024-07-14 18:49:56 +08:00
|
|
|
ndk {
|
|
|
|
abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64", "riscv64")
|
|
|
|
debugSymbolLevel = "FULL"
|
|
|
|
}
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-07-04 00:02:42 -07:00
|
|
|
implementation(project(":app:core"))
|
2020-07-04 06:53:31 -07:00
|
|
|
|
2024-08-18 13:12:23 -07:00
|
|
|
implementation(libs.indeterminate.checkbox)
|
|
|
|
implementation(libs.rikka.layoutinflater)
|
|
|
|
implementation(libs.rikka.insets)
|
|
|
|
implementation(libs.rikka.recyclerview)
|
2020-07-04 06:53:31 -07:00
|
|
|
|
2024-08-18 13:12:23 -07:00
|
|
|
implementation(libs.navigation.fragment.ktx)
|
|
|
|
implementation(libs.navigation.ui.ktx)
|
2020-07-04 06:53:31 -07:00
|
|
|
|
2024-08-18 13:12:23 -07:00
|
|
|
implementation(libs.constraintlayout)
|
|
|
|
implementation(libs.swiperefreshlayout)
|
|
|
|
implementation(libs.recyclerview)
|
|
|
|
implementation(libs.transition)
|
|
|
|
implementation(libs.fragment.ktx)
|
|
|
|
implementation(libs.appcompat)
|
|
|
|
implementation(libs.material)
|
2024-07-04 00:02:42 -07:00
|
|
|
|
|
|
|
// Make sure kapt runs with a proper kotlin-stdlib
|
|
|
|
kapt(kotlin("stdlib"))
|
2020-07-04 06:53:31 -07:00
|
|
|
}
|