Skip to content

Commit

Permalink
update kotlin + gradle + agp
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed May 23, 2024
1 parent 46a3605 commit 31ddb86
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
7 changes: 2 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import java.util.Properties
plugins {
id("com.android.application")
kotlin("android")
kotlin("plugin.serialization") version "1.9.23"
kotlin("plugin.serialization") version "2.0.0"
kotlin("plugin.compose") version "2.0.0"
}

android {
Expand Down Expand Up @@ -69,10 +70,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = "1.5.12"
}

bundle {
language {
enableSplit = false // because language is selectable in-app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fun Smoothness.asItem(context: Context, surface: String): DisplayItem<Smoothness
}

/** return fitting vehicle type emoji that corresponds to the "usable by" column in the wiki */
val Smoothness.icon get(): @DrawableRes Int = when (this) {
val Smoothness.icon @DrawableRes get(): Int = when (this) {
EXCELLENT -> R.drawable.ic_smoothness_skateboard
GOOD -> R.drawable.ic_smoothness_scooter
INTERMEDIATE -> R.drawable.ic_smoothness_city_bike
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
mavenCentral()
}
dependencies {
val kotlinVersion = "1.9.23"
classpath("com.android.tools.build:gradle:8.3.2")
val kotlinVersion = "2.0.0"
classpath("com.android.tools.build:gradle:8.4.1")
classpath(kotlin("gradle-plugin", version = kotlinVersion))
}
}
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ dependencies {
implementation("de.westnordost:countryboundaries:2.1")
implementation("com.esotericsoftware.yamlbeans:yamlbeans:1.15")
implementation("org.jsoup:jsoup:1.15.3")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
implementation("com.charleskorn.kaml:kaml:0.58.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
implementation("com.charleskorn.kaml:kaml:0.59.0")
implementation("org.jetbrains:markdown:0.7.0")
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME

0 comments on commit 31ddb86

Please sign in to comment.