HomePhabricator
Diffusion Comm cffd38ff042f

[native] Make SecureStore methods static

Description

[native] Make SecureStore methods static

Summary:
ENG-1567

This will make it easier to expose SecureStore to Rust as our native Rust codebase as inherently stateless.

Test Plan:
Tested on Android and iOS physical devices:

  • Add log to SQLiteQueryExecutor::initilize that prints maybeEncryptionKey read from Secure Store
  • Open the app -> encryption key is logged
  • Log out and log in to trigger creation of a new encryption key
  • Restart the app -> a different encryption key is logged

Tested notifications on physical devices:

  • Send notification - ensure it is displayed correctly.
  • Send notification to backgrounded app, kill keyserver in the terminal and open the app. Ensure that data delivered with notification are present even though the keyserver is not running.

Reviewers: marcin, kamil

Reviewed By: marcin

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D9923

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMcffd38ff042f: [native] Make SecureStore methods static (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Dec 19 2023, 7:27 AM