Closed brodybits closed 1 year ago
I think we need to make some modifications for this to work. If nothing else, they added useNoBackupDirectory
to SupportSQLiteOpenHelper.Configuration
. We probably need to honor that.
Please consider update androidx.sqllite to 2.1.0.
Here is an example of implementation for useNoBackupDirectory
:
https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev/sqlite/sqlite-framework/src/main/java/androidx/sqlite/db/framework/FrameworkSQLiteOpenHelper.java#61
Hello @piotr-pawlowski
We are just finishing efforts on the next public SQLCipher release. Unfortunately, an update to the androidx.sqlite
dependency will need to occur in a follow-up release. We have added it to our backlog. Thanks!
Hello. I noticed that this was closed. Is androidx.sqlite updated to 2.1.0?
Nope, just reopened.
I hope we can consider getting this one updated to 2.1.0
or 2.2.0
. I think 2.2.0
would be ideal but it seems to require Android SDK 31 update.
Hi @brodybits,
This is merged into master, thanks!
UPDATED January 2023:
I think it would be ideal to update this androidx.sqlite/sqlite to
2.2.0
, but it looks to me like this would incur a requirement for Android SDK 31. I am not sure if we are ready for this kind of breaking change yet.This is just a suggestion to use the latest version of
androidx.sqlite
from https://mvnrepository.com/artifact/androidx.sqlite/sqlite. This worked for me when using my custom build in an Apache Cordova test project. I hope I will have a chance to test an AAR with the test suite insqlcipher-android-tests
in the near future, no promises due to some urgent project work. I am raising this as a draft PR for now.