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

Update to SQLCipher 4.0 #460

Closed
vostreltsov opened this issue Dec 17, 2018 · 4 comments
Closed

Update to SQLCipher 4.0 #460

vostreltsov opened this issue Dec 17, 2018 · 4 comments
Labels

Comments

@vostreltsov
Copy link

Hi there,

When can we expect an update to sqlcipher 4.0?

Thank you!

@groue
Copy link
Owner

groue commented Dec 17, 2018

Hello @vostreltsov,

This is a good question. There is a difficulty, though: SQLCipher 4 is not backward compatible with SQLCipher 3.

For more information about those breaking changes, don't miss the Upgrading to SQLCipher 4 article.

This is a difficulty for GRDB, because:

  1. Semantic versioning requires that the major version of GRDBCipher is bumped when it eventually ships with SQLCipher 4.

  2. I don't quite want GRDBCipher to have a different version number than the regular GRDB, because it would be difficult to track in the long run, both for GRDB maintainers and GRDB users.

  3. I wasn't planning a new major version of GRDB before Swift 5. And I haven't started yet thinking seriously about the potential API improvements we could bring to GRDB 4.

In a word: SQLCipher 4 won't be supported out of the box until GRDB 4, which isn't even planned yet.

Conclusion: if you do really want SQLCipher 4 now, you will have to do it yourself.

For example, you can try to use GRDBCipher and force SQLCipher version in your Podfile, as below (don't assume this works, because I haven't tried it):

pod 'GRDBCipher', '~> 3.6'
pod 'SQLCipher', '~> 4.0'

I hope this enough essential information so that you can start upgrading your version of SQLCipher.

Will you please tell us your journey in this uncharted territory? I'm positively certain it will be a very precious experience for the whole community.

@groue groue added the question label Dec 17, 2018
@groue
Copy link
Owner

groue commented Dec 17, 2018

I also recommend reading sqlcipher/sqlcipher#296, which contains very useful information about SQLCipher 4 migration.

@groue
Copy link
Owner

groue commented Dec 18, 2018

You may also fork GRDB and change its podspec, as @N-Olifer did in his fork.

I'm closing this issue now. Please come back with any fresh information, any time.

@groue groue closed this as completed Dec 18, 2018
@groue
Copy link
Owner

groue commented Feb 17, 2019

GRDB 4 and SQLCipher 4: #480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants