Skip to content

Commit

Permalink
Update to new Compose compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed May 30, 2024
1 parent e567688 commit ce6db20
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ The central part of the "Kit" is the starter app. It includes a set of libraries
You will need the following:

- JVM 17
- Android SDK and the latest stable Android Studio (2022.3+) or IntelliJ(2023.2+)
- Mac with Xcode 14+ for the iOS build
- Android SDK and the latest stable Android Studio (2023.3+) or IntelliJ(2024.1+)
- Mac with Xcode 15+ for the iOS build

For a more detailed guide targeted at iOS developers, see [DETAILED_DEV_SETUP](docs/DETAILED_DEV_SETUP.md).

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

android {
Expand Down Expand Up @@ -41,10 +42,6 @@ android {
compose = true
buildConfig = true
}

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

dependencies {
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.skie) apply false
alias(libs.plugins.compose.compiler) apply false
}

subprojects {
Expand Down
16 changes: 7 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ compileSdk = "34"
# Dependencies
kotlin = "2.0.0"

android-gradle-plugin = "8.2.2"
android-gradle-plugin = "8.2.0"
ktlint-gradle = "12.1.0"

compose = "1.6.7"
composeCompiler = "1.5.14"

android-desugaring = "2.0.4"
androidx-core = "1.12.0"
androidx-core = "1.13.1"
androidx-test-junit = "1.1.5"
androidx-activity-compose = "1.8.2"
androidx-activity-compose = "1.9.0"
# TODO: Update to 2.8.+ when updating to Compose 1.7.+
androidx-lifecycle = "2.7.0"

junit = "4.13.2"

coroutines = "1.8.0"
coroutines = "1.8.1"
kotlinx-datetime = "0.6.0"
ktor = "2.3.9"
ktor = "2.3.11"

robolectric = "4.10.3"

Expand All @@ -43,7 +43,6 @@ androidx-lifecycle-viewmodel = { module = "androidx.lifecycle:lifecycle-viewmode
androidx-lifecycle-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "androidx-lifecycle" }
androidx-test-junit = { module = "androidx.test.ext:junit-ktx", version.ref = "androidx-test-junit" }

compose-compiler = { module = "androidx.compose.compiler:compiler", version.ref = "composeCompiler" }
compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
compose-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
compose-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "compose" }
Expand Down Expand Up @@ -95,10 +94,10 @@ android-application = { id = "com.android.application", version.ref = "android-g
android-library = { id = "com.android.library", version.ref = "android-gradle-plugin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
skie = { id = "co.touchlab.skie", version.ref = "skie" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }

[bundles]
app-ui = [
"compose-compiler",
"androidx-core",
"androidx-lifecycle-runtime",
"androidx-lifecycle-viewmodel",
Expand All @@ -124,4 +123,3 @@ shared-androidTest = [
"roboelectric",
"sqlDelight-jvm"
]

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 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit ce6db20

Please sign in to comment.