Skip to content

Commit

Permalink
Use ksp instead of kapt
Browse files Browse the repository at this point in the history
  • Loading branch information
cemrich committed Jul 27, 2023
1 parent 90b9c54 commit 085562f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 6 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apply plugin: 'com.android.application'
apply plugin: 'com.mikepenz.aboutlibraries.plugin'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'koin'
apply plugin: 'androidx.navigation.safeargs.kotlin'
apply plugin: 'com.google.devtools.ksp'

android {

Expand All @@ -30,12 +30,6 @@ android {
]
}

kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
}

buildFeatures {
viewBinding = true
}
Expand Down Expand Up @@ -73,6 +67,10 @@ android {
namespace 'de.christinecoenen.code.zapp'
}

ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')

Expand Down Expand Up @@ -128,7 +126,7 @@ dependencies {
def room_version = "2.5.2"
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-paging:$room_version"
kapt "androidx.room:room-compiler:$room_version"
ksp "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"

// helper
Expand Down
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ buildscript {
}
}

plugins {
id 'com.google.devtools.ksp' version '1.9.0-1.0.12' apply false
}

allprojects {
repositories {
google()
Expand Down

0 comments on commit 085562f

Please sign in to comment.