expo-local-authentication 12.0.1 → 12.1.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,7 +10,7 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
- ## 12.0.1 — 2021-10-21
13
+ ## 12.1.0 — 2021-12-03
14
14
 
15
15
  _This version does not introduce any user-facing changes._
16
16
 
package/README.md CHANGED
@@ -13,7 +13,7 @@ For [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/
13
13
 
14
14
  # Installation in bare React Native projects
15
15
 
16
- For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/expo/expo/tree/master/packages/react-native-unimodules) before continuing.
16
+ For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
17
17
 
18
18
  ### Add the package to your npm dependencies
19
19
 
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '12.0.1'
6
+ version = '12.1.0'
7
7
 
8
8
  buildscript {
9
9
  // Simple helper that allows the root project to override versions declared by this library.
@@ -61,7 +61,7 @@ android {
61
61
  minSdkVersion safeExtGet("minSdkVersion", 21)
62
62
  targetSdkVersion safeExtGet("targetSdkVersion", 30)
63
63
  versionCode 30
64
- versionName "12.0.1"
64
+ versionName "12.1.0"
65
65
  }
66
66
  lintOptions {
67
67
  abortOnError false
@@ -15,7 +15,8 @@ export declare enum AuthenticationType {
15
15
  */
16
16
  FACIAL_RECOGNITION = 2,
17
17
  /**
18
- * __Android-only.__ Indicates iris recognition support.
18
+ * Indicates iris recognition support.
19
+ * @platform android
19
20
  */
20
21
  IRIS = 3
21
22
  }
@@ -52,9 +53,10 @@ export declare type LocalAuthenticationOptions = {
52
53
  */
53
54
  disableDeviceFallback?: boolean;
54
55
  /**
55
- * **iOS only.** Allows to customize the default `Use Passcode` label shown after several failed
56
- * authentication attempts. Setting this option to an empty string disables this button from
57
- * showing in the prompt.
56
+ * Allows to customize the default `Use Passcode` label shown after several failed
57
+ * authentication attempts. Setting this option to an empty string disables this button from
58
+ * showing in the prompt.
59
+ * @platform ios
58
60
  */
59
61
  fallbackLabel?: string;
60
62
  };
@@ -10,7 +10,8 @@ export var AuthenticationType;
10
10
  */
11
11
  AuthenticationType[AuthenticationType["FACIAL_RECOGNITION"] = 2] = "FACIAL_RECOGNITION";
12
12
  /**
13
- * __Android-only.__ Indicates iris recognition support.
13
+ * Indicates iris recognition support.
14
+ * @platform android
14
15
  */
15
16
  AuthenticationType[AuthenticationType["IRIS"] = 3] = "IRIS";
16
17
  })(AuthenticationType || (AuthenticationType = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"LocalAuthentication.types.js","sourceRoot":"","sources":["../src/LocalAuthentication.types.ts"],"names":[],"mappings":"AAIA,cAAc;AACd,MAAM,CAAN,IAAY,kBAaX;AAbD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,yEAAe,CAAA;IACf;;OAEG;IACH,uFAAsB,CAAA;IACtB;;OAEG;IACH,2DAAQ,CAAA;AACV,CAAC,EAbW,kBAAkB,KAAlB,kBAAkB,QAa7B;AAED,cAAc;AACd,MAAM,CAAN,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB;;OAEG;IACH,iDAAQ,CAAA;IACR;;OAEG;IACH,qDAAU,CAAA;IACV;;OAEG;IACH,2DAAa,CAAA;AACf,CAAC,EAbW,aAAa,KAAb,aAAa,QAaxB","sourcesContent":["export type LocalAuthenticationResult =\n | { success: true }\n | { success: false; error: string; warning?: string };\n\n// @needsAudit\nexport enum AuthenticationType {\n /**\n * Indicates fingerprint support.\n */\n FINGERPRINT = 1,\n /**\n * Indicates facial recognition support.\n */\n FACIAL_RECOGNITION = 2,\n /**\n * __Android-only.__ Indicates iris recognition support.\n */\n IRIS = 3,\n}\n\n// @needsAudit\nexport enum SecurityLevel {\n /**\n * Indicates no enrolled authentication.\n */\n NONE = 0,\n /**\n * Indicates non-biometric authentication (e.g. PIN, Pattern).\n */\n SECRET = 1,\n /**\n * Indicates biometric authentication.\n */\n BIOMETRIC = 2,\n}\n\n// @needsAudit\nexport type LocalAuthenticationOptions = {\n /**\n * A message that is shown alongside the TouchID or FaceID prompt.\n */\n promptMessage?: string;\n /**\n * Allows to customize the default `Cancel` label shown.\n */\n cancelLabel?: string;\n /**\n * After several failed attempts the system will fallback to the device passcode. This setting\n * allows you to disable this option and instead handle the fallback yourself. This can be\n * preferable in certain custom authentication workflows. This behaviour maps to using the iOS\n * [LAPolicyDeviceOwnerAuthenticationWithBiometrics](https://developer.apple.com/documentation/localauthentication/lapolicy/lapolicydeviceownerauthenticationwithbiometrics?language=objc)\n * policy rather than the [LAPolicyDeviceOwnerAuthentication](https://developer.apple.com/documentation/localauthentication/lapolicy/lapolicydeviceownerauthentication?language=objc)\n * policy. Defaults to `false`.\n */\n disableDeviceFallback?: boolean;\n /**\n * **iOS only.** Allows to customize the default `Use Passcode` label shown after several failed\n * authentication attempts. Setting this option to an empty string disables this button from\n * showing in the prompt.\n */\n fallbackLabel?: string;\n};\n"]}
1
+ {"version":3,"file":"LocalAuthentication.types.js","sourceRoot":"","sources":["../src/LocalAuthentication.types.ts"],"names":[],"mappings":"AAIA,cAAc;AACd,MAAM,CAAN,IAAY,kBAcX;AAdD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,yEAAe,CAAA;IACf;;OAEG;IACH,uFAAsB,CAAA;IACtB;;;OAGG;IACH,2DAAQ,CAAA;AACV,CAAC,EAdW,kBAAkB,KAAlB,kBAAkB,QAc7B;AAED,cAAc;AACd,MAAM,CAAN,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB;;OAEG;IACH,iDAAQ,CAAA;IACR;;OAEG;IACH,qDAAU,CAAA;IACV;;OAEG;IACH,2DAAa,CAAA;AACf,CAAC,EAbW,aAAa,KAAb,aAAa,QAaxB","sourcesContent":["export type LocalAuthenticationResult =\n | { success: true }\n | { success: false; error: string; warning?: string };\n\n// @needsAudit\nexport enum AuthenticationType {\n /**\n * Indicates fingerprint support.\n */\n FINGERPRINT = 1,\n /**\n * Indicates facial recognition support.\n */\n FACIAL_RECOGNITION = 2,\n /**\n * Indicates iris recognition support.\n * @platform android\n */\n IRIS = 3,\n}\n\n// @needsAudit\nexport enum SecurityLevel {\n /**\n * Indicates no enrolled authentication.\n */\n NONE = 0,\n /**\n * Indicates non-biometric authentication (e.g. PIN, Pattern).\n */\n SECRET = 1,\n /**\n * Indicates biometric authentication.\n */\n BIOMETRIC = 2,\n}\n\n// @needsAudit\nexport type LocalAuthenticationOptions = {\n /**\n * A message that is shown alongside the TouchID or FaceID prompt.\n */\n promptMessage?: string;\n /**\n * Allows to customize the default `Cancel` label shown.\n */\n cancelLabel?: string;\n /**\n * After several failed attempts the system will fallback to the device passcode. This setting\n * allows you to disable this option and instead handle the fallback yourself. This can be\n * preferable in certain custom authentication workflows. This behaviour maps to using the iOS\n * [LAPolicyDeviceOwnerAuthenticationWithBiometrics](https://developer.apple.com/documentation/localauthentication/lapolicy/lapolicydeviceownerauthenticationwithbiometrics?language=objc)\n * policy rather than the [LAPolicyDeviceOwnerAuthentication](https://developer.apple.com/documentation/localauthentication/lapolicy/lapolicydeviceownerauthentication?language=objc)\n * policy. Defaults to `false`.\n */\n disableDeviceFallback?: boolean;\n /**\n * Allows to customize the default `Use Passcode` label shown after several failed\n * authentication attempts. Setting this option to an empty string disables this button from\n * showing in the prompt.\n * @platform ios\n */\n fallbackLabel?: string;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-local-authentication",
3
- "version": "12.0.1",
3
+ "version": "12.1.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",
@@ -44,5 +44,8 @@
44
44
  "devDependencies": {
45
45
  "expo-module-scripts": "^2.0.0"
46
46
  },
47
- "gitHead": "4fa0497a180ae707fa860cb03858630ab7af19f4"
47
+ "peerDependencies": {
48
+ "expo": "*"
49
+ },
50
+ "gitHead": "2e5c6983b86d5ecfca028ba64002897d8adc2cc4"
48
51
  }
@@ -15,4 +15,4 @@ const withLocalAuthentication = (config, { faceIDPermission } = {}) => {
15
15
  'android.permission.USE_FINGERPRINT',
16
16
  ]);
17
17
  };
18
- exports.default = config_plugins_1.createRunOncePlugin(withLocalAuthentication, pkg.name, pkg.version);
18
+ exports.default = (0, config_plugins_1.createRunOncePlugin)(withLocalAuthentication, pkg.name, pkg.version);
@@ -13,7 +13,8 @@ export enum AuthenticationType {
13
13
  */
14
14
  FACIAL_RECOGNITION = 2,
15
15
  /**
16
- * __Android-only.__ Indicates iris recognition support.
16
+ * Indicates iris recognition support.
17
+ * @platform android
17
18
  */
18
19
  IRIS = 3,
19
20
  }
@@ -54,9 +55,10 @@ export type LocalAuthenticationOptions = {
54
55
  */
55
56
  disableDeviceFallback?: boolean;
56
57
  /**
57
- * **iOS only.** Allows to customize the default `Use Passcode` label shown after several failed
58
- * authentication attempts. Setting this option to an empty string disables this button from
59
- * showing in the prompt.
58
+ * Allows to customize the default `Use Passcode` label shown after several failed
59
+ * authentication attempts. Setting this option to an empty string disables this button from
60
+ * showing in the prompt.
61
+ * @platform ios
60
62
  */
61
63
  fallbackLabel?: string;
62
64
  };