2024-10-29 19:13:19 +00:00
|
|
|
import com.android.build.api.instrumentation.FramesComputationMode.COMPUTE_FRAMES_FOR_INSTRUMENTED_METHODS
|
|
|
|
import com.android.build.api.instrumentation.InstrumentationScope
|
|
|
|
|
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")
|
|
|
|
}
|
|
|
|
|
2024-07-04 07:02:42 +00:00
|
|
|
setupAppCommon()
|
|
|
|
|
2020-07-04 13:53:31 +00:00
|
|
|
kapt {
|
|
|
|
correctErrorTypes = true
|
|
|
|
useBuildCache = true
|
|
|
|
mapDiagnosticLocations = true
|
|
|
|
javacOptions {
|
2024-09-09 14:40:55 +00:00
|
|
|
option("-Xmaxerrs", "1000")
|
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
|
2024-07-14 10:49:56 +00:00
|
|
|
ndk {
|
|
|
|
abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64", "riscv64")
|
|
|
|
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
|
|
|
|
}
|
2024-09-09 08:55:35 +00:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
isCoreLibraryDesugaringEnabled = true
|
|
|
|
}
|
2024-10-29 19:13:19 +00:00
|
|
|
|
|
|
|
androidComponents {
|
|
|
|
onVariants {
|
|
|
|
it.instrumentation.setAsmFramesComputationMode(COMPUTE_FRAMES_FOR_INSTRUMENTED_METHODS)
|
|
|
|
it.instrumentation.transformClassesWith(
|
|
|
|
DesugarClassVisitorFactory::class.java, InstrumentationScope.ALL) {}
|
|
|
|
}
|
|
|
|
}
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-07-04 07:02:42 +00:00
|
|
|
implementation(project(":app:core"))
|
2024-09-09 08:55:35 +00:00
|
|
|
coreLibraryDesugaring(libs.jdk.libs)
|
2020-07-04 13:53:31 +00:00
|
|
|
|
2024-08-18 20:12:23 +00:00
|
|
|
implementation(libs.indeterminate.checkbox)
|
|
|
|
implementation(libs.rikka.layoutinflater)
|
|
|
|
implementation(libs.rikka.insets)
|
|
|
|
implementation(libs.rikka.recyclerview)
|
2020-07-04 13:53:31 +00:00
|
|
|
|
2024-08-18 20:12:23 +00:00
|
|
|
implementation(libs.navigation.fragment.ktx)
|
|
|
|
implementation(libs.navigation.ui.ktx)
|
2020-07-04 13:53:31 +00:00
|
|
|
|
2024-08-18 20:12:23 +00: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 07:02:42 +00:00
|
|
|
|
|
|
|
// Make sure kapt runs with a proper kotlin-stdlib
|
|
|
|
kapt(kotlin("stdlib"))
|
2020-07-04 13:53:31 +00:00
|
|
|
}
|