Kotlin Multiplatform library, wrap of cinterop with SQLCipher from Cocoapods to Kotlin Native targets
The latest release is available on Maven Central.
- Add the Maven Central repository if it is not already there:
repositories {
mavenCentral()
}
- In multiplatform projects, add a dependency to the iosMain source set dependencies
kotlin {
sourceSets {
iosMain {
dependencies {
implementation("io.github.softartdev:sqlcipher-ktn-pod:$latestVersion")
}
}
}
}
Just cinterop with headers of CocoaPods dependency of SQLDelight v4.0 using Kotlin Native:
kotlin {
ios {
/*
...
*/
val sqlite3 by main.cinterops.creating {
includeDirs("$projectDir/src/include")
}
}
}
Workaround for "module not found" error of KMM plugin version "1.4.32".