Skip to content

Commit

Permalink
chore: downgrade Kotlin to 1.8.20 and compose libs to compatible version
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielcafe committed Jan 9, 2024
1 parent 6d676b1 commit 2b966e9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
17 changes: 15 additions & 2 deletions android-module.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apply plugin: 'kotlin-android'

android {
compileSdk 34
compileSdk 33
defaultConfig {
minSdk 21
targetSdk 34
targetSdk 33
versionCode 1
versionName "1.0"
}
Expand All @@ -30,4 +30,17 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}

kotlin {
jvmToolchain(8)
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/Setup.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.android.build.gradle.LibraryExtension

private fun BaseExtension.android() {
compileSdkVersion(34)
compileSdkVersion(33)
defaultConfig {
minSdk = 21
targetSdk = 34
targetSdk = 33
versionCode = 1
versionName = "1.0"
}
Expand All @@ -27,7 +27,7 @@ fun Project.kotlinMultiplatform(
explicitApi()
}

androidTarget {
android {
if (project.plugins.hasPlugin("com.vanniktech.maven.publish")) {
publishLibraryVariants("release")
}
Expand Down
14 changes: 7 additions & 7 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ plugin-android = "8.1.2"
plugin-ktlint = "11.6.1"
plugin-maven = "0.22.0"

kotlin = "1.9.10"
kotlin = "1.8.20"

coroutines = "1.7.3"
ksp = "1.9.10-1.0.13"
ksp = "1.8.20-1.0.10"
caseFormat = "0.2.0"
konsumeXml = "1.0"

appCompat = "1.6.1"
compose = "1.5.4"
composeCompiler = "1.5.3"
composeActivity = "1.8.0"
composeMultiplatform = "1.5.3"
appCompat = "1.5.1"
compose = "1.4.3"
composeCompiler = "1.4.6"
composeActivity = "1.7.2"
composeMultiplatform = "1.4.1"

test-junit = "1.1.5"

Expand Down

0 comments on commit 2b966e9

Please sign in to comment.