Skip to content

Commit

Permalink
Merge pull request #107 from aritra-tech/room_to_ksp
Browse files Browse the repository at this point in the history
Migrated Room to KSP
  • Loading branch information
waseefakhtar authored Nov 13, 2023
2 parents aae8096 + 007d024 commit 2afedb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
id 'kotlin-parcelize'
id 'com.google.devtools.ksp'
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
}
Expand Down Expand Up @@ -50,10 +51,8 @@ android {
}
namespace 'com.waseefakhtar.doseapp'

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

Expand Down Expand Up @@ -101,7 +100,7 @@ dependencies {
// Room
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
ksp "androidx.room:room-compiler:$room_version"

// OkHttp
implementation(platform("com.squareup.okhttp3:okhttp-bom:$okhttp_version"))
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ plugins {
id 'com.android.library' version '8.1.2' apply false
id 'org.jetbrains.kotlin.android' version '1.9.20' apply false
id "org.jlleitschuh.gradle.ktlint" version "10.3.0"
id 'com.google.devtools.ksp' version '1.9.0-1.0.12' apply false
}

subprojects {
Expand Down

0 comments on commit 2afedb4

Please sign in to comment.