Skip to content

softartdev/sqlcipher-ktn-pod

Repository files navigation

sqlcipher-ktn-pod

Maven Central Build & Publish CI/CD

Kotlin Multiplatform library, wrap of cinterop with SQLCipher from Cocoapods to Kotlin Native targets

Using in your projects

The latest release is available on Maven Central.

Gradle

  • 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")
             }
        }
    }
}

Implementation

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")
        }
    }
}

Reason for existence

Workaround for "module not found" error of KMM plugin version "1.4.32".

About

Wrap SQLCipher lib from Cocoapods to Kotlin Native

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published