Skip to content

Conversation

R4N
Copy link

@R4N R4N commented Oct 8, 2025

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 SQLCipher trait to Package.swift
  • Adds SQLCipher product as a SQLite Target dependency when SQLCipher package trait is enabled
  • Adds SQLITE_HAS_CODEC cSetting to SQLite Target when SQLCipher package trait is enabled
  • Adds SQLITE_HAS_CODEC swiftSetting to SQLite Target when SQLCipher package trait is enabled
  • Adds SQLITE_SWIFT_SQLCIPHER swiftSetting to SQLite Target when SQLCipher package trait is enabled
  • Cipher.swift Connection extension now enabled by SQLITE_SWIFT_SQLCIPHER swiftSetting when SQLCipher package trait is enabled
  • Adds SQLITE_SWIFT_SQLCIPHER swiftSetting to SQLiteTests target to enable CipherTests when SQLCipher package 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

  • make lint
  • swift test
  • swift test --traits SQLCipher
  • make test
  • Adds Tests for new Cipher properties
  • Updates documentation for adding SQLite.swift Swift Package with SQLCipher trait 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

R4N added 3 commits September 19, 2025 17:14
…her` trait

- Adds SQLCipher.swift package as a Package dependency in Package.swift
- Adds `SQLCipher` trait to Package.swift
- Adds `SQLCipher` product as a SQLite Target dependency when `SQLCipher` package trait is enabled
- Adds `SQLITE_HAS_CODEC` cSetting to SQLite Target when `SQLCipher` package trait is enabled
- Adds `SQLITE_HAS_CODEC` swiftSetting to SQLite Target when `SQLCipher` package trait is enabled
- Adds `SQLITE_SWIFT_SQLCIPHER` swiftSetting to SQLite Target when `SQLCipher` package trait is enabled
- Cipher.swift Connection extension now enabled by `SQLITE_SWIFT_SQLCIPHER` swiftSetting when `SQLCipher` package trait is enabled
- Adds `SQLITE_SWIFT_SQLCIPHER` swiftSetting to SQLiteTests target to enable CipherTests when `SQLCipher` package trait is enabled
- Adds cipherFipsStatus, cipherProvider, cipherProviderVersion properties to Cipher Connection extension
- Adds applyLicense(), enableCipherLogging(), disableCipherLogging() functions to Cipher Connection extension

Resolves stephencelis#1084, stephencelis#1261, stephencelis#1328
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SqlCipher support for Swift PM

1 participant