@onekeyfe/react-native-check-biometric-auth-changed 1.1.22 → 1.1.24

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.
@@ -47,6 +47,10 @@ class ReactNativeCheckBiometricAuthChanged: HybridReactNativeCheckBiometricAuthC
47
47
  let context = LAContext()
48
48
  _ = context.canEvaluatePolicy(.deviceOwnerAuthentication, error: nil)
49
49
  let domainState = context.evaluatedPolicyDomainState
50
+ if domainState == nil {
51
+ OneKeyLog.warn("Biometric", "evaluatedPolicyDomainState is nil, cannot determine biometric changes")
52
+ return false
53
+ }
50
54
  let oldDomainState = Self.loadDomainState()
51
55
  if let oldDomainState = oldDomainState {
52
56
  changed = oldDomainState != domainState
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-check-biometric-auth-changed",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "react-native-check-biometric-auth-changed",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
package/README.md DELETED
@@ -1,39 +0,0 @@
1
- # @onekeyfe/react-native-check-biometric-auth-changed
2
-
3
- react-native-check-biometric-auth-changed
4
-
5
- ## Installation
6
-
7
-
8
- ```sh
9
- npm install @onekeyfe/react-native-check-biometric-auth-changed react-native-nitro-modules
10
-
11
- > `react-native-nitro-modules` is required as this library relies on [Nitro Modules](https://nitro.margelo.com/).
12
- ```
13
-
14
-
15
- ## Usage
16
-
17
-
18
- ```js
19
- import { multiply } from '@onekeyfe/react-native-check-biometric-auth-changed';
20
-
21
- // ...
22
-
23
- const result = multiply(3, 7);
24
- ```
25
-
26
-
27
- ## Contributing
28
-
29
- - [Development workflow](CONTRIBUTING.md#development-workflow)
30
- - [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
31
- - [Code of conduct](CODE_OF_CONDUCT.md)
32
-
33
- ## License
34
-
35
- MIT
36
-
37
- ---
38
-
39
- Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)