From bb1164f4fc79dcdfc4e84e545c7696f080506671 Mon Sep 17 00:00:00 2001 From: MaximBelov Date: Tue, 11 Jul 2023 20:24:24 +0300 Subject: [PATCH] refactor(anyline): support anyline 43.0.0 (#4518) --- .../plugins/anyline/index.ts | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/@awesome-cordova-plugins/plugins/anyline/index.ts b/src/@awesome-cordova-plugins/plugins/anyline/index.ts index 7fcbc4fce..b97713ec4 100644 --- a/src/@awesome-cordova-plugins/plugins/anyline/index.ts +++ b/src/@awesome-cordova-plugins/plugins/anyline/index.ts @@ -1,12 +1,8 @@ import { Injectable } from '@angular/core'; import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core'; -export interface AnylineOptions { - // Valid License Key - licenseKey: string; - - // Scanning options - config: any; +export interface AnylineConfig { + [key: string]: any; } /** @@ -38,14 +34,29 @@ export interface AnylineOptions { }) @Injectable() export class Anyline extends AwesomeCordovaNativePlugin { + @Cordova() + checkLicense(licenseKey: string): Promise { + return; + } + + @Cordova() + initAnylineSDK(licenseKey: string): Promise { + return; + } + + @Cordova() + getSDKVersion(): Promise { + return; + } + /** * Scan * - * @param options {AnylineOptions} Scanning options + * @param config {AnylineConfig} Scanning options * @returns {Promise} Returns a promise that resolves when Code is captured */ @Cordova() - scan(options: AnylineOptions): Promise { + scan(config: AnylineConfig): Promise { return; } }