@capgo/capacitor-native-biometric 5.0.1 → 5.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.
Files changed (60) hide show
  1. package/LICENSE +2 -2
  2. package/{readme.md → README.md} +49 -22
  3. package/android/gradlew +8 -4
  4. package/android/src/main/java/ee/forgr/biometric/AuthActivity.java +71 -33
  5. package/android/src/main/java/ee/forgr/biometric/NativeBiometric.java +118 -74
  6. package/dist/docs.json +27 -13
  7. package/dist/esm/definitions.d.ts +31 -3
  8. package/dist/esm/definitions.js +27 -0
  9. package/dist/esm/definitions.js.map +1 -1
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/esm/web.d.ts +3 -3
  12. package/dist/esm/web.js.map +1 -1
  13. package/dist/plugin.cjs.js +24 -1
  14. package/dist/plugin.cjs.js.map +1 -1
  15. package/dist/plugin.js +26 -3
  16. package/dist/plugin.js.map +1 -1
  17. package/ios/Plugin/Plugin.swift +60 -58
  18. package/ios/Podfile.lock +4 -4
  19. package/ios/Pods/Local Podspecs/Capacitor.podspec.json +2 -2
  20. package/ios/Pods/Local Podspecs/CapacitorCordova.podspec.json +2 -2
  21. package/ios/Pods/Manifest.lock +4 -4
  22. package/ios/Pods/Pods.xcodeproj/project.pbxproj +572 -572
  23. package/ios/Pods/Target Support Files/Capacitor/Capacitor-Info.plist +1 -1
  24. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-Info.plist +1 -1
  25. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh +0 -0
  26. package/package.json +17 -22
  27. package/android/.gradle/8.0.2/checksums/checksums.lock +0 -0
  28. package/android/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  29. package/android/.gradle/8.0.2/dependencies-accessors/gc.properties +0 -0
  30. package/android/.gradle/8.0.2/executionHistory/executionHistory.bin +0 -0
  31. package/android/.gradle/8.0.2/executionHistory/executionHistory.lock +0 -0
  32. package/android/.gradle/8.0.2/fileChanges/last-build.bin +0 -0
  33. package/android/.gradle/8.0.2/fileHashes/fileHashes.bin +0 -0
  34. package/android/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
  35. package/android/.gradle/8.0.2/fileHashes/resourceHashesCache.bin +0 -0
  36. package/android/.gradle/8.0.2/gc.properties +0 -0
  37. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  38. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  39. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  40. package/android/.gradle/vcs-1/gc.properties +0 -0
  41. package/android/android.iml +0 -40
  42. package/android/local.properties +0 -8
  43. package/ios/Plugin.xcodeproj/project.xcworkspace/xcuserdata/pilito.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  44. package/ios/Plugin.xcodeproj/xcuserdata/jmartinez.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  45. package/ios/Plugin.xcodeproj/xcuserdata/josemartinez.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  46. package/ios/Plugin.xcodeproj/xcuserdata/pilito.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  47. package/ios/Plugin.xcworkspace/xcuserdata/jmartinez.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  48. package/ios/Plugin.xcworkspace/xcuserdata/josemartinez.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  49. package/ios/Plugin.xcworkspace/xcuserdata/pilito.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  50. package/ios/Pods/Pods.xcodeproj/xcuserdata/jmartinez.xcuserdatad/xcschemes/Capacitor.xcscheme +0 -60
  51. package/ios/Pods/Pods.xcodeproj/xcuserdata/jmartinez.xcuserdatad/xcschemes/CapacitorCordova.xcscheme +0 -58
  52. package/ios/Pods/Pods.xcodeproj/xcuserdata/jmartinez.xcuserdatad/xcschemes/Pods-Plugin.xcscheme +0 -58
  53. package/ios/Pods/Pods.xcodeproj/xcuserdata/jmartinez.xcuserdatad/xcschemes/Pods-PluginTests.xcscheme +0 -58
  54. package/ios/Pods/Pods.xcodeproj/xcuserdata/jmartinez.xcuserdatad/xcschemes/xcschememanagement.plist +0 -39
  55. package/ios/Pods/Pods.xcodeproj/xcuserdata/josemartinez.xcuserdatad/xcschemes/Capacitor.xcscheme +0 -60
  56. package/ios/Pods/Pods.xcodeproj/xcuserdata/josemartinez.xcuserdatad/xcschemes/CapacitorCordova.xcscheme +0 -58
  57. package/ios/Pods/Pods.xcodeproj/xcuserdata/josemartinez.xcuserdatad/xcschemes/Pods-Plugin.xcscheme +0 -58
  58. package/ios/Pods/Pods.xcodeproj/xcuserdata/josemartinez.xcuserdatad/xcschemes/Pods-PluginTests.xcscheme +0 -58
  59. package/ios/Pods/Pods.xcodeproj/xcuserdata/josemartinez.xcuserdatad/xcschemes/xcschememanagement.plist +0 -39
  60. package/ios/Pods/Pods.xcodeproj/xcuserdata/pilito.xcuserdatad/xcschemes/xcschememanagement.plist +0 -29
package/dist/docs.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "methods": [
8
8
  {
9
9
  "name": "isAvailable",
10
- "signature": "(options?: IsAvailableOptions) => any",
10
+ "signature": "(options?: IsAvailableOptions | undefined) => any",
11
11
  "parameters": [
12
12
  {
13
13
  "name": "options",
14
14
  "docs": "",
15
- "type": "IsAvailableOptions"
15
+ "type": "IsAvailableOptions | undefined"
16
16
  }
17
17
  ],
18
18
  "returns": "any",
@@ -42,12 +42,12 @@
42
42
  },
43
43
  {
44
44
  "name": "verifyIdentity",
45
- "signature": "(options?: BiometricOptions) => any",
45
+ "signature": "(options?: BiometricOptions | undefined) => any",
46
46
  "parameters": [
47
47
  {
48
48
  "name": "options",
49
49
  "docs": "",
50
- "type": "BiometricOptions"
50
+ "type": "BiometricOptions | undefined"
51
51
  }
52
52
  ],
53
53
  "returns": "any",
@@ -225,7 +225,7 @@
225
225
  "tags": [],
226
226
  "docs": "",
227
227
  "complexTypes": [],
228
- "type": "number"
228
+ "type": "number | undefined"
229
229
  }
230
230
  ]
231
231
  },
@@ -241,42 +241,49 @@
241
241
  "tags": [],
242
242
  "docs": "",
243
243
  "complexTypes": [],
244
- "type": "string"
244
+ "type": "string | undefined"
245
245
  },
246
246
  {
247
247
  "name": "title",
248
248
  "tags": [],
249
249
  "docs": "",
250
250
  "complexTypes": [],
251
- "type": "string"
251
+ "type": "string | undefined"
252
252
  },
253
253
  {
254
254
  "name": "subtitle",
255
255
  "tags": [],
256
256
  "docs": "",
257
257
  "complexTypes": [],
258
- "type": "string"
258
+ "type": "string | undefined"
259
259
  },
260
260
  {
261
261
  "name": "description",
262
262
  "tags": [],
263
263
  "docs": "",
264
264
  "complexTypes": [],
265
- "type": "string"
265
+ "type": "string | undefined"
266
266
  },
267
267
  {
268
268
  "name": "negativeButtonText",
269
269
  "tags": [],
270
270
  "docs": "",
271
271
  "complexTypes": [],
272
- "type": "string"
272
+ "type": "string | undefined"
273
273
  },
274
274
  {
275
275
  "name": "useFallback",
276
276
  "tags": [],
277
- "docs": "",
277
+ "docs": "Specifies if should fallback to passcode authentication if biometric authentication fails.",
278
278
  "complexTypes": [],
279
- "type": "boolean"
279
+ "type": "boolean | undefined"
280
+ },
281
+ {
282
+ "name": "fallbackTitle",
283
+ "tags": [],
284
+ "docs": "Only for iOS.\nSet the text for the fallback button in the authentication dialog.\nIf this property is not specified, the default text is set by the system.",
285
+ "complexTypes": [],
286
+ "type": "string | undefined"
280
287
  },
281
288
  {
282
289
  "name": "maxAttempts",
@@ -288,7 +295,7 @@
288
295
  ],
289
296
  "docs": "Only for Android.\nSet a maximum number of attempts for biometric authentication. The maximum allowed by android is 5.",
290
297
  "complexTypes": [],
291
- "type": "number"
298
+ "type": "number | undefined"
292
299
  }
293
300
  ]
294
301
  },
@@ -385,36 +392,43 @@
385
392
  "members": [
386
393
  {
387
394
  "name": "NONE",
395
+ "value": "0",
388
396
  "tags": [],
389
397
  "docs": ""
390
398
  },
391
399
  {
392
400
  "name": "TOUCH_ID",
401
+ "value": "1",
393
402
  "tags": [],
394
403
  "docs": ""
395
404
  },
396
405
  {
397
406
  "name": "FACE_ID",
407
+ "value": "2",
398
408
  "tags": [],
399
409
  "docs": ""
400
410
  },
401
411
  {
402
412
  "name": "FINGERPRINT",
413
+ "value": "3",
403
414
  "tags": [],
404
415
  "docs": ""
405
416
  },
406
417
  {
407
418
  "name": "FACE_AUTHENTICATION",
419
+ "value": "4",
408
420
  "tags": [],
409
421
  "docs": ""
410
422
  },
411
423
  {
412
424
  "name": "IRIS_AUTHENTICATION",
425
+ "value": "5",
413
426
  "tags": [],
414
427
  "docs": ""
415
428
  },
416
429
  {
417
430
  "name": "MULTIPLE",
431
+ "value": "6",
418
432
  "tags": [],
419
433
  "docs": ""
420
434
  }
@@ -28,7 +28,16 @@ export interface BiometricOptions {
28
28
  subtitle?: string;
29
29
  description?: string;
30
30
  negativeButtonText?: string;
31
+ /**
32
+ * Specifies if should fallback to passcode authentication if biometric authentication fails.
33
+ */
31
34
  useFallback?: boolean;
35
+ /**
36
+ * Only for iOS.
37
+ * Set the text for the fallback button in the authentication dialog.
38
+ * If this property is not specified, the default text is set by the system.
39
+ */
40
+ fallbackTitle?: string;
32
41
  /**
33
42
  * Only for Android.
34
43
  * Set a maximum number of attempts for biometric authentication. The maximum allowed by android is 5.
@@ -47,6 +56,25 @@ export interface SetCredentialOptions {
47
56
  export interface DeleteCredentialOptions {
48
57
  server: string;
49
58
  }
59
+ /**
60
+ * Keep this in sync with BiometricAuthError in README.md
61
+ * Update whenever `convertToPluginErrorCode` functions are modified
62
+ */
63
+ export declare enum BiometricAuthError {
64
+ UNKNOWN_ERROR = 0,
65
+ BIOMETRICS_UNAVAILABLE = 1,
66
+ USER_LOCKOUT = 2,
67
+ BIOMETRICS_NOT_ENROLLED = 3,
68
+ USER_TEMPORARY_LOCKOUT = 4,
69
+ AUTHENTICATION_FAILED = 10,
70
+ APP_CANCEL = 11,
71
+ INVALID_CONTEXT = 12,
72
+ NOT_INTERACTIVE = 13,
73
+ PASSCODE_NOT_SET = 14,
74
+ SYSTEM_CANCEL = 15,
75
+ USER_CANCEL = 16,
76
+ USER_FALLBACK = 17
77
+ }
50
78
  export interface NativeBiometricPlugin {
51
79
  /**
52
80
  * Checks if biometric authentication hardware is available.
@@ -63,7 +91,7 @@ export interface NativeBiometricPlugin {
63
91
  * @memberof NativeBiometricPlugin
64
92
  * @since 1.0.0
65
93
  */
66
- verifyIdentity(options?: BiometricOptions): Promise<any>;
94
+ verifyIdentity(options?: BiometricOptions): Promise<void>;
67
95
  /**
68
96
  * Gets the stored credentials for a given server.
69
97
  * @param {GetCredentialOptions} options
@@ -79,7 +107,7 @@ export interface NativeBiometricPlugin {
79
107
  * @memberof NativeBiometricPlugin
80
108
  * @since 1.0.0
81
109
  */
82
- setCredentials(options: SetCredentialOptions): Promise<any>;
110
+ setCredentials(options: SetCredentialOptions): Promise<void>;
83
111
  /**
84
112
  * Deletes the stored credentials for a given server.
85
113
  * @param {DeleteCredentialOptions} options
@@ -87,5 +115,5 @@ export interface NativeBiometricPlugin {
87
115
  * @memberof NativeBiometricPlugin
88
116
  * @since 1.0.0
89
117
  */
90
- deleteCredentials(options: DeleteCredentialOptions): Promise<any>;
118
+ deleteCredentials(options: DeleteCredentialOptions): Promise<void>;
91
119
  }
@@ -1,11 +1,38 @@
1
1
  export var BiometryType;
2
2
  (function (BiometryType) {
3
+ // Android, iOS
3
4
  BiometryType[BiometryType["NONE"] = 0] = "NONE";
5
+ // iOS
4
6
  BiometryType[BiometryType["TOUCH_ID"] = 1] = "TOUCH_ID";
7
+ // iOS
5
8
  BiometryType[BiometryType["FACE_ID"] = 2] = "FACE_ID";
9
+ // Android
6
10
  BiometryType[BiometryType["FINGERPRINT"] = 3] = "FINGERPRINT";
11
+ // Android
7
12
  BiometryType[BiometryType["FACE_AUTHENTICATION"] = 4] = "FACE_AUTHENTICATION";
13
+ // Android
8
14
  BiometryType[BiometryType["IRIS_AUTHENTICATION"] = 5] = "IRIS_AUTHENTICATION";
15
+ // Android
9
16
  BiometryType[BiometryType["MULTIPLE"] = 6] = "MULTIPLE";
10
17
  })(BiometryType || (BiometryType = {}));
18
+ /**
19
+ * Keep this in sync with BiometricAuthError in README.md
20
+ * Update whenever `convertToPluginErrorCode` functions are modified
21
+ */
22
+ export var BiometricAuthError;
23
+ (function (BiometricAuthError) {
24
+ BiometricAuthError[BiometricAuthError["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
25
+ BiometricAuthError[BiometricAuthError["BIOMETRICS_UNAVAILABLE"] = 1] = "BIOMETRICS_UNAVAILABLE";
26
+ BiometricAuthError[BiometricAuthError["USER_LOCKOUT"] = 2] = "USER_LOCKOUT";
27
+ BiometricAuthError[BiometricAuthError["BIOMETRICS_NOT_ENROLLED"] = 3] = "BIOMETRICS_NOT_ENROLLED";
28
+ BiometricAuthError[BiometricAuthError["USER_TEMPORARY_LOCKOUT"] = 4] = "USER_TEMPORARY_LOCKOUT";
29
+ BiometricAuthError[BiometricAuthError["AUTHENTICATION_FAILED"] = 10] = "AUTHENTICATION_FAILED";
30
+ BiometricAuthError[BiometricAuthError["APP_CANCEL"] = 11] = "APP_CANCEL";
31
+ BiometricAuthError[BiometricAuthError["INVALID_CONTEXT"] = 12] = "INVALID_CONTEXT";
32
+ BiometricAuthError[BiometricAuthError["NOT_INTERACTIVE"] = 13] = "NOT_INTERACTIVE";
33
+ BiometricAuthError[BiometricAuthError["PASSCODE_NOT_SET"] = 14] = "PASSCODE_NOT_SET";
34
+ BiometricAuthError[BiometricAuthError["SYSTEM_CANCEL"] = 15] = "SYSTEM_CANCEL";
35
+ BiometricAuthError[BiometricAuthError["USER_CANCEL"] = 16] = "USER_CANCEL";
36
+ BiometricAuthError[BiometricAuthError["USER_FALLBACK"] = 17] = "USER_FALLBACK";
37
+ })(BiometricAuthError || (BiometricAuthError = {}));
11
38
  //# sourceMappingURL=definitions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+CAAI,CAAA;IACJ,uDAAQ,CAAA;IACR,qDAAO,CAAA;IACP,6DAAW,CAAA;IACX,6EAAmB,CAAA;IACnB,6EAAmB,CAAA;IACnB,uDAAQ,CAAA;AACV,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB"}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAeX;AAfD,WAAY,YAAY;IACtB,eAAe;IACf,+CAAQ,CAAA;IACR,MAAM;IACN,uDAAY,CAAA;IACZ,MAAM;IACN,qDAAW,CAAA;IACX,UAAU;IACV,6DAAe,CAAA;IACf,UAAU;IACV,6EAAuB,CAAA;IACvB,UAAU;IACV,6EAAuB,CAAA;IACvB,UAAU;IACV,uDAAY,CAAA;AACd,CAAC,EAfW,YAAY,KAAZ,YAAY,QAevB;AA0DD;;;GAGG;AACH,MAAM,CAAN,IAAY,kBAcX;AAdD,WAAY,kBAAkB;IAC5B,6EAAiB,CAAA;IACjB,+FAA0B,CAAA;IAC1B,2EAAgB,CAAA;IAChB,iGAA2B,CAAA;IAC3B,+FAA0B,CAAA;IAC1B,8FAA0B,CAAA;IAC1B,wEAAe,CAAA;IACf,kFAAoB,CAAA;IACpB,kFAAoB,CAAA;IACpB,oFAAqB,CAAA;IACrB,8EAAkB,CAAA;IAClB,0EAAgB,CAAA;IAChB,8EAAkB,CAAA;AACpB,CAAC,EAdW,kBAAkB,KAAlB,kBAAkB,QAc7B","sourcesContent":["export enum BiometryType {\n // Android, iOS\n NONE = 0,\n // iOS\n TOUCH_ID = 1,\n // iOS\n FACE_ID = 2,\n // Android\n FINGERPRINT = 3,\n // Android\n FACE_AUTHENTICATION = 4,\n // Android\n IRIS_AUTHENTICATION = 5,\n // Android\n MULTIPLE = 6,\n}\n\nexport interface Credentials {\n username: string;\n password: string;\n}\n\nexport interface IsAvailableOptions {\n /**\n * Specifies if should fallback to passcode authentication if biometric authentication is not available.\n */\n useFallback: boolean;\n}\n\nexport interface AvailableResult {\n isAvailable: boolean;\n biometryType: BiometryType;\n errorCode?: number;\n}\n\nexport interface BiometricOptions {\n reason?: string;\n title?: string;\n subtitle?: string;\n description?: string;\n negativeButtonText?: string;\n /**\n * Specifies if should fallback to passcode authentication if biometric authentication fails.\n */\n useFallback?: boolean;\n /**\n * Only for iOS.\n * Set the text for the fallback button in the authentication dialog.\n * If this property is not specified, the default text is set by the system.\n */\n fallbackTitle?: string;\n /**\n * Only for Android.\n * Set a maximum number of attempts for biometric authentication. The maximum allowed by android is 5.\n * @default 1\n */\n maxAttempts?: number;\n}\n\nexport interface GetCredentialOptions {\n server: string;\n}\n\nexport interface SetCredentialOptions {\n username: string;\n password: string;\n server: string;\n}\n\nexport interface DeleteCredentialOptions {\n server: string;\n}\n\n/**\n * Keep this in sync with BiometricAuthError in README.md\n * Update whenever `convertToPluginErrorCode` functions are modified\n */\nexport enum BiometricAuthError {\n UNKNOWN_ERROR = 0,\n BIOMETRICS_UNAVAILABLE = 1,\n USER_LOCKOUT = 2,\n BIOMETRICS_NOT_ENROLLED = 3,\n USER_TEMPORARY_LOCKOUT = 4,\n AUTHENTICATION_FAILED = 10,\n APP_CANCEL = 11,\n INVALID_CONTEXT = 12,\n NOT_INTERACTIVE = 13,\n PASSCODE_NOT_SET = 14,\n SYSTEM_CANCEL = 15,\n USER_CANCEL = 16,\n USER_FALLBACK = 17,\n}\n\nexport interface NativeBiometricPlugin {\n /**\n * Checks if biometric authentication hardware is available.\n * @param {IsAvailableOptions} [options]\n * @returns {Promise<AvailableResult>}\n * @memberof NativeBiometricPlugin\n * @since 1.0.0\n */\n isAvailable(options?: IsAvailableOptions): Promise<AvailableResult>;\n /**\n * Prompts the user to authenticate with biometrics.\n * @param {BiometricOptions} [options]\n * @returns {Promise<any>}\n * @memberof NativeBiometricPlugin\n * @since 1.0.0\n */\n verifyIdentity(options?: BiometricOptions): Promise<void>;\n /**\n * Gets the stored credentials for a given server.\n * @param {GetCredentialOptions} options\n * @returns {Promise<Credentials>}\n * @memberof NativeBiometricPlugin\n * @since 1.0.0\n */\n getCredentials(options: GetCredentialOptions): Promise<Credentials>;\n /**\n * Stores the given credentials for a given server.\n * @param {SetCredentialOptions} options\n * @returns {Promise<any>}\n * @memberof NativeBiometricPlugin\n * @since 1.0.0\n */\n setCredentials(options: SetCredentialOptions): Promise<void>;\n /**\n * Deletes the stored credentials for a given server.\n * @param {DeleteCredentialOptions} options\n * @returns {Promise<any>}\n * @memberof NativeBiometricPlugin\n * @since 1.0.0\n */\n deleteCredentials(options: DeleteCredentialOptions): Promise<void>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,eAAe,GAAG,cAAc,CACpC,iBAAiB,EACjB;IACE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;CACnE,CACF,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,eAAe,GAAG,cAAc,CACpC,iBAAiB,EACjB;IACE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;CACnE,CACF,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\n\nimport type { NativeBiometricPlugin } from \"./definitions\";\n\nconst NativeBiometric = registerPlugin<NativeBiometricPlugin>(\n \"NativeBiometric\",\n {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n }\n);\n\nexport * from \"./definitions\";\nexport { NativeBiometric };\n"]}
package/dist/esm/web.d.ts CHANGED
@@ -3,8 +3,8 @@ import type { NativeBiometricPlugin, AvailableResult, BiometricOptions, GetCrede
3
3
  export declare class NativeBiometricWeb extends WebPlugin implements NativeBiometricPlugin {
4
4
  constructor();
5
5
  isAvailable(): Promise<AvailableResult>;
6
- verifyIdentity(_options?: BiometricOptions): Promise<any>;
6
+ verifyIdentity(_options?: BiometricOptions): Promise<void>;
7
7
  getCredentials(_options: GetCredentialOptions): Promise<Credentials>;
8
- setCredentials(_options: SetCredentialOptions): Promise<any>;
9
- deleteCredentials(_options: DeleteCredentialOptions): Promise<any>;
8
+ setCredentials(_options: SetCredentialOptions): Promise<void>;
9
+ deleteCredentials(_options: DeleteCredentialOptions): Promise<void>;
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAY5C,MAAM,OAAO,kBACX,SAAQ,SAAS;IAGjB;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IACD,WAAW;QACT,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,cAAc,CAAC,QAA2B;QACxC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,cAAc,CAAC,QAA8B;QAC3C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,cAAc,CAAC,QAA8B;QAC3C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,iBAAiB,CAAC,QAAiC;QACjD,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF"}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAY5C,MAAM,OAAO,kBACX,SAAQ,SAAS;IAGjB;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IACD,WAAW;QACT,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,cAAc,CAAC,QAA2B;QACxC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,cAAc,CAAC,QAA8B;QAC3C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,cAAc,CAAC,QAA8B;QAC3C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,iBAAiB,CAAC,QAAiC;QACjD,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF","sourcesContent":["import { WebPlugin } from \"@capacitor/core\";\n\nimport type {\n NativeBiometricPlugin,\n AvailableResult,\n BiometricOptions,\n GetCredentialOptions,\n SetCredentialOptions,\n DeleteCredentialOptions,\n Credentials,\n} from \"./definitions\";\n\nexport class NativeBiometricWeb\n extends WebPlugin\n implements NativeBiometricPlugin\n{\n constructor() {\n super();\n }\n isAvailable(): Promise<AvailableResult> {\n throw new Error(\"Method not implemented.\");\n }\n\n verifyIdentity(_options?: BiometricOptions): Promise<void> {\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options: GetCredentialOptions): Promise<Credentials> {\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options: SetCredentialOptions): Promise<void> {\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options: DeleteCredentialOptions): Promise<void> {\n throw new Error(\"Method not implemented.\");\n }\n}\n"]}
@@ -1,17 +1,40 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var core = require('@capacitor/core');
4
6
 
5
- exports.BiometryType = void 0;
6
7
  (function (BiometryType) {
8
+ // Android, iOS
7
9
  BiometryType[BiometryType["NONE"] = 0] = "NONE";
10
+ // iOS
8
11
  BiometryType[BiometryType["TOUCH_ID"] = 1] = "TOUCH_ID";
12
+ // iOS
9
13
  BiometryType[BiometryType["FACE_ID"] = 2] = "FACE_ID";
14
+ // Android
10
15
  BiometryType[BiometryType["FINGERPRINT"] = 3] = "FINGERPRINT";
16
+ // Android
11
17
  BiometryType[BiometryType["FACE_AUTHENTICATION"] = 4] = "FACE_AUTHENTICATION";
18
+ // Android
12
19
  BiometryType[BiometryType["IRIS_AUTHENTICATION"] = 5] = "IRIS_AUTHENTICATION";
20
+ // Android
13
21
  BiometryType[BiometryType["MULTIPLE"] = 6] = "MULTIPLE";
14
22
  })(exports.BiometryType || (exports.BiometryType = {}));
23
+ (function (BiometricAuthError) {
24
+ BiometricAuthError[BiometricAuthError["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
25
+ BiometricAuthError[BiometricAuthError["BIOMETRICS_UNAVAILABLE"] = 1] = "BIOMETRICS_UNAVAILABLE";
26
+ BiometricAuthError[BiometricAuthError["USER_LOCKOUT"] = 2] = "USER_LOCKOUT";
27
+ BiometricAuthError[BiometricAuthError["BIOMETRICS_NOT_ENROLLED"] = 3] = "BIOMETRICS_NOT_ENROLLED";
28
+ BiometricAuthError[BiometricAuthError["USER_TEMPORARY_LOCKOUT"] = 4] = "USER_TEMPORARY_LOCKOUT";
29
+ BiometricAuthError[BiometricAuthError["AUTHENTICATION_FAILED"] = 10] = "AUTHENTICATION_FAILED";
30
+ BiometricAuthError[BiometricAuthError["APP_CANCEL"] = 11] = "APP_CANCEL";
31
+ BiometricAuthError[BiometricAuthError["INVALID_CONTEXT"] = 12] = "INVALID_CONTEXT";
32
+ BiometricAuthError[BiometricAuthError["NOT_INTERACTIVE"] = 13] = "NOT_INTERACTIVE";
33
+ BiometricAuthError[BiometricAuthError["PASSCODE_NOT_SET"] = 14] = "PASSCODE_NOT_SET";
34
+ BiometricAuthError[BiometricAuthError["SYSTEM_CANCEL"] = 15] = "SYSTEM_CANCEL";
35
+ BiometricAuthError[BiometricAuthError["USER_CANCEL"] = 16] = "USER_CANCEL";
36
+ BiometricAuthError[BiometricAuthError["USER_FALLBACK"] = 17] = "USER_FALLBACK";
37
+ })(exports.BiometricAuthError || (exports.BiometricAuthError = {}));
15
38
 
16
39
  const NativeBiometric = core.registerPlugin("NativeBiometric", {
17
40
  web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.NativeBiometricWeb()),
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BiometryType;\n(function (BiometryType) {\n BiometryType[BiometryType[\"NONE\"] = 0] = \"NONE\";\n BiometryType[BiometryType[\"TOUCH_ID\"] = 1] = \"TOUCH_ID\";\n BiometryType[BiometryType[\"FACE_ID\"] = 2] = \"FACE_ID\";\n BiometryType[BiometryType[\"FINGERPRINT\"] = 3] = \"FINGERPRINT\";\n BiometryType[BiometryType[\"FACE_AUTHENTICATION\"] = 4] = \"FACE_AUTHENTICATION\";\n BiometryType[BiometryType[\"IRIS_AUTHENTICATION\"] = 5] = \"IRIS_AUTHENTICATION\";\n BiometryType[BiometryType[\"MULTIPLE\"] = 6] = \"MULTIPLE\";\n})(BiometryType || (BiometryType = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst NativeBiometric = registerPlugin(\"NativeBiometric\", {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeBiometric };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeBiometricWeb extends WebPlugin {\n constructor() {\n super();\n }\n isAvailable() {\n throw new Error(\"Method not implemented.\");\n }\n verifyIdentity(_options) {\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","registerPlugin","WebPlugin"],"mappings":";;;;AAAWA,8BAAa;AACxB,CAAC,UAAU,YAAY,EAAE;AACzB,IAAI,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;AACpD,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;AAC5D,IAAI,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC;AAC1D,IAAI,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa,CAAC;AAClE,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB,CAAC;AAClF,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB,CAAC;AAClF,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;AAC5D,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC;;ACRlC,MAAC,eAAe,GAAGC,mBAAc,CAAC,iBAAiB,EAAE;AAC1D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACtE,CAAC;;ACFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;AAClD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE,CAAC;AAChB,KAAK;AACL,IAAI,WAAW,GAAG;AAClB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,iBAAiB,CAAC,QAAQ,EAAE;AAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BiometryType;\n(function (BiometryType) {\n // Android, iOS\n BiometryType[BiometryType[\"NONE\"] = 0] = \"NONE\";\n // iOS\n BiometryType[BiometryType[\"TOUCH_ID\"] = 1] = \"TOUCH_ID\";\n // iOS\n BiometryType[BiometryType[\"FACE_ID\"] = 2] = \"FACE_ID\";\n // Android\n BiometryType[BiometryType[\"FINGERPRINT\"] = 3] = \"FINGERPRINT\";\n // Android\n BiometryType[BiometryType[\"FACE_AUTHENTICATION\"] = 4] = \"FACE_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"IRIS_AUTHENTICATION\"] = 5] = \"IRIS_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"MULTIPLE\"] = 6] = \"MULTIPLE\";\n})(BiometryType || (BiometryType = {}));\n/**\n * Keep this in sync with BiometricAuthError in README.md\n * Update whenever `convertToPluginErrorCode` functions are modified\n */\nexport var BiometricAuthError;\n(function (BiometricAuthError) {\n BiometricAuthError[BiometricAuthError[\"UNKNOWN_ERROR\"] = 0] = \"UNKNOWN_ERROR\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_UNAVAILABLE\"] = 1] = \"BIOMETRICS_UNAVAILABLE\";\n BiometricAuthError[BiometricAuthError[\"USER_LOCKOUT\"] = 2] = \"USER_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_NOT_ENROLLED\"] = 3] = \"BIOMETRICS_NOT_ENROLLED\";\n BiometricAuthError[BiometricAuthError[\"USER_TEMPORARY_LOCKOUT\"] = 4] = \"USER_TEMPORARY_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"AUTHENTICATION_FAILED\"] = 10] = \"AUTHENTICATION_FAILED\";\n BiometricAuthError[BiometricAuthError[\"APP_CANCEL\"] = 11] = \"APP_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"INVALID_CONTEXT\"] = 12] = \"INVALID_CONTEXT\";\n BiometricAuthError[BiometricAuthError[\"NOT_INTERACTIVE\"] = 13] = \"NOT_INTERACTIVE\";\n BiometricAuthError[BiometricAuthError[\"PASSCODE_NOT_SET\"] = 14] = \"PASSCODE_NOT_SET\";\n BiometricAuthError[BiometricAuthError[\"SYSTEM_CANCEL\"] = 15] = \"SYSTEM_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_CANCEL\"] = 16] = \"USER_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_FALLBACK\"] = 17] = \"USER_FALLBACK\";\n})(BiometricAuthError || (BiometricAuthError = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst NativeBiometric = registerPlugin(\"NativeBiometric\", {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeBiometric };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeBiometricWeb extends WebPlugin {\n constructor() {\n super();\n }\n isAvailable() {\n throw new Error(\"Method not implemented.\");\n }\n verifyIdentity(_options) {\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","BiometricAuthError","registerPlugin","WebPlugin"],"mappings":";;;;;;AACA,CAAC,UAAU,YAAY,EAAE;AACzB;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;AACpD;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;AAC5D;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC;AAC1D;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa,CAAC;AAClE;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB,CAAC;AAClF;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB,CAAC;AAClF;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;AAC5D,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AAMxC,CAAC,UAAU,kBAAkB,EAAE;AAC/B,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;AAClF,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,wBA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I,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACtE,CAAC;;ACFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;AAClD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE,CAAC;AAChB,KAAK;AACL,IAAI,WAAW,GAAG;AAClB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,iBAAiB,CAAC,QAAQ,EAAE;AAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -1,16 +1,37 @@
1
- var capacitorApp = (function (exports, core) {
1
+ var capacitorCapacitorBiometric = (function (exports, core) {
2
2
  'use strict';
3
3
 
4
- exports.BiometryType = void 0;
5
4
  (function (BiometryType) {
5
+ // Android, iOS
6
6
  BiometryType[BiometryType["NONE"] = 0] = "NONE";
7
+ // iOS
7
8
  BiometryType[BiometryType["TOUCH_ID"] = 1] = "TOUCH_ID";
9
+ // iOS
8
10
  BiometryType[BiometryType["FACE_ID"] = 2] = "FACE_ID";
11
+ // Android
9
12
  BiometryType[BiometryType["FINGERPRINT"] = 3] = "FINGERPRINT";
13
+ // Android
10
14
  BiometryType[BiometryType["FACE_AUTHENTICATION"] = 4] = "FACE_AUTHENTICATION";
15
+ // Android
11
16
  BiometryType[BiometryType["IRIS_AUTHENTICATION"] = 5] = "IRIS_AUTHENTICATION";
17
+ // Android
12
18
  BiometryType[BiometryType["MULTIPLE"] = 6] = "MULTIPLE";
13
19
  })(exports.BiometryType || (exports.BiometryType = {}));
20
+ (function (BiometricAuthError) {
21
+ BiometricAuthError[BiometricAuthError["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
22
+ BiometricAuthError[BiometricAuthError["BIOMETRICS_UNAVAILABLE"] = 1] = "BIOMETRICS_UNAVAILABLE";
23
+ BiometricAuthError[BiometricAuthError["USER_LOCKOUT"] = 2] = "USER_LOCKOUT";
24
+ BiometricAuthError[BiometricAuthError["BIOMETRICS_NOT_ENROLLED"] = 3] = "BIOMETRICS_NOT_ENROLLED";
25
+ BiometricAuthError[BiometricAuthError["USER_TEMPORARY_LOCKOUT"] = 4] = "USER_TEMPORARY_LOCKOUT";
26
+ BiometricAuthError[BiometricAuthError["AUTHENTICATION_FAILED"] = 10] = "AUTHENTICATION_FAILED";
27
+ BiometricAuthError[BiometricAuthError["APP_CANCEL"] = 11] = "APP_CANCEL";
28
+ BiometricAuthError[BiometricAuthError["INVALID_CONTEXT"] = 12] = "INVALID_CONTEXT";
29
+ BiometricAuthError[BiometricAuthError["NOT_INTERACTIVE"] = 13] = "NOT_INTERACTIVE";
30
+ BiometricAuthError[BiometricAuthError["PASSCODE_NOT_SET"] = 14] = "PASSCODE_NOT_SET";
31
+ BiometricAuthError[BiometricAuthError["SYSTEM_CANCEL"] = 15] = "SYSTEM_CANCEL";
32
+ BiometricAuthError[BiometricAuthError["USER_CANCEL"] = 16] = "USER_CANCEL";
33
+ BiometricAuthError[BiometricAuthError["USER_FALLBACK"] = 17] = "USER_FALLBACK";
34
+ })(exports.BiometricAuthError || (exports.BiometricAuthError = {}));
14
35
 
15
36
  const NativeBiometric = core.registerPlugin("NativeBiometric", {
16
37
  web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.NativeBiometricWeb()),
@@ -44,7 +65,9 @@ var capacitorApp = (function (exports, core) {
44
65
 
45
66
  exports.NativeBiometric = NativeBiometric;
46
67
 
68
+ Object.defineProperty(exports, '__esModule', { value: true });
69
+
47
70
  return exports;
48
71
 
49
- })({}, capacitorExports);
72
+ }({}, capacitorExports));
50
73
  //# sourceMappingURL=plugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BiometryType;\n(function (BiometryType) {\n BiometryType[BiometryType[\"NONE\"] = 0] = \"NONE\";\n BiometryType[BiometryType[\"TOUCH_ID\"] = 1] = \"TOUCH_ID\";\n BiometryType[BiometryType[\"FACE_ID\"] = 2] = \"FACE_ID\";\n BiometryType[BiometryType[\"FINGERPRINT\"] = 3] = \"FINGERPRINT\";\n BiometryType[BiometryType[\"FACE_AUTHENTICATION\"] = 4] = \"FACE_AUTHENTICATION\";\n BiometryType[BiometryType[\"IRIS_AUTHENTICATION\"] = 5] = \"IRIS_AUTHENTICATION\";\n BiometryType[BiometryType[\"MULTIPLE\"] = 6] = \"MULTIPLE\";\n})(BiometryType || (BiometryType = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst NativeBiometric = registerPlugin(\"NativeBiometric\", {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeBiometric };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeBiometricWeb extends WebPlugin {\n constructor() {\n super();\n }\n isAvailable() {\n throw new Error(\"Method not implemented.\");\n }\n verifyIdentity(_options) {\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","registerPlugin","WebPlugin"],"mappings":";;;AAAWA,kCAAa;IACxB,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AM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,iBAAiB,CAAC,QAAQ,EAAE;IAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BiometryType;\n(function (BiometryType) {\n // Android, iOS\n BiometryType[BiometryType[\"NONE\"] = 0] = \"NONE\";\n // iOS\n BiometryType[BiometryType[\"TOUCH_ID\"] = 1] = \"TOUCH_ID\";\n // iOS\n BiometryType[BiometryType[\"FACE_ID\"] = 2] = \"FACE_ID\";\n // Android\n BiometryType[BiometryType[\"FINGERPRINT\"] = 3] = \"FINGERPRINT\";\n // Android\n BiometryType[BiometryType[\"FACE_AUTHENTICATION\"] = 4] = \"FACE_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"IRIS_AUTHENTICATION\"] = 5] = \"IRIS_AUTHENTICATION\";\n // Android\n BiometryType[BiometryType[\"MULTIPLE\"] = 6] = \"MULTIPLE\";\n})(BiometryType || (BiometryType = {}));\n/**\n * Keep this in sync with BiometricAuthError in README.md\n * Update whenever `convertToPluginErrorCode` functions are modified\n */\nexport var BiometricAuthError;\n(function (BiometricAuthError) {\n BiometricAuthError[BiometricAuthError[\"UNKNOWN_ERROR\"] = 0] = \"UNKNOWN_ERROR\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_UNAVAILABLE\"] = 1] = \"BIOMETRICS_UNAVAILABLE\";\n BiometricAuthError[BiometricAuthError[\"USER_LOCKOUT\"] = 2] = \"USER_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"BIOMETRICS_NOT_ENROLLED\"] = 3] = \"BIOMETRICS_NOT_ENROLLED\";\n BiometricAuthError[BiometricAuthError[\"USER_TEMPORARY_LOCKOUT\"] = 4] = \"USER_TEMPORARY_LOCKOUT\";\n BiometricAuthError[BiometricAuthError[\"AUTHENTICATION_FAILED\"] = 10] = \"AUTHENTICATION_FAILED\";\n BiometricAuthError[BiometricAuthError[\"APP_CANCEL\"] = 11] = \"APP_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"INVALID_CONTEXT\"] = 12] = \"INVALID_CONTEXT\";\n BiometricAuthError[BiometricAuthError[\"NOT_INTERACTIVE\"] = 13] = \"NOT_INTERACTIVE\";\n BiometricAuthError[BiometricAuthError[\"PASSCODE_NOT_SET\"] = 14] = \"PASSCODE_NOT_SET\";\n BiometricAuthError[BiometricAuthError[\"SYSTEM_CANCEL\"] = 15] = \"SYSTEM_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_CANCEL\"] = 16] = \"USER_CANCEL\";\n BiometricAuthError[BiometricAuthError[\"USER_FALLBACK\"] = 17] = \"USER_FALLBACK\";\n})(BiometricAuthError || (BiometricAuthError = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst NativeBiometric = registerPlugin(\"NativeBiometric\", {\n web: () => import(\"./web\").then((m) => new m.NativeBiometricWeb()),\n});\nexport * from \"./definitions\";\nexport { NativeBiometric };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class NativeBiometricWeb extends WebPlugin {\n constructor() {\n super();\n }\n isAvailable() {\n throw new Error(\"Method not implemented.\");\n }\n verifyIdentity(_options) {\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","BiometricAuthError","registerPlugin","WebPlugin"],"mappings":";;;IACA,CAAC,UAAU,YAAY,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,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL,IAAI,iBAAiB,CAAC,QAAQ,EAAE;IAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL;;;;;;;;;;;;;;;;;"}
@@ -53,21 +53,8 @@ public class NativeBiometric: CAPPlugin {
53
53
  call.resolve(obj)
54
54
  return
55
55
  }
56
- var errorCode = 0
57
- switch authError.code {
58
- case LAError.biometryNotAvailable.rawValue:
59
- errorCode = 1
60
-
61
- case LAError.biometryLockout.rawValue:
62
- errorCode = 2 // "Authentication could not continue because the user has been locked out of biometric authentication, due to failing authentication too many times."
63
-
64
- case LAError.biometryNotEnrolled.rawValue:
65
- errorCode = 3// message = "Authentication could not start because the user has not enrolled in biometric authentication."
66
-
67
- default:
68
- errorCode = 0 // "Did not find error code on LAError object"
69
- }
70
- obj["errorCode"] = errorCode
56
+ var pluginErrorCode = convertToPluginErrorCode(authError.code)
57
+ obj["errorCode"] = pluginErrorCode
71
58
  call.resolve(obj)
72
59
  }
73
60
 
@@ -78,7 +65,14 @@ public class NativeBiometric: CAPPlugin {
78
65
  var canEvaluateError: NSError?
79
66
 
80
67
  let useFallback = call.getBool("useFallback", false)
81
- context.localizedFallbackTitle = useFallback ? nil : ""
68
+ context.localizedFallbackTitle = ""
69
+
70
+ if useFallback {
71
+ context.localizedFallbackTitle = nil
72
+ if let fallbackTitle = call.getString("fallbackTitle") {
73
+ context.localizedFallbackTitle = fallbackTitle
74
+ }
75
+ }
82
76
 
83
77
  let policy = useFallback ? LAPolicy.deviceOwnerAuthentication : LAPolicy.deviceOwnerAuthenticationWithBiometrics
84
78
 
@@ -91,52 +85,14 @@ public class NativeBiometric: CAPPlugin {
91
85
  if success {
92
86
  call.resolve()
93
87
  } else {
94
- var errorCode = "0"
95
- guard let error = evaluateError
96
- else {
88
+ guard let error = evaluateError else {
97
89
  call.reject("Biometrics Error", "0")
98
90
  return
99
91
  }
100
92
 
101
- switch error._code {
102
-
103
- case LAError.authenticationFailed.rawValue:
104
- errorCode = "10"
105
-
106
- case LAError.appCancel.rawValue:
107
- errorCode = "11"
108
-
109
- case LAError.invalidContext.rawValue:
110
- errorCode = "12"
111
-
112
- case LAError.notInteractive.rawValue:
113
- errorCode = "13"
114
-
115
- case LAError.passcodeNotSet.rawValue:
116
- errorCode = "14"
117
-
118
- case LAError.systemCancel.rawValue:
119
- errorCode = "15"
120
-
121
- case LAError.userCancel.rawValue:
122
- errorCode = "16"
123
-
124
- case LAError.userFallback.rawValue:
125
- errorCode = "17"
126
-
127
- case LAError.biometryNotAvailable.rawValue:
128
- errorCode = "1"
129
-
130
- case LAError.biometryLockout.rawValue:
131
- errorCode = "2" // "Authentication could not continue because the user has been locked out of biometric authentication, due to failing authentication too many times."
132
-
133
- case LAError.biometryNotEnrolled.rawValue:
134
- errorCode = "3" // message = "Authentication could not start because the user has not enrolled in biometric authentication."
135
-
136
- default:
137
- errorCode = "0" // Biometrics unavailable
138
- }
139
- call.reject(error.localizedDescription, errorCode, error )
93
+ var pluginErrorCode = self.convertToPluginErrorCode(error._code)
94
+ // use pluginErrorCode.description to convert Int to String
95
+ call.reject(error.localizedDescription, pluginErrorCode.description, error )
140
96
  }
141
97
 
142
98
  }
@@ -261,4 +217,50 @@ public class NativeBiometric: CAPPlugin {
261
217
  let status = SecItemDelete(query as CFDictionary)
262
218
  guard status == errSecSuccess || status == errSecItemNotFound else { throw KeychainError.unhandledError(status: status) }
263
219
  }
220
+
221
+ /**
222
+ * Convert Auth Error Codes to plugin expected Biometric Auth Errors (in README.md)
223
+ * This way both iOS and Android return the same error codes for the soame authentication failure reasons.
224
+ * !!IMPORTANT!!: Whenever this if modified, check if similar function in Android AuthActitivy.java needs to be modified as well.
225
+ * @see https://developer.apple.com/documentation/localauthentication/laerror/code
226
+ */
227
+ func convertToPluginErrorCode(_ errorCode: Int) -> Int {
228
+ switch errorCode {
229
+ case LAError.biometryNotAvailable.rawValue:
230
+ return 1
231
+
232
+ case LAError.biometryLockout.rawValue:
233
+ return 2
234
+
235
+ case LAError.biometryNotEnrolled.rawValue:
236
+ return 3
237
+
238
+ case LAError.authenticationFailed.rawValue:
239
+ return 10
240
+
241
+ case LAError.appCancel.rawValue:
242
+ return 11
243
+
244
+ case LAError.invalidContext.rawValue:
245
+ return 12
246
+
247
+ case LAError.notInteractive.rawValue:
248
+ return 13
249
+
250
+ case LAError.passcodeNotSet.rawValue:
251
+ return 14
252
+
253
+ case LAError.systemCancel.rawValue:
254
+ return 15
255
+
256
+ case LAError.userCancel.rawValue:
257
+ return 16
258
+
259
+ case LAError.userFallback.rawValue:
260
+ return 17
261
+
262
+ default:
263
+ return 0
264
+ }
265
+ }
264
266
  }
package/ios/Podfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PODS:
2
- - Capacitor (5.0.3):
2
+ - Capacitor (5.0.0):
3
3
  - CapacitorCordova
4
- - CapacitorCordova (5.0.3)
4
+ - CapacitorCordova (5.0.0)
5
5
 
6
6
  DEPENDENCIES:
7
7
  - "Capacitor (from `../node_modules/@capacitor/ios`)"
@@ -14,8 +14,8 @@ EXTERNAL SOURCES:
14
14
  :path: "../node_modules/@capacitor/ios"
15
15
 
16
16
  SPEC CHECKSUMS:
17
- Capacitor: 304a960e431f9e6f78556554ca71c41c1b2b9680
18
- CapacitorCordova: def732a63679698df6fb392bbe6d269a0b61e937
17
+ Capacitor: b332cb737d447561e854039fb72195206685dce2
18
+ CapacitorCordova: 4ea17670ee562680988a7ce9db68dee5160fe564
19
19
 
20
20
  PODFILE CHECKSUM: 1033dea949db4aa66cc0404a8baadac4a30dd025
21
21
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Capacitor",
3
- "version": "5.0.3",
3
+ "version": "5.0.0",
4
4
  "summary": "Capacitor for iOS",
5
5
  "social_media_url": "https://twitter.com/capacitorjs",
6
6
  "license": "MIT",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "source": {
15
15
  "git": "https://github.com/ionic-team/capacitor.git",
16
- "tag": "5.0.3"
16
+ "tag": "5.0.0"
17
17
  },
18
18
  "source_files": [
19
19
  "Capacitor/Capacitor/*.{swift,h,m}",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "CapacitorCordova",
3
3
  "module_name": "Cordova",
4
- "version": "5.0.3",
4
+ "version": "5.0.0",
5
5
  "summary": "Capacitor Cordova Compatibility Layer",
6
6
  "homepage": "https://capacitorjs.com",
7
7
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "source": {
12
12
  "git": "https://github.com/ionic-team/capacitor",
13
- "tag": "5.0.3"
13
+ "tag": "5.0.0"
14
14
  },
15
15
  "platforms": {
16
16
  "ios": "13.0"