expo-local-authentication 13.2.1 → 13.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 13.3.0 — 2023-04-10
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - On iOS, fix incorrect nil check when checking for `NSFaceIDUsageDescription` in the Info.plist. ([#21500](https://github.com/expo/expo/pull/21500) by [@alanjhughes](https://github.com/alanjhughes))
18
+
13
19
  ## 13.2.1 — 2023-02-09
14
20
 
15
21
  _This version does not introduce any user-facing changes._
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '13.2.1'
6
+ version = '13.3.0'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -74,7 +74,7 @@ android {
74
74
  minSdkVersion safeExtGet("minSdkVersion", 21)
75
75
  targetSdkVersion safeExtGet("targetSdkVersion", 33)
76
76
  versionCode 30
77
- versionName "13.2.1"
77
+ versionName "13.3.0"
78
78
  }
79
79
  lintOptions {
80
80
  abortOnError false
@@ -58,7 +58,7 @@ public class LocalAuthenticationModule: Module {
58
58
  }
59
59
 
60
60
  AsyncFunction("authenticateAsync") { (options: LocalAuthenticationOptions, promise: Promise) -> Void in
61
- var warningMessage: NSString?
61
+ var warningMessage: String?
62
62
  var reason = options.promptMessage
63
63
  var cancelLabel = options.cancelLabel
64
64
  var fallbackLabel = options.fallbackLabel
@@ -67,7 +67,7 @@ public class LocalAuthenticationModule: Module {
67
67
  if isFaceIdDevice() {
68
68
  let usageDescription = Bundle.main.object(forInfoDictionaryKey: "NSFaceIDUsageDescription")
69
69
 
70
- if usageDescription != nil {
70
+ if usageDescription == nil {
71
71
  warningMessage = "FaceID is available but has not been configured. To enable FaceID, provide `NSFaceIDUsageDescription`."
72
72
  }
73
73
  }
@@ -84,7 +84,7 @@ public class LocalAuthenticationModule: Module {
84
84
 
85
85
  context.interactionNotAllowed = false
86
86
 
87
- let policyForAuth: LAPolicy = disableDeviceFallback ? LAPolicy.deviceOwnerAuthenticationWithBiometrics : LAPolicy.deviceOwnerAuthentication
87
+ let policyForAuth = disableDeviceFallback ? LAPolicy.deviceOwnerAuthenticationWithBiometrics : LAPolicy.deviceOwnerAuthentication
88
88
 
89
89
  if disableDeviceFallback {
90
90
  if warningMessage != nil {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-local-authentication",
3
- "version": "13.2.1",
3
+ "version": "13.3.0",
4
4
  "description": "Provides an API for FaceID and TouchID (iOS) or the Fingerprint API (Android) to authenticate the user with a face or fingerprint scan.",
5
5
  "main": "build/LocalAuthentication.js",
6
6
  "types": "build/LocalAuthentication.d.ts",
@@ -46,5 +46,5 @@
46
46
  "peerDependencies": {
47
47
  "expo": "*"
48
48
  },
49
- "gitHead": "1f8a6a09570fd451378565ca34933018ce48454e"
49
+ "gitHead": "5613f862a64dfa5e046b9c4a336280e3ac6dd9df"
50
50
  }