Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
linroid committed Sep 7, 2023
1 parent 4661fdd commit 509b329
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/android-setup.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

android {
compileSdk = 33
compileSdk = 34

defaultConfig {
minSdk = 23
Expand Down
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ napier = "2.6.1"
multiplatform-settings = "1.0.0"
# https://developer.android.com/kotlin/ktx#core
android-core-ktx = "1.12.0"
activity-compose = "1.7.2"

[libraries]
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koin" }
Expand All @@ -40,12 +41,14 @@ ktor-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktor" }
ktor-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }

androidx-core = { module = "androidx.core:core-ktx", version.ref = "android-core-ktx" }
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activity-compose" }

settings = { module="com.russhwolf:multiplatform-settings", version.ref = "multiplatform-settings"}
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization-json" }
napier = { module = "io.github.aakira:napier", version.ref = "napier"}
okio = { module = "com.squareup.okio:okio", version.ref = "okio" }
precompose = { module = "moe.tlaster:precompose", version.ref = "precompose" }
precompose-viewmodel = { module = "moe.tlaster:precompose-viewmodel", version.ref = "precompose" }

[bundles]
koin-tests = ["koin-test"]
Expand Down
5 changes: 3 additions & 2 deletions main/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ kotlin {
implementation(project(":moonraker"))
implementation(project(":ui"))
implementation(project(":moonraker"))
api(libs.precompose)
api(compose.materialIconsExtended)
implementation(libs.precompose)
implementation(libs.precompose.viewmodel)
implementation(compose.materialIconsExtended)
}
}
if (isOnMacOs) {
Expand Down
5 changes: 3 additions & 2 deletions targets/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ plugins {

dependencies {
implementation(project(":main"))
implementation("androidx.activity:activity-compose:1.7.2")
implementation(libs.precompose)
implementation(libs.activity.compose)
}

android {
compileSdk = 33
compileSdk = 34

namespace = "com.linroid.klipperx"

Expand Down
1 change: 1 addition & 0 deletions targets/desktop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ kotlin {
dependencies {
implementation(project(":main"))
implementation(compose.desktop.currentOs)
implementation(libs.precompose)
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ kotlin {
}

android {
android {
namespace = "${group}.ui"
}
namespace = "${group}.ui"
}

0 comments on commit 509b329

Please sign in to comment.