Path-Check / safeplaces-dct-app

COVID Safe Paths (based on Private Kit) is an open and privacy preserving system to use personal information to battle COVID
https://covidsafepaths.org
MIT License
465 stars 285 forks source link

SAF-799 Android native function to clear Realm locations #1294

Closed juancruzgs closed 4 years ago

juancruzgs commented 4 years ago

Description:

Adds a native method to delete locations stored in Realm database. It's the only RealmObject stored in the database. In the future, if more RealmObjects are added, we can call realm.deleteAll() to delete everything.

Linked issues:

https://pathcheck.atlassian.net/browse/SAF-799

How to test:

This method should be called from React Native to be tested await NativeModules.SecureStorageManager.removeAllLocations()