Skip to content

Commit

Permalink
build: migrate from kapt to ksp
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Feb 7, 2024
1 parent 094f987 commit 2f448b2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions WooCommerce/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import se.bjurr.violations.lib.model.SEVERITY
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.kapt'
id 'org.jetbrains.kotlin.plugin.parcelize'
id 'com.google.dagger.hilt.android'
id 'se.bjurr.violations.violation-comments-to-github-gradle-plugin'
id 'io.sentry.android.gradle'
id 'androidx.navigation.safeargs.kotlin'
id 'com.google.gms.google-services'
id 'com.google.devtools.ksp'
}

sentry {
Expand Down Expand Up @@ -270,15 +270,15 @@ dependencies {
implementation "androidx.hilt:hilt-common:$hiltJetpackVersion"
implementation "androidx.hilt:hilt-work:$hiltJetpackVersion"

kapt "androidx.hilt:hilt-compiler:$hiltJetpackVersion"
kapt "com.google.dagger:hilt-compiler:$gradle.ext.daggerVersion"
ksp "androidx.hilt:hilt-compiler:$hiltJetpackVersion"
ksp "com.google.dagger:hilt-compiler:$gradle.ext.daggerVersion"
implementation "com.google.dagger:dagger-android-support:$gradle.ext.daggerVersion"
kapt "com.google.dagger:dagger-android-processor:$gradle.ext.daggerVersion"
ksp "com.google.dagger:dagger-android-processor:$gradle.ext.daggerVersion"

implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'

implementation "com.github.bumptech.glide:glide:$glideVersion"
kapt "com.github.bumptech.glide:compiler:$glideVersion"
ksp "com.github.bumptech.glide:compiler:$glideVersion"
implementation "com.github.bumptech.glide:volley-integration:$glideVersion@aar"
implementation 'com.google.android.play:app-update-ktx:2.1.0'
implementation 'com.google.android.play:review-ktx:2.0.1'
Expand Down Expand Up @@ -323,7 +323,7 @@ dependencies {
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
androidTestImplementation "com.google.dagger:hilt-android-testing:$gradle.ext.daggerVersion"
kaptAndroidTest "com.google.dagger:hilt-android-compiler:$gradle.ext.daggerVersion"
kspAndroidTest "com.google.dagger:hilt-android-compiler:$gradle.ext.daggerVersion"
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'

// Dependencies for screenshots
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
id 'org.jetbrains.kotlin.android' apply false
id 'com.google.dagger.hilt.android' apply false
id 'com.google.gms.google-services' apply false
id 'com.google.devtools.ksp' apply false
}

measureBuilds {
Expand Down
3 changes: 0 additions & 3 deletions gradle.properties-example
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ wc.e2e.real.api.password = password
# The type of in app update FLEXIBLE = 0; IMMEDIATE = 1
wc.in_app_update_type = 0

# Necessary for gradle 5
kapt.incremental.apt=false

# Measuring build times
tracksEnabled = false
#tracksUsername = <optional username>
Expand Down
3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pluginManagement {
gradle.ext.daggerVersion = '2.50'
gradle.ext.detektVersion = '1.19.0'
gradle.ext.kotlinVersion = '1.9.22'
gradle.ext.kspVersion = '1.9.22-1.0.17'
gradle.ext.measureBuildsVersion = '2.0.3'
gradle.ext.navigationVersion = '2.6.0'
gradle.ext.sentryVersion = '3.5.0'
Expand Down Expand Up @@ -35,10 +36,10 @@ pluginManagement {
id 'io.sentry.android.gradle' version gradle.ext.sentryVersion
id 'org.jetbrains.kotlin.android' version gradle.ext.kotlinVersion
id 'org.jetbrains.kotlin.jvm' version gradle.ext.kotlinVersion
id 'org.jetbrains.kotlin.kapt' version gradle.ext.kotlinVersion
id 'org.jetbrains.kotlin.plugin.parcelize' version gradle.ext.kotlinVersion
id 'se.bjurr.violations.violation-comments-to-github-gradle-plugin' version gradle.ext.violationCommentsVersion
id 'com.google.dagger.hilt.android' version gradle.ext.daggerVersion
id 'com.google.devtools.ksp' version gradle.ext.kspVersion
}
}

Expand Down

0 comments on commit 2f448b2

Please sign in to comment.