Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a subspec in your podspec file for SQLiteCipher #390

Closed
wants to merge 4 commits into from

Conversation

gblotter
Copy link

The reason why I took this approach is one had to compile the SQLite.swift library to use a codec if they were to get the goodness of SQLCipher, yet the only difference between your other repo and this one was the presence of the Cipher.swift file.

This approach does NOT add the Cipher.swift file to the Xcode project, but rather includes it in the pod's subspec so that if someone chooses to install it, it is present in the build SQLite.swift framework.

If this PR is accepted and merged, than #389 wouldn't be necessary, and neither would the separate git repo for SQLiteCipher.swift (especially stephencelis/SQLiteCipher.swift#12)

gblotter and others added 4 commits March 29, 2016 07:51
Did NOT add the Cipher.swift file to the xcode project, so this will only be available if someone puts "pod 'SQLite.swift/SQLiteCipher'" in their pod file
@pepejeria
Copy link

Any update on this?

@TheNephilim88
Copy link

@stephencelis ?

@jberkel
Copy link
Collaborator

jberkel commented May 26, 2016

This needs rebasing since there are now subspecs defined in the current master.

Also not sure if SWIFT_INCLUDE_PATHS is needed in the subspec. Otherwise there'll be a mixup of CSQLite (defined by the system) and the SQLiteCipher framework.

I'm not sure how SQLiteCipher would integrate, presumably we'd need another compile time flag?

#if SQLITE_SWIFT_STANDALONE
import sqlite3
#else if  SQLITE_SWIFT_SQLITECIPHER
import SQLiteCipher
#else
import CSQLite
#endif

@jberkel
Copy link
Collaborator

jberkel commented Sep 15, 2016

No activity, closing. Please reopen a new PR if needed.

@jberkel jberkel closed this Sep 15, 2016
@jberkel
Copy link
Collaborator

jberkel commented Dec 5, 2016

this has been reworked into #553

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.

4 participants