Skip to content

Commit

Permalink
Updating to Kotlin 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamMc331 committed May 2, 2024
1 parent ff33243 commit 3ce00d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
11 changes: 2 additions & 9 deletions app/build.gradle.kts
Expand Up @@ -9,8 +9,9 @@ plugins {
id("kotlin-android")
id("kotlin-kapt")
id("dagger.hilt.android.plugin")
alias(libs.plugins.ksp)
id("com.google.protobuf").version("0.9.4")
alias(libs.plugins.compose.compiler)
alias(libs.plugins.ksp)
}

kotlin {
Expand Down Expand Up @@ -73,14 +74,6 @@ android {
)
}

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}

packagingOptions {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
Expand Down
5 changes: 2 additions & 3 deletions build.gradle
Expand Up @@ -10,8 +10,6 @@ buildscript {
// https://developer.android.com/jetpack/androidx/releases/hilt
hiltVersion = libs.versions.hilt.get()

kotlinVersion = "1.9.21"

// https://github.com/ben-manes/gradle-versions-plugin
versionsPluginVersion = "0.51.0"

Expand All @@ -31,7 +29,7 @@ buildscript {
}
dependencies {
classpath "com.android.tools.build:gradle:8.3.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektVersion"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
classpath "com.github.ben-manes:gradle-versions-plugin:$versionsPluginVersion"
Expand All @@ -46,6 +44,7 @@ buildscript {
plugins {
id "com.mxalbert.gradle.jacoco-android" version "0.2.1" apply false
id "org.jmailen.kotlinter" version "4.3.0" apply false
alias(libs.plugins.compose.compiler).apply(false)
alias(libs.plugins.ksp).apply(false)
}

Expand Down
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Expand Up @@ -15,7 +15,8 @@ espresso = "3.5.1"
hilt = "2.51.1"
hiltNavigationCompose = "1.2.0"
junit = "4.13.2"
ksp = "1.9.23-1.0.20"
kotlin = "2.0.0-RC2"
ksp = "2.0.0-RC2-1.0.20"
lifecycle = "2.7.0"
lint = "27.1.2"
material = "1.11.0"
Expand Down Expand Up @@ -73,4 +74,5 @@ accompanist = [
]

[plugins]
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
2 changes: 1 addition & 1 deletion lint-checks/build.gradle
Expand Up @@ -8,7 +8,7 @@ java {
}

dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${libs.versions.kotlin.get()}"
compileOnly "com.android.tools.lint:lint-api:$rootProject.ext.versions.lint"
compileOnly "com.android.tools.lint:lint-checks:$rootProject.ext.versions.lint"

Expand Down

0 comments on commit 3ce00d6

Please sign in to comment.