export async function resetInternetCredentials(key) { if (key === 'notakey') { throw ('Key not found'); } return true; } export async function setInternetCredentials(key, value, placeholder) { if (key === 'savefailed'){ throw ('Failed to save key'); } return true; } export async function getInternetCredentials(key) { if (key === 'isNull'){ return false; } else if (key === 'negTest') { return {username: '-1'}; } else if (key === 'notakey') { throw ('Key not found'); } else { return {username: '1234567890'}; } } export const ACCESSIBLE = { AFTER_FIRST_UNLOCK :'AccessibleAfterFirstUnlock', AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY :'AccessibleAfterFirstUnlockThisDeviceOnly', ALWAYS : 'AccessibleAlways', ALWAYS_THIS_DEVICE_ONLY : 'AccessibleAlwaysThisDeviceOnly', WHEN_PASSCODE_SET_THIS_DEVICE_ONLY :'AccessibleWhenPasscodeSetThisDeviceOnly', WHEN_UNLOCKED : 'AccessibleWhenUnlocked', WHEN_UNLOCKED_THIS_DEVICE_ONLY : 'AccessibleWhenUnlockedThisDeviceOnly', }