Skip to content

Commit

Permalink
Bump kotlin to 2.0 (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregpereira authored Jul 6, 2024
1 parent 320b6b3 commit 4ffd04d
Show file tree
Hide file tree
Showing 25 changed files with 44 additions and 84 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/workspace.xml
*.iml
.gradle
.kotlin
/local.properties
/.idea
.DS_Store
Expand Down
6 changes: 2 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
id("kotlin-android")
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
alias(libs.plugins.compose.compiler)
}

@Suppress("UnstableApiUsage")
Expand Down Expand Up @@ -88,10 +89,7 @@ android {

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
buildConfig = true
}
}

Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ buildscript {

plugins {
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.compose.compiler) apply false
}
4 changes: 2 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
kotlin("jvm") version "1.9.22"
kotlin("jvm") version "2.0.0"
}

repositories {
Expand All @@ -26,6 +26,6 @@ repositories {

dependencies {
implementation(kotlin("gradle-plugin"))
implementation("com.android.tools.build:gradle:8.2.2")
implementation("com.android.tools.build:gradle:8.3.0")
implementation(kotlin("compiler-embeddable"))
}
3 changes: 3 additions & 0 deletions core/analytics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ android {
defaultConfig {
minSdk = (findProperty("android.minSdk") as String).toInt()
}
buildFeatures {
buildConfig = true
}
}
5 changes: 1 addition & 4 deletions feature/folder-detail/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,10 +19,6 @@ android {
buildFeatures {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
}

java {
Expand Down
5 changes: 1 addition & 4 deletions feature/folder-insert/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,10 +19,6 @@ android {
buildFeatures {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
}

java {
Expand Down
5 changes: 1 addition & 4 deletions feature/folder-list/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,10 +19,6 @@ android {
buildFeatures {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
}

java {
Expand Down
4 changes: 1 addition & 3 deletions feature/folder-preview/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,9 +19,6 @@ android {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
namespace 'br.alexandregpereira.hunter.folder.preview'
}

Expand Down
4 changes: 1 addition & 3 deletions feature/monster-compendium/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -24,9 +25,6 @@ android {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
namespace 'br.alexandregpereira.hunter.monster.compendium'
}

Expand Down
5 changes: 1 addition & 4 deletions feature/monster-content-manager/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,10 +19,6 @@ android {
buildFeatures {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
}

java {
Expand Down
4 changes: 1 addition & 3 deletions feature/monster-detail/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -21,9 +22,6 @@ android {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
namespace 'br.alexandregpereira.hunter.detail'
}

Expand Down
5 changes: 1 addition & 4 deletions feature/monster-lore-detail/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,10 +19,6 @@ android {
buildFeatures {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
}

java {
Expand Down
4 changes: 1 addition & 3 deletions feature/monster-registration/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,9 +19,6 @@ android {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
namespace 'br.alexandregpereira.hunter.monster.registration'
}

Expand Down
4 changes: 1 addition & 3 deletions feature/search/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,9 +19,6 @@ android {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
namespace 'br.alexandregpereira.hunter.search'
}

Expand Down
4 changes: 1 addition & 3 deletions feature/settings/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,9 +19,6 @@ android {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
namespace 'br.alexandregpereira.hunter.settings'
}

Expand Down
4 changes: 1 addition & 3 deletions feature/spell-compendium/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,9 +19,6 @@ android {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
namespace 'br.alexandregpereira.hunter.spell.compendium'
}

Expand Down
4 changes: 1 addition & 3 deletions feature/spell-detail/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,9 +19,6 @@ android {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
namespace 'br.alexandregpereira.hunter.spell.detail'
}

Expand Down
5 changes: 1 addition & 4 deletions feature/sync/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -18,10 +19,6 @@ android {
buildFeatures {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.compiler.get()
}
}

java {
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ android.compileSdk=34
android.minSdk=24
xcodeproj=iosApp/MonsterCompendium.xcodeproj
kotlin.mpp.androidSourceSetLayoutVersion=2
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=true
android.nonFinalResIds=true
org.gradle.configuration-cache=true
Expand Down
34 changes: 17 additions & 17 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
[versions]
android_gradle_plugin = "8.2.2"
appcompat = "1.6.1"
android_gradle_plugin = "8.3.0"
appcompat = "1.7.0"
arch_core_testing = "2.2.0"
coil_compose = "2.5.0"
compose_activity = '1.8.2'
compose = '1.6.2'
compose_material = '1.6.7'
compose_compiler = '1.5.9'
core_ktx = '1.12.0'
espresso_core = "3.5.1"
firebase_bom = "32.7.2"
googleplay_services = "4.4.1"
gradle_firebase_crashlytics = "2.9.9"
junit_ext = "1.1.5"
compose_activity = '1.9.0'
compose = '1.6.8'
compose_material = '1.6.8'
core_ktx = '1.13.1'
espresso_core = "3.6.1"
firebase_bom = "33.1.1"
googleplay_services = "4.4.2"
gradle_firebase_crashlytics = "3.0.2"
junit_ext = "1.2.1"
junit = "4.13.2"
koin = '3.5.3'
koin_compose = "3.5.3"
kotlin = '1.9.22'
kotlin = '2.0.0'
kotlin_coroutines_test = '1.8.1'
kotlin_coroutines = '1.8.1'
kotlin_datetime = "0.5.0"
kotlin_datetime = "0.6.0"
kotlinx_serialization = "1.6.3"
ktor = "2.3.8"
lifecycle = "2.7.0"
material = "1.11.0"
ktor = "2.3.9"
lifecycle = "2.8.3"
material = "1.12.0"
mockk = "1.13.9"
multiplatform-settings = "1.1.1"
okhttp3_logging_interceptor = "4.12.0"
Expand Down Expand Up @@ -88,3 +87,4 @@ viewmodel-bundle = ["viewmodel"]
[plugins]
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
sqldelight = { id = "com.squareup.sqldelight", version.ref = "sqldelight" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 4ffd04d

Please sign in to comment.