@@ -5,6 +5,7 @@ plugins {
5
5
kotlin(" native.cocoapods" )
6
6
kotlin(" plugin.serialization" )
7
7
id(" com.android.library" )
8
+ id(" org.jetbrains.compose" )
8
9
id(" app.cash.sqldelight" )
9
10
}
10
11
@@ -46,6 +47,7 @@ kotlin {
46
47
47
48
val commonMain by getting {
48
49
dependencies {
50
+ implementation(compose.runtime)
49
51
implementation(libs.koin.core)
50
52
implementation(libs.coroutines.core)
51
53
implementation(libs.sqlDelight.coroutinesExt)
@@ -62,6 +64,7 @@ kotlin {
62
64
}
63
65
val androidMain by getting {
64
66
dependencies {
67
+ implementation(libs.compose.activity)
65
68
implementation(libs.androidx.lifecycle.viewmodel)
66
69
implementation(libs.sqlDelight.android)
67
70
implementation(libs.ktor.client.okHttp)
@@ -106,6 +109,13 @@ kotlin {
106
109
}
107
110
}
108
111
112
+ // Using Compose gradle plugin v 1.4.1 which supports at most Kotlin 1.8.1
113
+ // And SQLDelight 2.0+ which supports at least Kotlin 1.8.2
114
+ // Quick workaround until we get some easier to match versions.
115
+ compose {
116
+ kotlinCompilerPlugin.set(" org.jetbrains.compose.compiler:compiler:1.4.8" )
117
+ }
118
+
109
119
sqldelight {
110
120
databases.create(" KaMPKitDb" ) {
111
121
packageName.set(" co.touchlab.kampkit.db" )
0 commit comments