@capgo/capacitor-native-biometric 6.0.4 → 7.1.2

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/CapgoCapacitorNativeBiometric.podspec +1 -1
  2. package/README.md +30 -35
  3. package/android/build.gradle +7 -7
  4. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  5. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  6. package/android/gradlew +13 -9
  7. package/android/gradlew.bat +12 -10
  8. package/android/src/main/java/ee/forgr/biometric/AuthActivity.java +49 -15
  9. package/android/src/main/java/ee/forgr/biometric/NativeBiometric.java +56 -53
  10. package/dist/docs.json +57 -43
  11. package/dist/esm/definitions.d.ts +7 -0
  12. package/dist/esm/definitions.js.map +1 -1
  13. package/dist/esm/web.js +4 -0
  14. package/dist/esm/web.js.map +1 -1
  15. package/dist/plugin.cjs.js +4 -0
  16. package/dist/plugin.cjs.js.map +1 -1
  17. package/dist/plugin.js +4 -0
  18. package/dist/plugin.js.map +1 -1
  19. package/ios/Plugin/Plugin.swift +10 -2
  20. package/ios/Plugin.xcodeproj/project.pbxproj +4 -12
  21. package/ios/Podfile +1 -1
  22. package/package.json +49 -42
  23. package/ios/Plugin/Plugin.h +0 -10
  24. package/ios/Plugin/Plugin.m +0 -12
  25. package/ios/Podfile.lock +0 -22
  26. package/ios/Pods/Local Podspecs/Capacitor.podspec.json +0 -31
  27. package/ios/Pods/Local Podspecs/CapacitorCordova.podspec.json +0 -29
  28. package/ios/Pods/Manifest.lock +0 -22
  29. package/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -1610
  30. package/ios/Pods/Target Support Files/Capacitor/Capacitor-Info.plist +0 -26
  31. package/ios/Pods/Target Support Files/Capacitor/Capacitor-dummy.m +0 -5
  32. package/ios/Pods/Target Support Files/Capacitor/Capacitor-prefix.pch +0 -12
  33. package/ios/Pods/Target Support Files/Capacitor/Capacitor-umbrella.h +0 -23
  34. package/ios/Pods/Target Support Files/Capacitor/Capacitor.debug.xcconfig +0 -16
  35. package/ios/Pods/Target Support Files/Capacitor/Capacitor.modulemap +0 -8
  36. package/ios/Pods/Target Support Files/Capacitor/Capacitor.release.xcconfig +0 -16
  37. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-Info.plist +0 -26
  38. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-dummy.m +0 -5
  39. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-prefix.pch +0 -12
  40. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-umbrella.h +0 -32
  41. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.debug.xcconfig +0 -13
  42. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.modulemap +0 -6
  43. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.release.xcconfig +0 -13
  44. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-Info.plist +0 -26
  45. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.markdown +0 -53
  46. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.plist +0 -91
  47. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-dummy.m +0 -5
  48. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-umbrella.h +0 -16
  49. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig +0 -14
  50. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.modulemap +0 -6
  51. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig +0 -14
  52. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-Info.plist +0 -26
  53. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.markdown +0 -53
  54. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.plist +0 -91
  55. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-dummy.m +0 -5
  56. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh +0 -188
  57. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-umbrella.h +0 -16
  58. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig +0 -15
  59. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.modulemap +0 -6
  60. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig +0 -15
package/dist/docs.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "methods": [
8
8
  {
9
9
  "name": "isAvailable",
10
- "signature": "(options?: IsAvailableOptions | undefined) => any",
10
+ "signature": "(options?: IsAvailableOptions | undefined) => Promise<AvailableResult>",
11
11
  "parameters": [
12
12
  {
13
13
  "name": "options",
@@ -15,7 +15,7 @@
15
15
  "type": "IsAvailableOptions | undefined"
16
16
  }
17
17
  ],
18
- "returns": "any",
18
+ "returns": "Promise<AvailableResult>",
19
19
  "tags": [
20
20
  {
21
21
  "name": "param",
@@ -35,14 +35,14 @@
35
35
  ],
36
36
  "docs": "Checks if biometric authentication hardware is available.",
37
37
  "complexTypes": [
38
- "IsAvailableOptions",
39
- "AvailableResult"
38
+ "AvailableResult",
39
+ "IsAvailableOptions"
40
40
  ],
41
41
  "slug": "isavailable"
42
42
  },
43
43
  {
44
44
  "name": "verifyIdentity",
45
- "signature": "(options?: BiometricOptions | undefined) => any",
45
+ "signature": "(options?: BiometricOptions | undefined) => Promise<void>",
46
46
  "parameters": [
47
47
  {
48
48
  "name": "options",
@@ -50,7 +50,7 @@
50
50
  "type": "BiometricOptions | undefined"
51
51
  }
52
52
  ],
53
- "returns": "any",
53
+ "returns": "Promise<void>",
54
54
  "tags": [
55
55
  {
56
56
  "name": "param",
@@ -76,7 +76,7 @@
76
76
  },
77
77
  {
78
78
  "name": "getCredentials",
79
- "signature": "(options: GetCredentialOptions) => any",
79
+ "signature": "(options: GetCredentialOptions) => Promise<Credentials>",
80
80
  "parameters": [
81
81
  {
82
82
  "name": "options",
@@ -84,7 +84,7 @@
84
84
  "type": "GetCredentialOptions"
85
85
  }
86
86
  ],
87
- "returns": "any",
87
+ "returns": "Promise<Credentials>",
88
88
  "tags": [
89
89
  {
90
90
  "name": "param",
@@ -104,14 +104,14 @@
104
104
  ],
105
105
  "docs": "Gets the stored credentials for a given server.",
106
106
  "complexTypes": [
107
- "GetCredentialOptions",
108
- "Credentials"
107
+ "Credentials",
108
+ "GetCredentialOptions"
109
109
  ],
110
110
  "slug": "getcredentials"
111
111
  },
112
112
  {
113
113
  "name": "setCredentials",
114
- "signature": "(options: SetCredentialOptions) => any",
114
+ "signature": "(options: SetCredentialOptions) => Promise<void>",
115
115
  "parameters": [
116
116
  {
117
117
  "name": "options",
@@ -119,7 +119,7 @@
119
119
  "type": "SetCredentialOptions"
120
120
  }
121
121
  ],
122
- "returns": "any",
122
+ "returns": "Promise<void>",
123
123
  "tags": [
124
124
  {
125
125
  "name": "param",
@@ -145,7 +145,7 @@
145
145
  },
146
146
  {
147
147
  "name": "deleteCredentials",
148
- "signature": "(options: DeleteCredentialOptions) => any",
148
+ "signature": "(options: DeleteCredentialOptions) => Promise<void>",
149
149
  "parameters": [
150
150
  {
151
151
  "name": "options",
@@ -153,7 +153,7 @@
153
153
  "type": "DeleteCredentialOptions"
154
154
  }
155
155
  ],
156
- "returns": "any",
156
+ "returns": "Promise<void>",
157
157
  "tags": [
158
158
  {
159
159
  "name": "param",
@@ -181,22 +181,6 @@
181
181
  "properties": []
182
182
  },
183
183
  "interfaces": [
184
- {
185
- "name": "IsAvailableOptions",
186
- "slug": "isavailableoptions",
187
- "docs": "",
188
- "tags": [],
189
- "methods": [],
190
- "properties": [
191
- {
192
- "name": "useFallback",
193
- "tags": [],
194
- "docs": "Specifies if should fallback to passcode authentication if biometric authentication is not available.",
195
- "complexTypes": [],
196
- "type": "boolean"
197
- }
198
- ]
199
- },
200
184
  {
201
185
  "name": "AvailableResult",
202
186
  "slug": "availableresult",
@@ -229,6 +213,22 @@
229
213
  }
230
214
  ]
231
215
  },
216
+ {
217
+ "name": "IsAvailableOptions",
218
+ "slug": "isavailableoptions",
219
+ "docs": "",
220
+ "tags": [],
221
+ "methods": [],
222
+ "properties": [
223
+ {
224
+ "name": "useFallback",
225
+ "tags": [],
226
+ "docs": "Specifies if should fallback to passcode authentication if biometric authentication is not available.",
227
+ "complexTypes": [],
228
+ "type": "boolean"
229
+ }
230
+ ]
231
+ },
232
232
  {
233
233
  "name": "BiometricOptions",
234
234
  "slug": "biometricoptions",
@@ -296,18 +296,39 @@
296
296
  "docs": "Only for Android.\nSet a maximum number of attempts for biometric authentication. The maximum allowed by android is 5.",
297
297
  "complexTypes": [],
298
298
  "type": "number | undefined"
299
+ },
300
+ {
301
+ "name": "allowedBiometryTypes",
302
+ "tags": [
303
+ {
304
+ "text": "[BiometryType.FINGERPRINT, BiometryType.FACE_AUTHENTICATION]",
305
+ "name": "example"
306
+ }
307
+ ],
308
+ "docs": "Only for Android.\nSpecify which biometry types are allowed for authentication.\nIf not specified, all available types will be allowed.",
309
+ "complexTypes": [
310
+ "BiometryType"
311
+ ],
312
+ "type": "BiometryType[] | undefined"
299
313
  }
300
314
  ]
301
315
  },
302
316
  {
303
- "name": "GetCredentialOptions",
304
- "slug": "getcredentialoptions",
317
+ "name": "Credentials",
318
+ "slug": "credentials",
305
319
  "docs": "",
306
320
  "tags": [],
307
321
  "methods": [],
308
322
  "properties": [
309
323
  {
310
- "name": "server",
324
+ "name": "username",
325
+ "tags": [],
326
+ "docs": "",
327
+ "complexTypes": [],
328
+ "type": "string"
329
+ },
330
+ {
331
+ "name": "password",
311
332
  "tags": [],
312
333
  "docs": "",
313
334
  "complexTypes": [],
@@ -316,21 +337,14 @@
316
337
  ]
317
338
  },
318
339
  {
319
- "name": "Credentials",
320
- "slug": "credentials",
340
+ "name": "GetCredentialOptions",
341
+ "slug": "getcredentialoptions",
321
342
  "docs": "",
322
343
  "tags": [],
323
344
  "methods": [],
324
345
  "properties": [
325
346
  {
326
- "name": "username",
327
- "tags": [],
328
- "docs": "",
329
- "complexTypes": [],
330
- "type": "string"
331
- },
332
- {
333
- "name": "password",
347
+ "name": "server",
334
348
  "tags": [],
335
349
  "docs": "",
336
350
  "complexTypes": [],
@@ -44,6 +44,13 @@ export interface BiometricOptions {
44
44
  * @default 1
45
45
  */
46
46
  maxAttempts?: number;
47
+ /**
48
+ * Only for Android.
49
+ * Specify which biometry types are allowed for authentication.
50
+ * If not specified, all available types will be allowed.
51
+ * @example [BiometryType.FINGERPRINT, BiometryType.FACE_AUTHENTICATION]
52
+ */
53
+ allowedBiometryTypes?: BiometryType[];
47
54
  }
48
55
  export interface GetCredentialOptions {
49
56
  server: string;
@@ -1 +1 @@
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
+ {"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;AAiED;;;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 * Only for Android.\n * Specify which biometry types are allowed for authentication.\n * If not specified, all available types will be allowed.\n * @example [BiometryType.FINGERPRINT, BiometryType.FACE_AUTHENTICATION]\n */\n allowedBiometryTypes?: BiometryType[];\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"]}
package/dist/esm/web.js CHANGED
@@ -7,15 +7,19 @@ export class NativeBiometricWeb extends WebPlugin {
7
7
  throw new Error("Method not implemented.");
8
8
  }
9
9
  verifyIdentity(_options) {
10
+ console.log("verifyIdentity", _options);
10
11
  throw new Error("Method not implemented.");
11
12
  }
12
13
  getCredentials(_options) {
14
+ console.log("getCredentials", _options);
13
15
  throw new Error("Method not implemented.");
14
16
  }
15
17
  setCredentials(_options) {
18
+ console.log("setCredentials", _options);
16
19
  throw new Error("Method not implemented.");
17
20
  }
18
21
  deleteCredentials(_options) {
22
+ console.log("deleteCredentials", _options);
19
23
  throw new Error("Method not implemented.");
20
24
  }
21
25
  }
@@ -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","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
+ {"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,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,cAAc,CAAC,QAA8B;QAC3C,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,cAAc,CAAC,QAA8B;QAC3C,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,iBAAiB,CAAC,QAAiC;QACjD,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC;QAC3C,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 console.log(\"verifyIdentity\", _options);\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options: GetCredentialOptions): Promise<Credentials> {\n console.log(\"getCredentials\", _options);\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options: SetCredentialOptions): Promise<void> {\n console.log(\"setCredentials\", _options);\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options: DeleteCredentialOptions): Promise<void> {\n console.log(\"deleteCredentials\", _options);\n throw new Error(\"Method not implemented.\");\n }\n}\n"]}
@@ -52,15 +52,19 @@ class NativeBiometricWeb extends core.WebPlugin {
52
52
  throw new Error("Method not implemented.");
53
53
  }
54
54
  verifyIdentity(_options) {
55
+ console.log("verifyIdentity", _options);
55
56
  throw new Error("Method not implemented.");
56
57
  }
57
58
  getCredentials(_options) {
59
+ console.log("getCredentials", _options);
58
60
  throw new Error("Method not implemented.");
59
61
  }
60
62
  setCredentials(_options) {
63
+ console.log("setCredentials", _options);
61
64
  throw new Error("Method not implemented.");
62
65
  }
63
66
  deleteCredentials(_options) {
67
+ console.log("deleteCredentials", _options);
64
68
  throw new Error("Method not implemented.");
65
69
  }
66
70
  }
@@ -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 // 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":";;;;AAAWA,8BAAa;AACxB,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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C,aAAa,CAAC,GAAG,EAAE,CAAC,GAAG,aAAa,CAAC;AAC/E,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,GAAG,eAAe,CAAC;AACnF,CAAC,EAAEA,0BAAkB,KAAKA,0BAAkB,GAAG,EAAE,CAAC,CAAC;;ACnC9C,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 console.log(\"verifyIdentity\", _options);\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n console.log(\"getCredentials\", _options);\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n console.log(\"setCredentials\", _options);\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n console.log(\"deleteCredentials\", _options);\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","BiometricAuthError","registerPlugin","WebPlugin"],"mappings":";;;;AAAWA;AACX,CAAC,UAAU,YAAY,EAAE;AACzB;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;AACnD;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU;AAC3D;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS;AACzD;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa;AACjE;AACA,IAAI,YAAY,CAAC,YAAY,CAAC,qBAA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;AAClD,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD;AACA;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -51,15 +51,19 @@ var capacitorCapacitorBiometric = (function (exports, core) {
51
51
  throw new Error("Method not implemented.");
52
52
  }
53
53
  verifyIdentity(_options) {
54
+ console.log("verifyIdentity", _options);
54
55
  throw new Error("Method not implemented.");
55
56
  }
56
57
  getCredentials(_options) {
58
+ console.log("getCredentials", _options);
57
59
  throw new Error("Method not implemented.");
58
60
  }
59
61
  setCredentials(_options) {
62
+ console.log("setCredentials", _options);
60
63
  throw new Error("Method not implemented.");
61
64
  }
62
65
  deleteCredentials(_options) {
66
+ console.log("deleteCredentials", _options);
63
67
  throw new Error("Method not implemented.");
64
68
  }
65
69
  }
@@ -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 // 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":";;;AAAWA,kCAAa;IACxB,CAAC,UAAU,YAAY,EAAE;IACzB;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;IACpD;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;IAC5D;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC;IAC1D;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa,CAAC;IAClE;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB,CAAC;IAClF;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB,CAAC;IAClF;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;IAC5D,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC,CAAC;IACxC;IACA;IACA;IACA;AACWC,wCAAmB;IAC9B,CAAC,UAAU,kBAAkB,EAAE;IAC/B,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;IAClF,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,GAAG,wBAAwB,CAAC;IACpG,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,c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BAAkB,SAASC,cAAS,CAAC;IAClD,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE,CAAC;IAChB,KAAK;IACL,IAAI,WAAW,GAAG;IAClB,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,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;;;;;;;;;;;;;;;"}
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 console.log(\"verifyIdentity\", _options);\n throw new Error(\"Method not implemented.\");\n }\n getCredentials(_options) {\n console.log(\"getCredentials\", _options);\n throw new Error(\"Method not implemented.\");\n }\n setCredentials(_options) {\n console.log(\"setCredentials\", _options);\n throw new Error(\"Method not implemented.\");\n }\n deleteCredentials(_options) {\n console.log(\"deleteCredentials\", _options);\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BiometryType","BiometricAuthError","registerPlugin","WebPlugin"],"mappings":";;;AAAWA;IACX,CAAC,UAAU,YAAY,EAAE;IACzB;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;IACnD;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU;IAC3D;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS;IACzD;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa;IACjE;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB;IACjF;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB;IACjF;IACA,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU;IAC3D,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC;IACvC;IACA;IACA;IACA;AACWC;IACX,CAAC,UAAU,kBAAkB,EAAE;IAC/B,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,eAAe,CAAC,GAAG,CAAC,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CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACtE,CAAC;;ICFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;IAClD,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE;IACf;IACA,IAAI,WAAW,GAAG;IAClB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IAC/C,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IAC/C,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IAC/C,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA,IAAI,iBAAiB,CAAC,QAAQ,EAAE;IAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAClD,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA;;;;;;;;;;;;;;;"}
@@ -8,8 +8,16 @@ import LocalAuthentication
8
8
  */
9
9
 
10
10
  @objc(NativeBiometric)
11
- public class NativeBiometric: CAPPlugin {
12
-
11
+ public class NativeBiometric: CAPPlugin, CAPBridgedPlugin {
12
+ public let identifier = "NativeBiometric"
13
+ public let jsName = "NativeBiometric"
14
+ public let pluginMethods: [CAPPluginMethod] = [
15
+ CAPPluginMethod(name: "isAvailable", returnType: CAPPluginReturnPromise),
16
+ CAPPluginMethod(name: "verifyIdentity", returnType: CAPPluginReturnPromise),
17
+ CAPPluginMethod(name: "getCredentials", returnType: CAPPluginReturnPromise),
18
+ CAPPluginMethod(name: "setCredentials", returnType: CAPPluginReturnPromise),
19
+ CAPPluginMethod(name: "deleteCredentials", returnType: CAPPluginReturnPromise)
20
+ ]
13
21
  struct Credentials {
14
22
  var username: String
15
23
  var password: String
@@ -11,9 +11,7 @@
11
11
  20C0B05DCFC8E3958A738AF2 /* Pods_PluginTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F6753A823D3815DB436415E3 /* Pods_PluginTests.framework */; };
12
12
  50ADFF92201F53D600D50D53 /* Plugin.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFF88201F53D600D50D53 /* Plugin.framework */; };
13
13
  50ADFF97201F53D600D50D53 /* PluginTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFF96201F53D600D50D53 /* PluginTests.swift */; };
14
- 50ADFF99201F53D600D50D53 /* Plugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 50ADFF8B201F53D600D50D53 /* Plugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
15
14
  50ADFFA42020D75100D50D53 /* Capacitor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFFA52020D75100D50D53 /* Capacitor.framework */; };
16
- 50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFFA72020EE4F00D50D53 /* Plugin.m */; };
17
15
  50E1A94820377CB70090CE1A /* Plugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50E1A94720377CB70090CE1A /* Plugin.swift */; };
18
16
  /* End PBXBuildFile section */
19
17
 
@@ -30,13 +28,11 @@
30
28
  /* Begin PBXFileReference section */
31
29
  3B2A61DA5A1F2DD4F959604D /* Pods_Plugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Plugin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
32
30
  50ADFF88201F53D600D50D53 /* Plugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Plugin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
33
- 50ADFF8B201F53D600D50D53 /* Plugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Plugin.h; sourceTree = "<group>"; };
34
31
  50ADFF8C201F53D600D50D53 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
35
32
  50ADFF91201F53D600D50D53 /* PluginTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PluginTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
36
33
  50ADFF96201F53D600D50D53 /* PluginTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PluginTests.swift; sourceTree = "<group>"; };
37
34
  50ADFF98201F53D600D50D53 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
38
35
  50ADFFA52020D75100D50D53 /* Capacitor.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Capacitor.framework; sourceTree = BUILT_PRODUCTS_DIR; };
39
- 50ADFFA72020EE4F00D50D53 /* Plugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Plugin.m; sourceTree = "<group>"; };
40
36
  50E1A94720377CB70090CE1A /* Plugin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Plugin.swift; sourceTree = "<group>"; };
41
37
  5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig"; sourceTree = "<group>"; };
42
38
  91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.release.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig"; sourceTree = "<group>"; };
@@ -91,8 +87,6 @@
91
87
  isa = PBXGroup;
92
88
  children = (
93
89
  50E1A94720377CB70090CE1A /* Plugin.swift */,
94
- 50ADFF8B201F53D600D50D53 /* Plugin.h */,
95
- 50ADFFA72020EE4F00D50D53 /* Plugin.m */,
96
90
  50ADFF8C201F53D600D50D53 /* Info.plist */,
97
91
  );
98
92
  path = Plugin;
@@ -135,7 +129,6 @@
135
129
  isa = PBXHeadersBuildPhase;
136
130
  buildActionMask = 2147483647;
137
131
  files = (
138
- 50ADFF99201F53D600D50D53 /* Plugin.h in Headers */,
139
132
  );
140
133
  runOnlyForDeploymentPostprocessing = 0;
141
134
  };
@@ -303,7 +296,6 @@
303
296
  buildActionMask = 2147483647;
304
297
  files = (
305
298
  50E1A94820377CB70090CE1A /* Plugin.swift in Sources */,
306
- 50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */,
307
299
  );
308
300
  runOnlyForDeploymentPostprocessing = 0;
309
301
  };
@@ -375,7 +367,7 @@
375
367
  GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
376
368
  GCC_WARN_UNUSED_FUNCTION = YES;
377
369
  GCC_WARN_UNUSED_VARIABLE = YES;
378
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
370
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0;
379
371
  MTL_ENABLE_DEBUG_INFO = YES;
380
372
  ONLY_ACTIVE_ARCH = YES;
381
373
  SDKROOT = iphoneos;
@@ -429,7 +421,7 @@
429
421
  GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
430
422
  GCC_WARN_UNUSED_FUNCTION = YES;
431
423
  GCC_WARN_UNUSED_VARIABLE = YES;
432
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
424
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0;
433
425
  MTL_ENABLE_DEBUG_INFO = NO;
434
426
  SDKROOT = iphoneos;
435
427
  SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -452,7 +444,7 @@
452
444
  DYLIB_INSTALL_NAME_BASE = "@rpath";
453
445
  INFOPLIST_FILE = Plugin/Info.plist;
454
446
  INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
455
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
447
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0;
456
448
  LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)";
457
449
  ONLY_ACTIVE_ARCH = YES;
458
450
  PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
@@ -477,7 +469,7 @@
477
469
  DYLIB_INSTALL_NAME_BASE = "@rpath";
478
470
  INFOPLIST_FILE = Plugin/Info.plist;
479
471
  INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
480
- IPHONEOS_DEPLOYMENT_TARGET = 13.0;
472
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0;
481
473
  LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
482
474
  ONLY_ACTIVE_ARCH = NO;
483
475
  PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
package/ios/Podfile CHANGED
@@ -1,4 +1,4 @@
1
- platform :ios, '13.0'
1
+ platform :ios, '14.0'
2
2
 
3
3
  def capacitor_pods
4
4
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
package/package.json CHANGED
@@ -1,12 +1,35 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-native-biometric",
3
- "version": "6.0.4",
3
+ "version": "7.1.2",
4
4
  "description": "This plugin gives access to the native biometric apis for android and iOS",
5
5
  "main": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",
7
+ "author": "Martin Donadieu <martin@capgo.app>",
8
+ "license": "MIT",
9
+ "files": [
10
+ "dist/",
11
+ "ios/",
12
+ "android/",
13
+ "CapgoCapacitorNativeBiometric.podspec"
14
+ ],
15
+ "keywords": [
16
+ "capacitor",
17
+ "plugin",
18
+ "native",
19
+ "biometric",
20
+ "touchID",
21
+ "faceID"
22
+ ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/Cap-go/capacitor-native-biometric"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/Cap-go/capacitor-native-biometric/issues"
29
+ },
7
30
  "scripts": {
8
31
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
9
- "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
32
+ "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -sdk iphoneos -scheme Plugin && cd ..",
10
33
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
11
34
  "verify:web": "npm run build",
12
35
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
@@ -14,47 +37,40 @@
14
37
  "eslint": "eslint .",
15
38
  "prettier": "prettier --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"",
16
39
  "swiftlint": "node-swiftlint",
40
+ "docgen": "docgen --api NativeBiometricPlugin --output-readme README.md --output-json dist/docs.json",
17
41
  "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
18
42
  "clean": "rimraf ./dist",
19
43
  "watch": "tsc --watch",
20
- "docgen": "docgen --api NativeBiometricPlugin --output-readme README.md --output-json dist/docs.json",
21
44
  "prepublishOnly": "npm run build"
22
45
  },
23
- "author": "Martin Donadieu",
24
- "license": "MIT",
25
46
  "devDependencies": {
26
- "@capacitor/android": "^6.0.0",
27
- "@capacitor/core": "^6.0.0",
28
- "@capacitor/docgen": "^0.2.2",
29
- "@capacitor/ios": "^6.0.0",
30
- "@ionic/eslint-config": "^0.3.0",
47
+ "@capacitor/android": "^7.0.0",
48
+ "@capacitor/cli": "^7.0.0",
49
+ "@capacitor/core": "^7.0.0",
50
+ "@capacitor/docgen": "^0.3.0",
51
+ "@capacitor/ios": "^7.0.0",
52
+ "@ionic/eslint-config": "^0.4.0",
31
53
  "@ionic/prettier-config": "^4.0.0",
32
- "@ionic/swiftlint-config": "^1.1.2",
33
- "eslint": "^9.1.1",
34
- "prettier": "~3.2.5",
35
- "prettier-plugin-java": "~2.6.0",
36
- "rimraf": "^5.0.5",
37
- "rollup": "^4.17.1",
38
- "swiftlint": "^1.0.2",
39
- "typescript": "~5.4.5"
54
+ "@ionic/swiftlint-config": "^2.0.0",
55
+ "@types/node": "^22.13.1",
56
+ "eslint": "^8.57.0",
57
+ "eslint-plugin-import": "^2.31.0",
58
+ "husky": "^9.1.7",
59
+ "prettier": "^3.4.2",
60
+ "prettier-plugin-java": "^2.6.7",
61
+ "rimraf": "^6.0.1",
62
+ "rollup": "^4.34.6",
63
+ "swiftlint": "^2.0.0",
64
+ "typescript": "^5.7.3"
40
65
  },
41
66
  "peerDependencies": {
42
- "@capacitor/core": "^6.0.0"
67
+ "@capacitor/core": ">=7.0.0"
43
68
  },
44
- "files": [
45
- "dist/",
46
- "ios/",
47
- "android/",
48
- "CapgoCapacitorNativeBiometric.podspec"
49
- ],
50
- "keywords": [
51
- "capacitor",
52
- "plugin",
53
- "native",
54
- "biometric",
55
- "touchID",
56
- "faceID"
57
- ],
69
+ "eslintConfig": {
70
+ "extends": "@ionic/eslint-config/recommended"
71
+ },
72
+ "prettier": "@ionic/prettier-config",
73
+ "swiftlint": "@ionic/swiftlint-config",
58
74
  "capacitor": {
59
75
  "ios": {
60
76
  "src": "ios"
@@ -62,14 +78,5 @@
62
78
  "android": {
63
79
  "src": "android"
64
80
  }
65
- },
66
- "prettier": "@ionic/prettier-config",
67
- "swiftlint": "@ionic/swiftlint-config",
68
- "repository": {
69
- "type": "git",
70
- "url": "https://github.com/Cap-go/capacitor-native-biometric"
71
- },
72
- "bugs": {
73
- "url": "https://github.com/Cap-go/capacitor-native-biometric/issues"
74
81
  }
75
82
  }