diff --git a/.gitignore b/.gitignore index 70ccbf7..ad2a563 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ # node files -dist node_modules # iOS files diff --git a/android/build.gradle b/android/build.gradle index 1050eef..948a71a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -53,7 +53,7 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':capacitor-android') implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" - implementation 'com.veriff:veriff-library:4.11.0' + implementation 'com.veriff:veriff-library:4.13.0' testImplementation "junit:junit:$junitVersion" androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" diff --git a/dist/docs.json b/dist/docs.json new file mode 100644 index 0000000..78c13a0 --- /dev/null +++ b/dist/docs.json @@ -0,0 +1,31 @@ +{ + "api": { + "name": "VeriffPluginPlugin", + "slug": "veriffpluginplugin", + "docs": "", + "tags": [], + "methods": [ + { + "name": "start", + "signature": "(params: { sessionUrl: string; configuration: { themeColor: string; }; }) => Promise<{ message: string; status: string; }>", + "parameters": [ + { + "name": "params", + "docs": "", + "type": "{ sessionUrl: string; configuration: { themeColor: string; }; }" + } + ], + "returns": "Promise<{ message: string; status: string; }>", + "tags": [], + "docs": "", + "complexTypes": [], + "slug": "start" + } + ], + "properties": [] + }, + "interfaces": [], + "enums": [], + "typeAliases": [], + "pluginConfigs": [] +} \ No newline at end of file diff --git a/dist/esm/definitions.d.ts b/dist/esm/definitions.d.ts new file mode 100644 index 0000000..f5117f9 --- /dev/null +++ b/dist/esm/definitions.d.ts @@ -0,0 +1,11 @@ +export interface VeriffPluginPlugin { + start(params: { + sessionUrl: string; + configuration: { + themeColor: string; + }; + }): Promise<{ + message: string; + status: string; + }>; +} diff --git a/dist/esm/definitions.js b/dist/esm/definitions.js new file mode 100644 index 0000000..497acb5 --- /dev/null +++ b/dist/esm/definitions.js @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=definitions.js.map \ No newline at end of file diff --git a/dist/esm/definitions.js.map b/dist/esm/definitions.js.map new file mode 100644 index 0000000..9a0ab28 --- /dev/null +++ b/dist/esm/definitions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface VeriffPluginPlugin {\n start(params: {\n sessionUrl: string;\n configuration: { themeColor: string };\n }): Promise<{ message: string; status: string }>;\n}\n"]} \ No newline at end of file diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts new file mode 100644 index 0000000..4022037 --- /dev/null +++ b/dist/esm/index.d.ts @@ -0,0 +1,4 @@ +import type { VeriffPluginPlugin } from './definitions'; +declare const VeriffPlugin: VeriffPluginPlugin; +export * from './definitions'; +export { VeriffPlugin }; diff --git a/dist/esm/index.js b/dist/esm/index.js new file mode 100644 index 0000000..f4e2314 --- /dev/null +++ b/dist/esm/index.js @@ -0,0 +1,7 @@ +import { registerPlugin } from '@capacitor/core'; +const VeriffPlugin = registerPlugin('VeriffPlugin', { + web: () => import('./web').then(m => new m.VeriffPluginWeb()), +}); +export * from './definitions'; +export { VeriffPlugin }; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/esm/index.js.map b/dist/esm/index.js.map new file mode 100644 index 0000000..b710081 --- /dev/null +++ b/dist/esm/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,YAAY,GAAG,cAAc,CAAqB,cAAc,EAAE;IACtE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;CAC9D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { VeriffPluginPlugin } from './definitions';\n\nconst VeriffPlugin = registerPlugin('VeriffPlugin', {\n web: () => import('./web').then(m => new m.VeriffPluginWeb()),\n});\n\nexport * from './definitions';\nexport { VeriffPlugin };\n"]} \ No newline at end of file diff --git a/dist/esm/web.d.ts b/dist/esm/web.d.ts new file mode 100644 index 0000000..a496491 --- /dev/null +++ b/dist/esm/web.d.ts @@ -0,0 +1,13 @@ +import { WebPlugin } from '@capacitor/core'; +import type { VeriffPluginPlugin } from './definitions'; +export declare class VeriffPluginWeb extends WebPlugin implements VeriffPluginPlugin { + start(params: { + sessionUrl: string; + configuration: { + themeColor: string; + }; + }): Promise<{ + message: string; + status: string; + }>; +} diff --git a/dist/esm/web.js b/dist/esm/web.js new file mode 100644 index 0000000..b02e3f3 --- /dev/null +++ b/dist/esm/web.js @@ -0,0 +1,8 @@ +import { WebPlugin } from '@capacitor/core'; +export class VeriffPluginWeb extends WebPlugin { + start(params) { + console.log('Params: ', params); + throw new Error('Method not implemented.'); + } +} +//# sourceMappingURL=web.js.map \ No newline at end of file diff --git a/dist/esm/web.js.map b/dist/esm/web.js.map new file mode 100644 index 0000000..1e33e3f --- /dev/null +++ b/dist/esm/web.js.map @@ -0,0 +1 @@ +{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,KAAK,CAAC,MAGL;QACC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { VeriffPluginPlugin } from './definitions';\n\nexport class VeriffPluginWeb extends WebPlugin implements VeriffPluginPlugin {\n start(params: {\n sessionUrl: string;\n configuration: { themeColor: string };\n }): Promise<{ message: string; status: string }> {\n console.log('Params: ', params);\n throw new Error('Method not implemented.');\n }\n}\n"]} \ No newline at end of file diff --git a/dist/plugin.cjs.js b/dist/plugin.cjs.js new file mode 100644 index 0000000..3b1e643 --- /dev/null +++ b/dist/plugin.cjs.js @@ -0,0 +1,24 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var core = require('@capacitor/core'); + +const VeriffPlugin = core.registerPlugin('VeriffPlugin', { + web: () => Promise.resolve().then(function () { return web; }).then(m => new m.VeriffPluginWeb()), +}); + +class VeriffPluginWeb extends core.WebPlugin { + start(params) { + console.log('Params: ', params); + throw new Error('Method not implemented.'); + } +} + +var web = /*#__PURE__*/Object.freeze({ + __proto__: null, + VeriffPluginWeb: VeriffPluginWeb +}); + +exports.VeriffPlugin = VeriffPlugin; +//# sourceMappingURL=plugin.cjs.js.map diff --git a/dist/plugin.cjs.js.map b/dist/plugin.cjs.js.map new file mode 100644 index 0000000..2a0a47b --- /dev/null +++ b/dist/plugin.cjs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst VeriffPlugin = registerPlugin('VeriffPlugin', {\n web: () => import('./web').then(m => new m.VeriffPluginWeb()),\n});\nexport * from './definitions';\nexport { VeriffPlugin };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class VeriffPluginWeb extends WebPlugin {\n start(params) {\n console.log('Params: ', params);\n throw new Error('Method not implemented.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,eAAe,SAASC,cAAS,CAAC;AAC/C,IAAI,KAAK,CAAC,MAAM,EAAE;AAClB,QAAQ,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AACxC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL;;;;;;;;;"} \ No newline at end of file diff --git a/dist/plugin.js b/dist/plugin.js new file mode 100644 index 0000000..078eaf8 --- /dev/null +++ b/dist/plugin.js @@ -0,0 +1,27 @@ +var capacitorVeriffPlugin = (function (exports, core) { + 'use strict'; + + const VeriffPlugin = core.registerPlugin('VeriffPlugin', { + web: () => Promise.resolve().then(function () { return web; }).then(m => new m.VeriffPluginWeb()), + }); + + class VeriffPluginWeb extends core.WebPlugin { + start(params) { + console.log('Params: ', params); + throw new Error('Method not implemented.'); + } + } + + var web = /*#__PURE__*/Object.freeze({ + __proto__: null, + VeriffPluginWeb: VeriffPluginWeb + }); + + exports.VeriffPlugin = VeriffPlugin; + + Object.defineProperty(exports, '__esModule', { value: true }); + + return exports; + +})({}, capacitorExports); +//# sourceMappingURL=plugin.js.map diff --git a/dist/plugin.js.map b/dist/plugin.js.map new file mode 100644 index 0000000..ec95d63 --- /dev/null +++ b/dist/plugin.js.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst VeriffPlugin = registerPlugin('VeriffPlugin', {\n web: () => import('./web').then(m => new m.VeriffPluginWeb()),\n});\nexport * from './definitions';\nexport { VeriffPlugin };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class VeriffPluginWeb extends WebPlugin {\n start(params) {\n console.log('Params: ', params);\n throw new Error('Method not implemented.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,eAAe,SAASC,cAAS,CAAC;IAC/C,IAAI,KAAK,CAAC,MAAM,EAAE;IAClB,QAAQ,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACxC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index dd7be33..f2ffb29 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,18 @@ { "name": "capacitor-plugin-veriff", - "version": "0.0.1", + "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "capacitor-plugin-veriff", - "version": "0.0.1", + "version": "1.0.0", "license": "Apache-2.0", "devDependencies": { - "@capacitor/android": "^3.0.0", - "@capacitor/core": "^3.0.0", + "@capacitor/android": "^4.0.0", + "@capacitor/core": "^4.0.0", "@capacitor/docgen": "^0.0.18", - "@capacitor/ios": "^3.0.0", + "@capacitor/ios": "^4.0.0", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^1.0.1", "@ionic/swiftlint-config": "^1.1.2", @@ -25,7 +25,7 @@ "typescript": "~4.0.3" }, "peerDependencies": { - "@capacitor/core": "^3.0.0" + "@capacitor/core": "^4.0.0" } }, "node_modules/@babel/code-frame": { @@ -132,18 +132,18 @@ } }, "node_modules/@capacitor/android": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-3.7.0.tgz", - "integrity": "sha512-SF06sqvEKvRnev+T+k4jjfDIdsqcDiGnzGld7oTtJipiO16xVkKPG0kEbFZEWkrMvhqRn6jNyl+ZHn5/9JR7nA==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-4.7.3.tgz", + "integrity": "sha512-TmVg7vbAt6Iw0FWc51dLlW1gRMtSeIQ6qVLFJ1/sl2SYLXpgCHh8v/LfhqQ93NurgM+6SKFxOycGgg1FIBaLGw==", "dev": true, "peerDependencies": { - "@capacitor/core": "^3.7.0" + "@capacitor/core": "^4.7.0" } }, "node_modules/@capacitor/core": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.7.0.tgz", - "integrity": "sha512-Y6Wrt1Im246fIfAIAsOElqPkBgzV1w9jG/NnBtxCb5kJ6IGtszl9fOvJ3WdGAfh9UOnEBr4m3iaz2L7ZGkQzWg==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-4.7.3.tgz", + "integrity": "sha512-IDhJapHqfJNpSlq89M0quOZGb08uOUZhVhyRDdrGUrwa4ttFoWeX/Vi9F+b9bffsDRKkSLF0BhzA9TH7ko5c3A==", "dev": true, "dependencies": { "tslib": "^2.1.0" @@ -182,12 +182,12 @@ } }, "node_modules/@capacitor/ios": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.7.0.tgz", - "integrity": "sha512-4zqwRdxCdBFRqJf08+V8eyed69in4xLQh9fX6Me6g9Sl+uYhhmR1KSOLxtlgT2GJgBdszXx9xUk62SRjlQfEQA==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-4.7.3.tgz", + "integrity": "sha512-CXVvEzg9WWyhGdLSZsWfa69RyNlKH03g4OKpWh9OW0A7uL4aYA8Z7m4jE4mCu/2TTWDEgUPp0BrWEDPaj73eow==", "dev": true, "peerDependencies": { - "@capacitor/core": "^3.7.0" + "@capacitor/core": "^4.7.0" } }, "node_modules/@eslint/eslintrc": { @@ -3153,16 +3153,16 @@ } }, "@capacitor/android": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-3.7.0.tgz", - "integrity": "sha512-SF06sqvEKvRnev+T+k4jjfDIdsqcDiGnzGld7oTtJipiO16xVkKPG0kEbFZEWkrMvhqRn6jNyl+ZHn5/9JR7nA==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-4.7.3.tgz", + "integrity": "sha512-TmVg7vbAt6Iw0FWc51dLlW1gRMtSeIQ6qVLFJ1/sl2SYLXpgCHh8v/LfhqQ93NurgM+6SKFxOycGgg1FIBaLGw==", "dev": true, "requires": {} }, "@capacitor/core": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.7.0.tgz", - "integrity": "sha512-Y6Wrt1Im246fIfAIAsOElqPkBgzV1w9jG/NnBtxCb5kJ6IGtszl9fOvJ3WdGAfh9UOnEBr4m3iaz2L7ZGkQzWg==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-4.7.3.tgz", + "integrity": "sha512-IDhJapHqfJNpSlq89M0quOZGb08uOUZhVhyRDdrGUrwa4ttFoWeX/Vi9F+b9bffsDRKkSLF0BhzA9TH7ko5c3A==", "dev": true, "requires": { "tslib": "^2.1.0" @@ -3190,9 +3190,9 @@ } }, "@capacitor/ios": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.7.0.tgz", - "integrity": "sha512-4zqwRdxCdBFRqJf08+V8eyed69in4xLQh9fX6Me6g9Sl+uYhhmR1KSOLxtlgT2GJgBdszXx9xUk62SRjlQfEQA==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-4.7.3.tgz", + "integrity": "sha512-CXVvEzg9WWyhGdLSZsWfa69RyNlKH03g4OKpWh9OW0A7uL4aYA8Z7m4jE4mCu/2TTWDEgUPp0BrWEDPaj73eow==", "dev": true, "requires": {} }, diff --git a/package.json b/package.json index 457898a..247fb12 100644 --- a/package.json +++ b/package.json @@ -44,10 +44,10 @@ "prepublishOnly": "npm run build" }, "devDependencies": { - "@capacitor/android": "^3.0.0", - "@capacitor/core": "^3.0.0", + "@capacitor/android": "^4.0.0", + "@capacitor/core": "^4.0.0", "@capacitor/docgen": "^0.0.18", - "@capacitor/ios": "^3.0.0", + "@capacitor/ios": "^4.0.0", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^1.0.1", "@ionic/swiftlint-config": "^1.1.2", @@ -60,7 +60,7 @@ "typescript": "~4.0.3" }, "peerDependencies": { - "@capacitor/core": "^3.0.0" + "@capacitor/core": "^4.0.0" }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config",