Skip to content

Commit

Permalink
Merge pull request #78 from google-developer-training/renovate/main-k…
Browse files Browse the repository at this point in the history
…otlin

Update kotlin (main)
  • Loading branch information
JoseAlcerreca authored Dec 9, 2024
2 parents 605bcf1 + 680d83c commit 3f150f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
id 'com.google.devtools.ksp'
}

android {
Expand Down Expand Up @@ -53,13 +53,13 @@ dependencies {
def room_version = '2.6.1'

implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
//ksp("androidx.room:room-compiler:$room_version")
//kapt "androidx.room:room-compiler:$room_version"
ksp("androidx.room:room-compiler:$room_version")

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

implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0'
implementation 'androidx.core:core-ktx:1.15.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/example/sqlbasics/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
// Don't do this in a production app
GlobalScope.launch {
AppDatabase.getDatabase(applicationContext).californiaParkDao().getAll()
}
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.7.10"
ext.kotlin_version = "2.1.0"
repositories {
google()
mavenCentral()
Expand All @@ -31,7 +31,8 @@ buildscript {
}

plugins {
id 'org.jetbrains.kotlin.android' version '1.9.21' apply false
id 'org.jetbrains.kotlin.android' version '2.1.0' apply false
id 'com.google.devtools.ksp' version '2.1.0-1.0.29' apply false
}

allprojects {
Expand Down

0 comments on commit 3f150f0

Please sign in to comment.