expo-secure-store
Advanced tools
Comparing version 0.0.1-canary-20240406-a4950c7 to 0.0.1-canary-20240411-33a7dc1
@@ -9,2 +9,3 @@ # Changelog | ||
- Add ability to disable permissions in config plugin by passing `false` instead of permission messages. ([#28107](https://github.com/expo/expo/pull/28107) by [@EvanBacon](https://github.com/EvanBacon)) | ||
- Add `canUseBiometricAuthentication` function. ([#26767](https://github.com/expo/expo/pull/26767) by [@behenate](https://github.com/behenate)) | ||
@@ -17,2 +18,3 @@ | ||
- drop unused web `name` property. ([#27437](https://github.com/expo/expo/pull/27437) by [@EvanBacon](https://github.com/EvanBacon)) | ||
- Removed deprecated backward compatible Gradle settings. ([#28083](https://github.com/expo/expo/pull/28083) by [@kudo](https://github.com/kudo)) | ||
@@ -19,0 +21,0 @@ ## 12.8.1 - 2023-12-19 |
{ | ||
"name": "expo-secure-store", | ||
"version": "0.0.1-canary-20240406-a4950c7", | ||
"version": "0.0.1-canary-20240411-33a7dc1", | ||
"description": "Provides a way to encrypt and securely store key-value pairs locally on the device.", | ||
@@ -40,3 +40,3 @@ "main": "build/SecureStore.js", | ||
"devDependencies": { | ||
"expo-module-scripts": "0.0.1-canary-20240406-a4950c7" | ||
"expo-module-scripts": "0.0.1-canary-20240411-33a7dc1" | ||
}, | ||
@@ -46,3 +46,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "a4950c79a9191c7e8162b9529dd0858da19a8b79" | ||
"gitHead": "33a7dc1ce3283426fd553cd6675d0540214ab902" | ||
} |
import { ConfigPlugin } from '@expo/config-plugins'; | ||
declare const _default: ConfigPlugin<void | { | ||
faceIDPermission?: string | undefined; | ||
faceIDPermission?: string | false | undefined; | ||
}>; | ||
export default _default; |
@@ -7,8 +7,8 @@ "use strict"; | ||
const withSecureStore = (config, { faceIDPermission } = {}) => { | ||
return (0, config_plugins_1.withInfoPlist)(config, (config) => { | ||
config.modResults.NSFaceIDUsageDescription = | ||
faceIDPermission || config.modResults.NSFaceIDUsageDescription || FACEID_USAGE; | ||
return config; | ||
return config_plugins_1.IOSConfig.Permissions.createPermissionsPlugin({ | ||
NSFaceIDUsageDescription: FACEID_USAGE, | ||
})(config, { | ||
NSFaceIDUsageDescription: faceIDPermission, | ||
}); | ||
}; | ||
exports.default = (0, config_plugins_1.createRunOncePlugin)(withSecureStore, pkg.name, pkg.version); |
@@ -1,2 +0,2 @@ | ||
import { ConfigPlugin, createRunOncePlugin, withInfoPlist } from '@expo/config-plugins'; | ||
import { ConfigPlugin, IOSConfig, createRunOncePlugin } from '@expo/config-plugins'; | ||
@@ -9,10 +9,9 @@ const pkg = require('expo-secure-store/package.json'); | ||
{ | ||
faceIDPermission?: string; | ||
faceIDPermission?: string | false; | ||
} | void | ||
> = (config, { faceIDPermission } = {}) => { | ||
return withInfoPlist(config, (config) => { | ||
config.modResults.NSFaceIDUsageDescription = | ||
faceIDPermission || config.modResults.NSFaceIDUsageDescription || FACEID_USAGE; | ||
return config; | ||
return IOSConfig.Permissions.createPermissionsPlugin({ | ||
NSFaceIDUsageDescription: FACEID_USAGE, | ||
})(config, { | ||
NSFaceIDUsageDescription: faceIDPermission, | ||
}); | ||
@@ -19,0 +18,0 @@ }; |
Sorry, the diff of this file is not supported yet
102056