Rocket.Chat.ReactNative/app/lib/methods
Djorkaeff Alexandre e2f17a5a23
[NEW] Encrypt user credentials and preferences (#2247)
* install react-native-mmkv-storage

* wip ios migration

* change all js rn-user-defaults -> react-native-mmkv-storage

* remove all rn-user-defaults native references (iOS)

* android migration from rn-user-defaults to react-native-mmkv-storage

* ios app group accessible mmkv

* handle get errors

* remove access of credentials from legacy native apps

* remove data of user defaults

* remove no longer necessary import

* js mmkv encryption

* run migration only once

* reply from notification android

* fix app group key access at native level ios

* encrypt user credentials using a specific key

* ios encrypt with random key

* use a random key at the first encryption

* encrypt migrated data on js land

* remove unused function

* reply notifications ios should be working

* use fix instanceID

* android ejson retrieve encrypted data

* remove encryption migrated data for a while

* encryption working between app and share extension

* fix patch react-native-notifications

* ssl pinning working using mmkv encrypted data

* improve react-native-notifications

* run encrypt migration data only once

* fix build

* fix patches magic string

* fix mmkv id

* mmkv -> userPreferences

* fix instance id on android migration

* cast our oldest sharedPreferences string into an object

* revert log remove

* create currentServer Rocket.Chat key

* wrap mmkv api class

* change the get logic

* move userPreferences to lib

* move encrypt migrated data to userPreferences class

* check if the new object is new before insert

* invalidate ci yarn cache

* fix sort migration from android shared preferences

* fix splashscreen forever

* invalidate yarn cache

* invalidate yarn cache

* fix patch

* Minor change

* fix android notifications looking for wrong mmkv instance

* Fix some issues on iOS mmkv native access

* Remove unnecessary code

* Fix notification reply and ssl pinning

* WIP NotificationService use MMKV credentials

* Add KeychainGroup

* Notification idOnly get credentials from mmkv

* Some fixes

* Invalidate yarn cache

* Pods

* Use MMKVAppExtension on NotificationService

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2020-08-19 14:14:22 -03:00
..
helpers [FIX] The auto translate toggle don't save right state (#2142) 2020-06-17 16:22:22 -03:00
subscriptions [NEW] Omnichannel inquiry queue (#2352) 2020-07-31 15:22:30 -03:00
actions.js [FIX] HTTP Basic Auth (#1753) 2020-02-20 09:58:13 -03:00
callJitsi.js [NEW] Log remaining events (#2368) 2020-08-05 10:15:56 -03:00
canOpenRoom.js [IMPROVEMENT] Add deep link to Jitsi calls (#2223) 2020-07-30 14:25:52 -03:00
getCustomEmojis.js [FIX] Server Version (#1392) 2019-11-18 14:50:00 -03:00
getPermissions.js [FIX] Server Version (#1392) 2019-11-18 14:50:00 -03:00
getRoles.js [CHORE] Migrate to Watermelon (#1171) 2019-09-16 17:26:32 -03:00
getRooms.js [FIX] Fetch rooms date (#662) 2019-02-27 17:29:37 -03:00
getSettings.js [IMPROVEMENT] Add deep link to Jitsi calls (#2223) 2020-07-30 14:25:52 -03:00
getSlashCommands.js [FIX] Delete slash commands (#1723) 2020-02-14 10:24:35 -03:00
getUsersPresence.js [FIX] Investigate app losing connection issues (#1890) 2020-04-03 15:03:53 -03:00
loadMessagesForRoom.js [CHORE] Update react-navigation to v5 (#2154) 2020-06-15 11:00:46 -03:00
loadMissedMessages.js [FIX] Load messages (#1910) 2020-03-30 17:10:19 -03:00
loadThreadMessages.js [CHORE] Migrate to Watermelon (#1171) 2019-09-16 17:26:32 -03:00
logout.js [NEW] Encrypt user credentials and preferences (#2247) 2020-08-19 14:14:22 -03:00
readMessages.js [FIX] Load messages (#1910) 2020-03-30 17:10:19 -03:00
sendFileMessage.js [FIX] Allow special chars in Filename (#2020) 2020-04-30 15:20:29 -03:00
sendMessage.js [FIX] Thread message not found (#1830) 2020-03-05 13:31:21 -03:00
updateMessages.js [FIX] Watermelon throwing "Cannot update a record with pending updates" (#1754) 2020-03-02 17:12:41 -03:00