@@ -3,7 +3,7 @@ plugins {
33 kotlin(" multiplatform" )
44 id(" kotlinx-serialization" )
55 id(" com.android.library" )
6- id(" com.squareup .sqldelight" )
6+ id(" app.cash .sqldelight" )
77 id(" com.google.devtools.ksp" )
88 id(" com.rickclephas.kmp.nativecoroutines" )
99}
@@ -100,21 +100,21 @@ kotlin {
100100 val androidMain by getting {
101101 dependencies {
102102 implementation(" io.ktor:ktor-client-android:${Versions .ktor} " )
103- implementation(" com.squareup .sqldelight:android-driver:${Versions .sqlDelight} " )
103+ implementation(" app.cash .sqldelight:android-driver:${Versions .sqlDelight} " )
104104 }
105105 }
106106
107107 val iOSMain by getting {
108108 dependencies {
109109 implementation(" io.ktor:ktor-client-ios:${Versions .ktor} " )
110- implementation(" com.squareup .sqldelight:native-driver:${Versions .sqlDelight} " )
110+ implementation(" app.cash .sqldelight:native-driver:${Versions .sqlDelight} " )
111111 }
112112 }
113113
114114 val macOSMain by getting {
115115 dependencies {
116116 implementation(" io.ktor:ktor-client-ios:${Versions .ktor} " )
117- implementation(" com.squareup .sqldelight:native-driver-macosx64:${Versions .sqlDelight} " )
117+ implementation(" app.cash .sqldelight:native-driver-macosx64:${Versions .sqlDelight} " )
118118 }
119119 }
120120
@@ -123,7 +123,7 @@ kotlin {
123123 dependencies {
124124 implementation(Deps .Ktor .clientJava)
125125 // implementation(Ktor.slf4j)
126- implementation(" com.squareup .sqldelight:sqlite-driver:${Versions .sqlDelight} " )
126+ implementation(" app.cash .sqldelight:sqlite-driver:${Versions .sqlDelight} " )
127127 }
128128 }
129129
@@ -141,9 +141,11 @@ kotlin {
141141}
142142
143143sqldelight {
144- database(" MyDatabase" ) {
145- packageName = " com.surrus.galwaybus.db"
146- sourceFolders = listOf (" sqldelight" )
144+ databases {
145+ create(" MyDatabase" ) {
146+ packageName.set(" com.surrus.galwaybus.db" )
147+ // sourceFolders = listOf("sqldelight")
148+ }
147149 }
148150}
149151
0 commit comments