Skip to content

Latest commit

 

History

History
43 lines (41 loc) · 1.46 KB

README.md

File metadata and controls

43 lines (41 loc) · 1.46 KB

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".