feat(release): prepare 1.1.0 candidate
This commit is contained in:
parent
5a34f66981
commit
5205dcdfa9
736 changed files with 115667 additions and 12203 deletions
27
apps/mobile-rn/__mocks__/react-native-keychain.js
vendored
Normal file
27
apps/mobile-rn/__mocks__/react-native-keychain.js
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
const credentials = new Map()
|
||||
|
||||
module.exports = {
|
||||
ACCESSIBLE: {
|
||||
AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY: 'AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY',
|
||||
},
|
||||
SECURITY_LEVEL: {
|
||||
SECURE_SOFTWARE: 'SECURE_SOFTWARE',
|
||||
},
|
||||
STORAGE_TYPE: {
|
||||
AES_GCM_NO_AUTH: 'AES_GCM_NO_AUTH',
|
||||
},
|
||||
getGenericPassword: jest.fn(async ({ service } = {}) => (
|
||||
credentials.get(service ?? 'default') ?? false
|
||||
)),
|
||||
setGenericPassword: jest.fn(async (username, password, { service } = {}) => {
|
||||
const resolvedService = service ?? 'default'
|
||||
credentials.set(resolvedService, { username, password })
|
||||
return { service: resolvedService, storage: 'AES_GCM_NO_AUTH' }
|
||||
}),
|
||||
resetGenericPassword: jest.fn(async ({ service } = {}) => {
|
||||
credentials.delete(service ?? 'default')
|
||||
return true
|
||||
}),
|
||||
getAllGenericPasswordServices: jest.fn(async () => [...credentials.keys()]),
|
||||
__reset: () => credentials.clear(),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue