Skip to content

Commit 680d83c

Browse files
committed
Trying to fix build
1 parent ea57cf0 commit 680d83c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
plugins {
1818
id 'com.android.application'
1919
id 'kotlin-android'
20-
id 'kotlin-kapt'
20+
id 'com.google.devtools.ksp'
2121
}
2222

2323
android {
@@ -53,8 +53,8 @@ dependencies {
5353
def room_version = '2.6.1'
5454

5555
implementation "androidx.room:room-runtime:$room_version"
56-
kapt "androidx.room:room-compiler:$room_version"
57-
//ksp("androidx.room:room-compiler:$room_version")
56+
//kapt "androidx.room:room-compiler:$room_version"
57+
ksp("androidx.room:room-compiler:$room_version")
5858

5959
// optional - Kotlin Extensions and Coroutines support for Room
6060
implementation "androidx.room:room-ktx:$room_version"

app/src/main/java/com/example/sqlbasics/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class MainActivity : AppCompatActivity() {
2424
override fun onCreate(savedInstanceState: Bundle?) {
2525
super.onCreate(savedInstanceState)
2626
setContentView(R.layout.activity_main)
27+
// Don't do this in a production app
2728
GlobalScope.launch {
2829
AppDatabase.getDatabase(applicationContext).californiaParkDao().getAll()
2930
}

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ buildscript {
3232

3333
plugins {
3434
id 'org.jetbrains.kotlin.android' version '2.1.0' apply false
35+
id 'com.google.devtools.ksp' version '2.1.0-1.0.29' apply false
3536
}
3637

3738
allprojects {

0 commit comments

Comments
 (0)