mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-06-02 06:03:44 +02:00
d5476e1321
Using buildSrc comes with too many caveats, switch over to a composite build-logic solves a lot of buildSrc's issue.
63 lines
1.4 KiB
Kotlin
63 lines
1.4 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
kotlin("plugin.parcelize")
|
|
alias(libs.plugins.legacy.kapt)
|
|
alias(libs.plugins.navigation.safeargs)
|
|
}
|
|
|
|
setupMainApk()
|
|
|
|
kapt {
|
|
correctErrorTypes = true
|
|
useBuildCache = true
|
|
mapDiagnosticLocations = true
|
|
javacOptions {
|
|
option("-Xmaxerrs", "1000")
|
|
}
|
|
}
|
|
|
|
android {
|
|
buildFeatures {
|
|
dataBinding = true
|
|
}
|
|
|
|
compileOptions {
|
|
isCoreLibraryDesugaringEnabled = true
|
|
}
|
|
|
|
defaultConfig {
|
|
proguardFile("proguard-rules.pro")
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":core"))
|
|
coreLibraryDesugaring(libs.jdk.libs)
|
|
|
|
implementation(libs.indeterminate.checkbox)
|
|
implementation(libs.rikka.layoutinflater)
|
|
implementation(libs.rikka.insets)
|
|
implementation(libs.rikka.recyclerview)
|
|
|
|
implementation(libs.navigation.fragment.ktx)
|
|
implementation(libs.navigation.ui.ktx)
|
|
|
|
implementation(libs.constraintlayout)
|
|
implementation(libs.swiperefreshlayout)
|
|
implementation(libs.recyclerview)
|
|
implementation(libs.transition)
|
|
implementation(libs.fragment.ktx)
|
|
implementation(libs.appcompat)
|
|
implementation(libs.material)
|
|
|
|
// Make sure kapt runs with a proper kotlin-stdlib
|
|
kapt(kotlin("stdlib"))
|
|
}
|