Skip to content

Commit

Permalink
debug: upload dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Ramo committed Feb 9, 2023
1 parent 155a214 commit 0550bc5
Show file tree
Hide file tree
Showing 10 changed files with 113 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/.idea/
dist/

android/.idea/*
ios/Plugin.xcworkspace/xcuserdata
Expand Down
56 changes: 56 additions & 0 deletions dist/esm/definitions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
export declare enum BiometryType {
NONE = 0,
TOUCH_ID = 1,
FACE_ID = 2,
FINGERPRINT = 3,
FACE_AUTHENTICATION = 4,
IRIS_AUTHENTICATION = 5,
MULTIPLE = 6
}
export interface Credentials {
username: string;
password: string;
}
export interface IsAvailableOptions {
/**
* Specifies if should fallback to passcode authentication if biometric authentication is not available.
*/
useFallback: boolean;
}
export interface AvailableResult {
isAvailable: boolean;
biometryType: BiometryType;
errorCode?: number;
}
export interface BiometricOptions {
reason?: string;
title?: string;
subtitle?: string;
description?: string;
negativeButtonText?: string;
useFallback?: boolean;
/**
* Only for Android.
* Set a maximum number of attempts for biometric authentication. The maximum allowed by android is 5.
* @default 1
*/
maxAttempts?: number;
}
export interface GetCredentialOptions {
server: string;
}
export interface SetCredentialOptions {
username: string;
password: string;
server: string;
}
export interface DeleteCredentialOptions {
server: string;
}
export interface NativeBiometricPlugin {
isAvailable(options?: IsAvailableOptions): Promise<AvailableResult>;
verifyIdentity(options?: BiometricOptions): Promise<any>;
getCredentials(options: GetCredentialOptions): Promise<Credentials>;
setCredentials(options: SetCredentialOptions): Promise<any>;
deleteCredentials(options: DeleteCredentialOptions): Promise<any>;
}
11 changes: 11 additions & 0 deletions dist/esm/definitions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/esm/definitions.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/esm/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import type { NativeBiometricPlugin } from './definitions';
declare const NativeBiometric: NativeBiometricPlugin;
export * from './definitions';
export { NativeBiometric };
7 changes: 7 additions & 0 deletions dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/esm/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions dist/esm/web.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { WebPlugin } from "@capacitor/core";
import { NativeBiometricPlugin, AvailableResult, BiometricOptions, GetCredentialOptions, SetCredentialOptions, DeleteCredentialOptions, Credentials } from "./definitions";
export declare class NativeBiometricWeb extends WebPlugin implements NativeBiometricPlugin {
constructor();
isAvailable(): Promise<AvailableResult>;
verifyIdentity(_options?: BiometricOptions): Promise<any>;
getCredentials(_options: GetCredentialOptions): Promise<Credentials>;
setCredentials(_options: SetCredentialOptions): Promise<any>;
deleteCredentials(_options: DeleteCredentialOptions): Promise<any>;
}
22 changes: 22 additions & 0 deletions dist/esm/web.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/esm/web.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0550bc5

Please sign in to comment.