Skip to content

Commit

Permalink
- Chore: ksp to kapt for CI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
azrael8576 committed Sep 30, 2023
1 parent 01ccdc9 commit 2c11efa
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 60 deletions.
5 changes: 0 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)
kspAndroidTest(libs.hilt.android.compiler)

// Timber
implementation(libs.timber)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ class AndroidHiltConventionPlugin : Plugin<Project> {
with(target) {
with(pluginManager) {
apply("dagger.hilt.android.plugin")
apply("com.google.devtools.ksp")
// KAPT must go last to avoid build warnings.
// See: https://stackoverflow.com/questions/70550883/warning-the-following-options-were-not-recognized-by-any-processor-dagger-f
apply("org.jetbrains.kotlin.kapt")
}

dependencies {
"implementation"(libs.findLibrary("hilt.android").get())
"ksp"(libs.findLibrary("hilt.compiler").get())
"kspAndroidTest"(libs.findLibrary("hilt.compiler").get())
"kspTest"(libs.findLibrary("hilt.compiler").get())
"kapt"(libs.findLibrary("hilt.compiler").get())
"kaptAndroidTest"(libs.findLibrary("hilt.compiler").get())
"kaptTest"(libs.findLibrary("hilt.compiler").get())
}

}
Expand Down
5 changes: 0 additions & 5 deletions core/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)
kspAndroidTest(libs.hilt.android.compiler)

// Timber
implementation(libs.timber)
}
4 changes: 0 additions & 4 deletions core/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ dependencies {
implementation(libs.androidx.tracing.ktx)
coreLibraryDesugaring(libs.android.desugarJdkLibs)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// Retrofit2
implementation(libs.retrofit.core)
implementation(libs.retrofit.converter.gson)
Expand Down
4 changes: 0 additions & 4 deletions core/datastore-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ dependencies {
implementation(libs.androidx.tracing.ktx)
coreLibraryDesugaring(libs.android.desugarJdkLibs)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// DataStore
implementation(libs.androidx.datastore)

Expand Down
4 changes: 0 additions & 4 deletions core/datastore/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ dependencies {
implementation(libs.androidx.tracing.ktx)
coreLibraryDesugaring(libs.android.desugarJdkLibs)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// DataStore
implementation(libs.androidx.datastore)

Expand Down
4 changes: 0 additions & 4 deletions core/designsystem/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// Timber
implementation(libs.timber)

Expand Down
4 changes: 0 additions & 4 deletions core/domain/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ dependencies {
implementation(libs.androidx.tracing.ktx)
coreLibraryDesugaring(libs.android.desugarJdkLibs)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// Timber
implementation(libs.timber)
}
4 changes: 0 additions & 4 deletions core/model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ dependencies {
implementation(libs.androidx.tracing.ktx)
coreLibraryDesugaring(libs.android.desugarJdkLibs)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// For androidx.compose.runtime.Stable
val composeBom = platform(libs.androidx.compose.bom)
implementation(composeBom)
Expand Down
4 changes: 0 additions & 4 deletions core/network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ dependencies {
// RetrofitKotlinxSerializationJson
implementation(libs.retrofit.kotlin.serialization)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// Coroutines
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)
Expand Down
6 changes: 0 additions & 6 deletions core/testing/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)
ksp(libs.hilt.android.compiler)
kspAndroidTest(libs.hilt.android.compiler)

// Timber
implementation(libs.timber)
}
4 changes: 0 additions & 4 deletions feature/contactme/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// Timber
implementation(libs.timber)
}
4 changes: 0 additions & 4 deletions feature/login/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// Timber
implementation(libs.timber)
}
4 changes: 0 additions & 4 deletions feature/teacherschedule/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)

// Hilt
implementation(libs.hilt.android)
ksp(libs.hilt.compiler)

// Timber
implementation(libs.timber)
}

0 comments on commit 2c11efa

Please sign in to comment.