Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
test failed session
Browse files Browse the repository at this point in the history
  • Loading branch information
radko93 committed Nov 11, 2020
1 parent 618d7e4 commit e19083b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/lib/application.ts
@@ -1,3 +1,5 @@
import Bugsnag from '@bugsnag/react-native';
import AsyncStorage from '@react-native-community/async-storage';
import { SCREEN_AUTHENTICATE } from '@Screens/screens';
import { Platform } from 'react-native';
import VersionInfo from 'react-native-version-info';
Expand All @@ -17,6 +19,7 @@ import { ComponentManager } from './component_manager';
import { EditorGroup } from './editor_group';
import { InstallationService } from './installation_service';
import { MobileDeviceInterface } from './interface';
import Keychain from './keychain';
import { push } from './navigation_service';
import { PreferencesManager } from './preferences_manager';
import { SNReactNativeCrypto } from './react_native_crypto';
Expand Down Expand Up @@ -60,6 +63,24 @@ export class MobileApplication extends SNApplication {
this.Uuid = Math.random().toString();
this.editorGroup = new EditorGroup(this);
this.componentGroup = new ComponentGroup(this);
setTimeout(() => {
this.logState();
}, 1000);

setTimeout(() => {
this.logState();
}, 5000);
}

async logState() {
const storageKeys = (await AsyncStorage.getAllKeys()).filter(
key => !key.startsWith('Item-')
);
const keychain = await Keychain.getKeys();
const values = await AsyncStorage.multiGet(storageKeys);
Bugsnag.leaveBreadcrumb('Storage values: ' + values);
Bugsnag.leaveBreadcrumb('keychain: ' + keychain);
console.log('storage values:', values, 'keychain', keychain);
}

/** @override */
Expand Down

0 comments on commit e19083b

Please sign in to comment.