-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added support for encrypting events persisted in sqlite3 db (#118)
* feat: added support for encrypting events persisted in sqlite3 db * chore: updated pubspec.lock files across all packages w.r.t to latest dependencies * chore: improved sample app * chore: updated sample app to use the encryption feature * chore: updated ios plugin to use the latest version of iOS SDK * fix: fixed issues for encryption configuration on android platform * refactor: moved DBEncryption to a separate class * fix: fixed dbencryption status to be sent even if it was disabled to the native sdks * chore: updated podfile.lock of example app --------- Co-authored-by: Desu Sai Venkat <[email protected]>
- Loading branch information
Showing
13 changed files
with
291 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/plugins/rudder_plugin_interface/lib/src/models/db_encryption.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class DBEncryption { | ||
// @param whether the SDK should encrypt the DB | ||
final bool _enabled; | ||
|
||
// @param key to be used for encryption | ||
final String _key; | ||
|
||
DBEncryption(enabled, key) | ||
: _enabled = enabled, | ||
_key = key; | ||
|
||
bool get enabled => _enabled; | ||
String get key => _key; | ||
|
||
Map getMap() { | ||
return {"enabled": _enabled, "key": _key}; | ||
} | ||
} |
Oops, something went wrong.