Skip to content

Commit

Permalink
Merge pull request #18 from YuanLiou/enhancement/upgradeDependencies
Browse files Browse the repository at this point in the history
Upgrade Kotlin and Gradle version
  • Loading branch information
YuanLiou authored Apr 20, 2024
2 parents feebf1a + 8aa8224 commit 1581d39
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
7 changes: 6 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
root = true
[*]
charset = utf-8

[*.{kt,kts}]
ktlint_code_style = android
ktlint_standard_final-newline = disabled
ktlint_standard_no-wildcard-imports = disabled
ktlint_standard_trailing-comma-on-call-site = disabled
ktlint_standard_trailing-comma-on-declaration-site = disabled
ktlint_standard_import-ordering = disabled
ktlint_standard_import-ordering = disabled
ktlint_standard_chain-method-continuation = disabled
ktlint_standard_property-naming = disabled
ktlint_standard_backing-property-naming = disabled
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ plugins {
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.ktlintKotlinter) apply false
alias(libs.plugins.sqlDelight) apply false
}
true // Needed to make the Suppress annotation work for the plugins block
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/AppSettings.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.gradle.api.JavaVersion

object AppSettings {
const val compileSdk = 33
const val compileSdk = 34
const val targetSdk = 33
const val minSdk = 26
const val applicationId = "com.rayliu.gymnote"
Expand All @@ -13,6 +13,6 @@ object AppSettings {
const val wearVersionName = "0.1"

// check: https://developer.android.com/jetpack/androidx/releases/compose-kotlin
const val kotlinCompilerExtensionVersion = "1.4.8"
const val kotlinCompilerExtensionVersion = "1.5.12"
val javaVersion = JavaVersion.VERSION_17
}
16 changes: 8 additions & 8 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
agp = "8.0.2"
kotlin = "1.8.22"
agp = "8.2.2"
kotlin = "1.9.23"
core-ktx = "1.10.1"
junit = "4.13.2"
androidx-test-ext-junit = "1.1.5"
Expand All @@ -12,18 +12,18 @@ constraintlayout = "2.1.4"
percentlayout = "1.0.0"
legacy-support-v4 = "1.0.0"
recyclerview = "1.3.0"
compose-bom = "2023.06.01"
wear-compose = "1.2.0-beta02"
compose-bom = "2024.04.01"
wear-compose = "1.3.1"
lifecycle-runtime-ktx = "2.6.1"
activity-compose = "1.7.2"
activity-compose = "1.9.0"
# https://github.com/google/ksp/releases
ksp = "1.8.22-1.0.11"
ksp = "1.9.23-1.0.20"
horologist = "0.4.12"
wear-input = "1.2.0-alpha02"

# kotlinx
collections-immutable = "0.3.5"
datetime = "0.4.0"
collections-immutable = "0.3.7"
datetime = "0.5.0"

# koin
koin = "3.4.2"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jun 02 11:08:02 CST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

kotlin {
android {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = AppSettings.javaVersion.toString()
Expand Down

0 comments on commit 1581d39

Please sign in to comment.