Skip to content

Commit

Permalink
feat: Update to Kotlin 2.0 & enable enableStrongSkippingMode for co…
Browse files Browse the repository at this point in the history
…mpose compiler (#141)

Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam authored May 30, 2024
1 parent d48f3de commit c164956
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.iml
.gradle
.kotlin
/local.properties
/.idea/caches
/.idea/libraries
Expand Down
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.plugin.compose'
id 'dagger.hilt.android.plugin'
id 'com.google.devtools.ksp'
id "com.mikepenz.aboutlibraries.plugin" version "11.1.3"
Expand Down Expand Up @@ -57,8 +58,8 @@ android {
buildConfig = true

}
composeOptions {
kotlinCompilerExtensionVersion '1.5.12'
composeCompiler {
enableStrongSkippingMode = true
}
packagingOptions {
resources {
Expand All @@ -84,7 +85,7 @@ dependencies {

// Android core components.
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
implementation 'androidx.activity:activity-compose:1.9.0'
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.7.0"
Expand All @@ -102,7 +103,7 @@ dependencies {
// Android 12+ splash API.
implementation 'androidx.core:core-splashscreen:1.0.1'
// Material icons.
implementation 'androidx.compose.material:material-icons-extended:1.6.6'
implementation 'androidx.compose.material:material-icons-extended:1.6.7'
// Room database
implementation "androidx.room:room-ktx:$room_version"
ksp "androidx.room:room-compiler:$room_version"
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext {
kotlin_version = '1.9.23'
kotlin_version = '2.0.0'
gradle_version = '8.4.1'
hilt_version = '2.50'
room_version = '2.6.1'
Expand All @@ -22,5 +22,6 @@ plugins {
id 'com.android.application' version "$gradle_version" apply false
id 'com.android.library' version "$gradle_version" apply false
id 'org.jetbrains.kotlin.android' version "$kotlin_version" apply false
id 'com.google.devtools.ksp' version '1.9.23-1.0.20' apply false
id 'org.jetbrains.kotlin.plugin.compose' version "$kotlin_version" apply false
id 'com.google.devtools.ksp' version '2.0.0-1.0.21' apply false
}

0 comments on commit c164956

Please sign in to comment.