-
Notifications
You must be signed in to change notification settings - Fork 523
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
Sergeyd/plugin system #187
Conversation
Woah great thanks! you're awesome! I'll check this out someday! |
…LiteCihperProvider selected database will be encripted
9aa34d8
to
2b73654
Compare
@andpor I rebased the PR to fix conflicts. |
@andpor, is there something I could do to move it to master? |
I just got back from being away for a while this summer. I will take a look at all outstanding stuff in this repo in the next few weeks. Apologies for delay... |
apologies for not getting to this PR yet...too busy at work ...hopefully very soon... |
Any news here? :) |
Comments from owner of Cordova-sqlite-storage that this project was based on: +1 for additional abstraction to make it easier to change Android sqlite implementation -1 for the following items:
Bundling of sqlcipher leads to important legal export requirements described at: https://discuss.zetetic.net/t/export-requirements-for-applications-using-sqlcipher/47 |
@brodybits, we are not bundling the sqlitecipher. That was the point of the abstraction layer - if people don't need to have an encryption they don't need to do anything extra. If they want to - there is one extra step to take in order to make it work. |
@dryganets I think I get it now. SQLCipher for Android is only included if the extra package is added. SQLCipher is already supported for iOS if SQLCIPHER is defined ref: #40 (comment). I am still wondering how the needed encryption provider (probably CommonCrypto in case of iOS) would be linked (dynamic), should not be linked unless explicitly required by the app developer. I am starting to warm to the idea of the separate sqlite provider for Android to improve the modularity and make it easier for the app developer to only add the parts actually needed. It would be ideal to have pluggable sqlite provider for both iOS and Android. Assuming we would only need the sqlite provider for Android, I would personally favor calling it something like "sqlite-provider-android" or "react-native-sqlite-provider-android". |
So far, the best way I see is to have two different podfiles for different configurations. |
@andpor any plans to release it? I could move all the plugins related stuff under my personal repositories with appropriative licensing to minimize structural changes to the project if you want. |
Closed in favor of Plugin System V2. |
Historically android had two packages android and android native.
This is the first step for deprecation of android-native.
The plugin system allows abstract logic of work with SQLite out of the logic of work with database implementation.
As an icing on the cake, it adds the implementation of SqliteCipher plugin.