Andrew O Hart
11/19/2021, 2:21 PMrusshwolf
11/19/2021, 2:57 PMgradle.properties
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableCInteropCommonization=true
See also https://kotlinlang.org/docs/mpp-share-on-platforms.html#use-native-libraries-in-the-hierarchical-structureAndrew O Hart
11/19/2021, 3:00 PM// import SQLCipher library
create("SQLCipher") {
packageName("com.retailinmotion.SQLCipher")
defFile = file("$projectDir/src/iosMain/c_interop/SQLCipher.def")
includeDirs("$projectDir/src/iosMain/c_interop/SQLCipher/")
extraOpts("-libraryPath", "$projectDir/src/iosMain/c_interop/SQLCipher/")
}
I can use
import com.squareup.sqldelight.drivers.native.NativeSqliteDriver
and it will compile, however NativeSqliteDriver shows as red in the class and I can't view methods on it