expo-local-authentication 13.2.1 → 13.4.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,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 13.4.0 — 2023-05-08
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 13.3.0 - 2023-04-10
18
+
19
+ ### 🐛 Bug fixes
20
+
21
+ - 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))
22
+
13
23
  ## 13.2.1 — 2023-02-09
14
24
 
15
25
  _This version does not introduce any user-facing changes._
package/README.md CHANGED
@@ -16,7 +16,7 @@ Provides an API for FaceID and TouchID (iOS) or the Fingerprint API (Android) to
16
16
 
17
17
  # Installation in managed Expo projects
18
18
 
19
- For [managed](https://docs.expo.dev/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/local-authentication/).
19
+ For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/local-authentication/).
20
20
 
21
21
  # Installation in bare React Native projects
22
22
 
@@ -25,7 +25,7 @@ For bare React Native projects, you must ensure that you have [installed and con
25
25
  ### Add the package to your npm dependencies
26
26
 
27
27
  ```
28
- expo install expo-local-authentication
28
+ npx expo install expo-local-authentication
29
29
  ```
30
30
 
31
31
  ### Configure for iOS
@@ -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.4.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.4.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.4.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": "4ba50c428c8369bb6b3a51a860d4898ad4ccbe78"
50
50
  }