SQLite.swift
SQLite.swift copied to clipboard
SQLCipher Swift Package Manager Integration
Enables the ability to add SQLCipher.swift Official Swift Package as a dependency when enabling it using SQLCipher Swift Package trait.
Changes
- Adds SQLCipher.swift package as a Package dependency in Package.swift
- Adds
SQLCiphertrait to Package.swift - Adds
SQLCipherproduct as a SQLite Target dependency whenSQLCipherpackage trait is enabled - Adds
SQLITE_HAS_CODECcSetting to SQLite Target whenSQLCipherpackage trait is enabled - Adds
SQLITE_HAS_CODECswiftSetting to SQLite Target whenSQLCipherpackage trait is enabled - Adds
SQLITE_SWIFT_SQLCIPHERswiftSetting to SQLite Target whenSQLCipherpackage trait is enabled - Cipher.swift Connection extension now enabled by
SQLITE_SWIFT_SQLCIPHERswiftSetting whenSQLCipherpackage trait is enabled - Adds
SQLITE_SWIFT_SQLCIPHERswiftSetting to SQLiteTests target to enable CipherTests whenSQLCipherpackage trait is enabled - Adds cipherFipsStatus, cipherProvider, cipherProviderVersion properties to Cipher Connection extension
- Adds applyLicense(), enableCipherLogging(), disableCipherLogging() functions to Cipher Connection extension
Resolves #1084, #1261, #1328
Checks
- [x]
make lint - [x]
swift test - [x]
swift test --traits SQLCipher - [x]
make test - [x] Adds Tests for new Cipher properties
- [x] Updates documentation for adding
SQLite.swiftSwift Package withSQLCiphertrait enabled
Ongoing Support
The SQLCipher Team is committed to updating and supporting the official SQLCipher.swift Swift Package. We're happy to assist with any GitHub issues related to integration or troubleshooting using SQLite.swift with SQLCipher.swift package dependency. Please feel free to raise an issue in the Official SQLCipher.swift repo