Commit Graph

37 Commits

Author SHA1 Message Date
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
Diego Mello ea287980d9
Bump version to 4.11.0 (#2392) 2020-08-11 09:26:05 -03:00
Djorkaeff Alexandre fa6897f339
Bump version to 4.10.0 (#2305) 2020-07-16 17:06:37 -03:00
Dan Caseley 97cd2235df
[CHORE] Consistent Rocket.Chat Branding (#2293)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2020-07-15 13:57:36 -03:00
Diego Mello 7c52e6eada
Bump version to 4.9.0 (#2248) 2020-07-06 17:58:40 -03:00
Djorkaeff Alexandre 07e9bcb776
[NEW] Send multiple attachments (#2162)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2020-06-26 17:22:56 -03:00
Djorkaeff Alexandre 594e598167
Bump version to 4.8.0 (#2147) 2020-05-26 17:22:56 -03:00
Diego Mello 61afa86c0e
[NEW] Passcode and biometric unlock (#2059)
* Update expo libs

* Configure expo-local-authentication

* ScreenLockedView

* Authenticate server change

* Auth on app resume

* localAuthentication util

* Add servers.lastLocalAuthenticatedSession column

* Save last session date on background

* Use our own version of app state redux

* Fix libs

* Remove inactive

* ScreenLockConfigView

* Apply on saved data

* Auto lock option label

* Starting passcode

* Basic passcode flow working

* Change passcode

* Check if biometry is enrolled

* Use fork

* Migration

* Patch expo-local-authentication

* Use async storage

* Styling

* Timer

* Refactor

* Lock orientation portrait when not on tablet

* share extension

* Deep linking

* Share extension

* Refactoring passcode

* use state

* Stash

* Refactor

* Change passcode

* Animate dots on error

* Matching passcodes

* Shake

* Remove lib

* Delete button

* Fade animation on modal

* Refactoring

* ItemInfo

* I18n

* I18n

* Remove unnecessary prop

* Save biometry column

* Raise time to lock to 30 seconds

* Vibrate on wrong confirmation passcode

* Reset attempts and save last authentication on local passcode confirmation

* Remove inline style

* Save last auth

* Fix header blink

* Change function name

* Fix android modal

* Fix vibration permission

* PasscodeEnter calls biometry

* Passcode on the state

* Biometry button on PasscodeEnter

* Show whole passcode

* Secure passcode

* Save passcode with promise to prevent empty passcodes and immediately lock

* Patch expo-local-authentication

* I18n

* Fix biometry being called every time

* Blur screen on app inactive

* Revert "Blur screen on app inactive"

This reverts commit a4ce812934.

* Remove immediately because of how Activities work on Android

* Pods

* New layout

* stash

* Layout refactored

* Fix icons

* Force set passcode from server

* Lint

* Improve permission message

* Forced passcode subtitle

* Disable based on admin's choice

* Require local authentication on login success

* Refactor

* Update tests

* Update react-native-device-info to fix notch

* Lint

* Fix modal

* Fix icons

* Fix min auto lock time

* Review

* keep enabled on mobile

* fix forced by admin when enable unlock with passcode

* use DEFAULT_AUTO_LOCK when manual enable screenLock

* fix check has passcode

* request biometry on first password

* reset auto time lock when disabled on server

Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
2020-05-08 14:04:37 -03:00
Djorkaeff Alexandre 5698701a14
Bump version to 4.7.0 (#2035) 2020-04-14 19:04:46 -03:00
Djorkaeff Alexandre a7641c19e2
Bump version to 4.6.4 (#2029)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2020-04-13 10:26:59 -03:00
Diego Mello 46660572c3
Bump version to 4.6.1 (#2001) 2020-04-06 18:52:06 -03:00
Diego Mello 87724ae6d4
Bump version to 4.6.0 (#1911) 2020-03-20 11:15:29 -03:00
Djorkaeff Alexandre 1a3551169f
[IMPROVEMENT] Create App Group property on Info.plist (#1858)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2020-03-11 16:06:55 -03:00
Diego Mello cb9cf527b7
Bump version to 4.5.1 (#1853) 2020-03-10 08:52:17 -03:00
Diego Mello e383271998
Bump version to 4.5.0 (#1761) 2020-02-19 16:57:52 -03:00
Diego Mello 78d142cd09
Bump version to 4.4.0 (#1643) 2020-01-30 16:26:32 -03:00
Diego Mello 7f9a2970a3
Bump version to 4.3.1 (#1641) 2020-01-30 11:20:27 -03:00
Diego Mello 8d8b9145f7
Bump version to 4.3.0 (#1630) 2020-01-28 10:17:33 -03:00
Djorkaeff Alexandre dab453a14c Bump version to 4.2.4 2020-01-18 13:41:07 -03:00
Djorkaeff Alexandre 5fa82e7a81 Bump version to 4.2.3 2020-01-17 13:58:48 -03:00
Diego Mello c07a3db508
Bump version to 4.2.2 (#1571) 2020-01-13 09:24:41 -03:00
Diego Mello 1096d50f76
Bump version to 4.2.1 (#1530) 2020-01-07 18:08:29 -03:00
Diego Mello f19392346a
[CHORE] Sync Experimental and Official app versions (#1458) 2019-12-11 16:41:46 -03:00
Djorkaeff Alexandre 44b4249564 Bump version to 1.26.0 (#1450) 2019-12-10 17:25:59 -03:00
Diego Mello cbd812cf21
Bump version to 1.25.0 (#1424) 2019-11-27 17:54:09 -03:00
Diego Mello 265c3e7385
Bump version to 1.24.0 (#1404) 2019-11-19 16:57:57 -03:00
Djorkaeff Alexandre 40c3978938 Bump version to 1.23.0 (#1394) 2019-11-18 19:11:05 -03:00
Diego Mello b7ebd3bc07
Bump app to 1.22.0 (#1387) 2019-11-14 14:32:29 -03:00
Diego Mello 40ae78c83f
Bump version to 1.21.0 (#1376) 2019-11-08 14:04:33 -03:00
Diego Mello ea057ffbf3
Bump version to 1.20.3 (#1366) 2019-11-05 15:23:08 -03:00
Diego Mello 66222a3f9a
Bump version to 1.20.2 (#1340) 2019-10-29 15:15:05 -03:00
Diego Mello 241205005a
Bump version to 1.20.1 (#1285) 2019-10-08 10:22:01 -03:00
Diego Mello 2d8b1c5ac2
Bump version to 1.20.0 (#1184) 2019-09-10 16:53:21 -03:00
Diego Mello f58f744ee5
Bump version to 1.19.0 (#1146) 2019-08-22 17:54:10 -03:00
Diego Mello 2127950f8d
Bump version to 1.18.0 (#1106) 2019-08-06 16:03:17 -03:00
Djorkaeff Alexandre d80dd0e2ce [FIX] Share Extension issues (#1064) 2019-07-29 13:33:28 -03:00
Djorkaeff Alexandre 18ef6c5430 [NEW] Share extension (#942) 2019-07-18 14:44:02 -03:00