I tried using the native sqlite driver for the des...
# squarelibraries
r
I tried using the native sqlite driver for the desktop platforms and the attached error is coming while the same NativeSqliteDriver is working fine with iOSMain (I need these separate since KTOR client for iOS and desktop are separate). Also attached is my build gradle file. Can anyone please help out?
a
Hmmmm…does your iOS source also use native main? If so you could remove the implementation dependency on the driver from gradle iosMain
Does this error also appear when you go to build from command line
r
@alec will the following work?
Copy code
val iosMain by getting {
            dependencies {
                implementation("io.ktor:ktor-client-ios:$ktorVersion")
                implementation("com.squareup.sqldelight:native-driver:$sqlDelightVersion")
            }
        }
        val iosTest by getting
        val nativeMain by getting {
            dependsOn(iosMain)
            dependencies {
                implementation("io.ktor:ktor-client-curl:$ktorVersion")
            }
        }
        val nativeTest by getting