Automated cherry pick of #4452 (#4456)

* Remove withEncryption

* Remove warm up

* Downgrade react-native-keychain

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
This commit is contained in:
Mattermost Build 2020-06-20 01:19:31 +02:00 committed by GitHub
parent b5ee7c8908
commit f6bedbb7d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3186 additions and 7026 deletions

View file

@ -36,12 +36,7 @@ public class MattermostCredentialsHelper {
HashMap<String, String> asyncStorageResults = asyncStorage.multiGet(asyncStorageKeys);
String serverUrl = asyncStorageResults.get(CURRENT_SERVER_URL);
final WritableMap options = Arguments.createMap();
final WritableMap authPrompt = Arguments.createMap();
authPrompt.putString("title", "Authenticate to retrieve secret");
authPrompt.putString("cancel", "Cancel");
options.putMap("authenticationPrompt", authPrompt);
keychainModule.getInternetCredentialsForServer(serverUrl, options, promise);
keychainModule.getGenericPasswordForOptions(serverUrl, promise);
}
}

View file

@ -31,7 +31,6 @@ export default async function getStorage(identifier = 'default') {
const MMKV = await new MMKVStorage.Loader().
withInstanceID(identifier).
setProcessingMode(MMKVStorage.MODES.MULTI_PROCESS).
withEncryption().
initialize();
return {

10202
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -52,7 +52,7 @@
"react-native-image-picker": "2.3.1",
"react-native-keyboard-aware-scroll-view": "0.9.1",
"react-native-keyboard-tracking-view": "5.7.0",
"react-native-keychain": "6.0.0",
"react-native-keychain": "4.0.5",
"react-native-linear-gradient": "2.5.6",
"react-native-local-auth": "1.6.0",
"react-native-localize": "1.4.0",