I’ve been trying to implement the driver factory regardless of the database class not being generated. I notice a few things :
1/ I couldn’t access the
Context
class because I was targeting the jvm for android. Now I target
android()
and it required a few changes. I’m able to create the
AndroidSqliteDriver
2/ The wizard for kmp library generated some weird/complex logic to figure out ios and native targets, without using the simple
ios { }
target, so I changed the logic to use that now. But I can’t access
NativeSqliteDriver
IntelliJ cannot find the reference even if I have the dependency:
val iosMain by getting {
dependsOn(clientCommon)
dependencies {
implementation("com.squareup.sqldelight:native-driver:1.4.4")
}
}