Skip to content

Commit

Permalink
refactor(anyline): support anyline 43.0.0 (#4518)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBelov authored Jul 11, 2023
1 parent 4cd48b4 commit bb1164f
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions src/@awesome-cordova-plugins/plugins/anyline/index.ts
Original file line number Diff line number Diff line change
@@ -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;
}

/**
Expand Down Expand Up @@ -38,14 +34,29 @@ export interface AnylineOptions {
})
@Injectable()
export class Anyline extends AwesomeCordovaNativePlugin {
@Cordova()
checkLicense(licenseKey: string): Promise<any> {
return;
}

@Cordova()
initAnylineSDK(licenseKey: string): Promise<any> {
return;
}

@Cordova()
getSDKVersion(): Promise<any> {
return;
}

/**
* Scan
*
* @param options {AnylineOptions} Scanning options
* @param config {AnylineConfig} Scanning options
* @returns {Promise<any>} Returns a promise that resolves when Code is captured
*/
@Cordova()
scan(options: AnylineOptions): Promise<any> {
scan(config: AnylineConfig): Promise<any> {
return;
}
}

0 comments on commit bb1164f

Please sign in to comment.