Add getter and setter for integers, getter for all keys and function to remove subset of keys to MMKV
Summary: This differential extends MMKV API with integer getter and setter, function to retrieve all keys in the db and function to remove subset of keys from the db.
Test Plan:
iOS:
- Below the comm::CommMMKV::initialize() line add lines that set several different integers under different keys.
- In NotificationService.mm at the beginning add lines that:
- Get all keys.
- Tries to get value for each key.
- Then call remove with one-element array with one key.
- Get all keys again and log them.
- Send notification and check that all integers are logged and the set of keys logged doesn't contain the one passed to removeKeys.
Android:
- Below the CommMMKV.initialize() line add lines that set several different integers under different keys.
- In CommNotificationsHandler.java at the beginning add lines that:
- Get all keys.
- Tries to get value for each key.
- Then call remove with one-element array with one key.
- Get all keys again and log them.
- Send notification and check that all integers are logged and the set of keys logged doesn't contain the one passed to removeKeys.
Reviewers: tomek, bartek
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D11047