Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions biz/main/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.ksp)
alias(libs.plugins.moshiX)
}

Expand All @@ -14,21 +15,14 @@ android {
)
}

kapt {
correctErrorTypes = true
arguments {
arg("room.incremental", "true")
}
}

dependencies {
implementation(projects.common)

implementation(libs.androidX.coordinatorLayout)
implementation(libs.flycoTabLayout)

implementation(libs.bundles.androidX.room)
kapt(libs.androidX.room.compiler)
ksp(libs.androidX.room.compiler)

implementation(libs.square.moshi)
}
17 changes: 15 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import com.android.build.gradle.BaseExtension
import com.google.devtools.ksp.gradle.KspExtension
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
import org.jetbrains.kotlin.gradle.plugin.KaptExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jmailen.gradle.kotlinter.KotlinterExtension

Expand All @@ -8,6 +10,7 @@ plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.kapt) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotlinter) apply false
alias(libs.plugins.detekt) apply false
alias(libs.plugins.moshiX) apply false
Expand Down Expand Up @@ -61,15 +64,25 @@ subprojects {
plugins.withId(rootProject.libs.plugins.android.application.get().pluginId) {
setupCommon()
}
plugins.withId(rootProject.libs.plugins.kotlin.kapt.get().pluginId) {
configure<KaptExtension> {
correctErrorTypes = true
}
}
plugins.withId(rootProject.libs.plugins.ksp.get().pluginId) {
configure<KspExtension> {
arg("room.incremental", "true")
}
}
}

tasks {
create<Delete>("clean") {
val customFileTypes = fileTree(
mapOf(
"dir" to "$rootDir/gradle",
"include" to arrayOf("*.log", "*.txt")
)
"include" to arrayOf("*.log", "*.txt"),
),
)
delete(rootProject.buildDir, customFileTypes)
}
Expand Down
10 changes: 2 additions & 8 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.ksp)
alias(libs.plugins.moshiX)
}

Expand All @@ -18,13 +19,6 @@ android {
}
}

kapt {
correctErrorTypes = true
arguments {
arg("room.incremental", "true")
}
}

dependencies {
api(projects.base)
api(projects.adapter)
Expand All @@ -39,7 +33,7 @@ dependencies {
api(libs.utils)

implementation(libs.bundles.androidX.room)
kapt(libs.androidX.room.compiler)
ksp(libs.androidX.room.compiler)

implementation(libs.bundles.coil)
implementation(libs.square.moshi)
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
ksp = "com.google.devtools.ksp:1.7.10-1.0.6"
moshiX = "dev.zacsweers.moshix:0.18.3"
kotlinter = "org.jmailen.kotlinter:3.11.1"
detekt = "io.gitlab.arturbosch.detekt:1.21.0"
Expand Down