mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-02-04 00:06:19 +08:00
Compare commits
121 Commits
v5.40.0
...
v7.0.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a2b0aaa5e | ||
|
|
667902ff73 | ||
|
|
94b2e3deae | ||
|
|
745942c43a | ||
|
|
0b1776c08e | ||
|
|
25951b9d5e | ||
|
|
a2408c3fe3 | ||
|
|
3d5083bfa0 | ||
|
|
de726bc1e7 | ||
|
|
a29927837c | ||
|
|
3935e620be | ||
|
|
379df77692 | ||
|
|
af723c02e3 | ||
|
|
daa929e229 | ||
|
|
126f23b303 | ||
|
|
95b84447ad | ||
|
|
5ebe762d4b | ||
|
|
ab1ea4aef9 | ||
|
|
08db901db6 | ||
|
|
0e922b7e0b | ||
|
|
cfa194b71a | ||
|
|
cee00fbcc8 | ||
|
|
9f65002b6e | ||
|
|
7aba998e1c | ||
|
|
3e1fdd966b | ||
|
|
c2b01e0510 | ||
|
|
26a8cbe437 | ||
|
|
7e2452b6ad | ||
|
|
5f9f58edba | ||
|
|
6b2c1fd32e | ||
|
|
f5b7b8469b | ||
|
|
c70508e877 | ||
|
|
dd349640ee | ||
|
|
6406cdc35c | ||
|
|
6f4d6cf0bc | ||
|
|
88e78cf9fa | ||
|
|
21b7b673e9 | ||
|
|
5b9382f2fe | ||
|
|
8bda638d19 | ||
|
|
f81610ef69 | ||
|
|
adba813eb0 | ||
|
|
aa00e37ffd | ||
|
|
c7566e2ba0 | ||
|
|
bf443da2d4 | ||
|
|
8a4055c06b | ||
|
|
00a0cbc05b | ||
|
|
343ca3652d | ||
|
|
1f5a2f007a | ||
|
|
bae0a8dbc8 | ||
|
|
18cb1acb2a | ||
|
|
9a4abea1cd | ||
|
|
46086a7f4f | ||
|
|
710cf7acc0 | ||
|
|
206b2183f1 | ||
|
|
a8dafc29be | ||
|
|
36ed9a6d9c | ||
|
|
ab2aec26e3 | ||
|
|
9f93ba66a5 | ||
|
|
d735124f59 | ||
|
|
ba5232cdb0 | ||
|
|
672552bd7d | ||
|
|
6e2b9a062a | ||
|
|
893540cf88 | ||
|
|
dcad4d7711 | ||
|
|
bfd3a58276 | ||
|
|
365571eaf2 | ||
|
|
53cd775a71 | ||
|
|
798ae0a238 | ||
|
|
4b2dea8244 | ||
|
|
444b9539a8 | ||
|
|
ed83bbe171 | ||
|
|
136d24ae3d | ||
|
|
6ff9625fdc | ||
|
|
650027f2cc | ||
|
|
2b92cc1adf | ||
|
|
19acfe7dbd | ||
|
|
9865faa8c5 | ||
|
|
24e190ae1f | ||
|
|
17121a8058 | ||
|
|
fd88c86e40 | ||
|
|
02d38860d1 | ||
|
|
164ae4039a | ||
|
|
9fedc9fda5 | ||
|
|
a17dba1f8b | ||
|
|
12ef7ac215 | ||
|
|
04fdacc22f | ||
|
|
07093dc553 | ||
|
|
32c65efe10 | ||
|
|
4a43c143fe | ||
|
|
6e544f08ac | ||
|
|
e1aaa9ab60 | ||
|
|
4316bbcb07 | ||
|
|
08770ca627 | ||
|
|
e965d3ea49 | ||
|
|
933cb1e0c8 | ||
|
|
6d35716b2f | ||
|
|
3c03eba60c | ||
|
|
b234620bf1 | ||
|
|
e8752e28ba | ||
|
|
89fc8d490e | ||
|
|
273925c0a6 | ||
|
|
3747b82f53 | ||
|
|
35d7d5c135 | ||
|
|
e8a386a13a | ||
|
|
0feef6a75d | ||
|
|
2ab626ada9 | ||
|
|
d02781caaa | ||
|
|
7875ca7e6f | ||
|
|
278c0619c4 | ||
|
|
7ae78815d3 | ||
|
|
9eee42a26e | ||
|
|
99f4c5d093 | ||
|
|
55da02c808 | ||
|
|
21f7411dd4 | ||
|
|
74b12329c7 | ||
|
|
6fec213c33 | ||
|
|
75a6776898 | ||
|
|
d231ec2444 | ||
|
|
be08057704 | ||
|
|
3da0c9da94 | ||
|
|
52c156ab83 |
4
.github/workflows/nodejs.yml
vendored
4
.github/workflows/nodejs.yml
vendored
@@ -11,9 +11,9 @@ jobs:
|
||||
node-version: [14.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3.0.0
|
||||
- uses: actions/checkout@v3.0.2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3.0.0
|
||||
uses: actions/setup-node@v3.2.0
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
|
||||
8
.github/workflows/npmpublish.yml
vendored
8
.github/workflows/npmpublish.yml
vendored
@@ -9,8 +9,8 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3.0.0
|
||||
- uses: actions/setup-node@v3.0.0
|
||||
- uses: actions/checkout@v3.0.2
|
||||
- uses: actions/setup-node@v3.2.0
|
||||
with:
|
||||
node-version: 14
|
||||
- name: Install dependencies
|
||||
@@ -24,8 +24,8 @@ jobs:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3.0.0
|
||||
- uses: actions/setup-node@v3.0.0
|
||||
- uses: actions/checkout@v3.0.2
|
||||
- uses: actions/setup-node@v3.2.0
|
||||
with:
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org/
|
||||
|
||||
45
CHANGELOG.md
45
CHANGELOG.md
@@ -1,3 +1,48 @@
|
||||
# [7.0.0-alpha.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v6.0.0-alpha.0...v7.0.0-alpha.0) (2022-06-03)
|
||||
|
||||
|
||||
|
||||
# [6.0.0-alpha.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.43.0...v6.0.0-alpha.0) (2022-06-03)
|
||||
|
||||
|
||||
|
||||
# [5.43.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.42.0...v5.43.0) (2022-05-25)
|
||||
|
||||
|
||||
|
||||
# [5.42.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.41.0...v5.42.0) (2022-05-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update dependency tslib to v2.4.0 ([#4154](https://github.com/danielsogl/awesome-cordova-plugins/issues/4154)) ([bae0a8d](https://github.com/danielsogl/awesome-cordova-plugins/commit/bae0a8dbc85fb751470365080b1a35689d9d6be4))
|
||||
* **keychain:** mark useTouchID as required ([#4182](https://github.com/danielsogl/awesome-cordova-plugins/issues/4182)) ([6b2c1fd](https://github.com/danielsogl/awesome-cordova-plugins/commit/6b2c1fd32e068a25dccd0f9fda5357fdc9eb7c26))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **dynamsoft barcode scanner:** update plugin ([#4176](https://github.com/danielsogl/awesome-cordova-plugins/issues/4176)) ([7e2452b](https://github.com/danielsogl/awesome-cordova-plugins/commit/7e2452b6ad0526247dcb310d37f819026c90451c))
|
||||
* **hyper-track:** add new functions ([#4128](https://github.com/danielsogl/awesome-cordova-plugins/issues/4128)) ([26a8cbe](https://github.com/danielsogl/awesome-cordova-plugins/commit/26a8cbe437f63e8dd80b9fac643ee68070b9a1cf))
|
||||
* **in-app-purchase-2:** add launchPriceChangeConfirmationFlow ([#4127](https://github.com/danielsogl/awesome-cordova-plugins/issues/4127)) ([c2b01e0](https://github.com/danielsogl/awesome-cordova-plugins/commit/c2b01e051086d87747597ac3554feaa8772a71d1))
|
||||
|
||||
|
||||
### Reverts
|
||||
|
||||
* Revert "chore(deps): update dependency jest to v28 (#4159)" (#4163) ([710cf7a](https://github.com/danielsogl/awesome-cordova-plugins/commit/710cf7acc0d12c981adb9b00db96945e4348c643)), closes [#4159](https://github.com/danielsogl/awesome-cordova-plugins/issues/4159) [#4163](https://github.com/danielsogl/awesome-cordova-plugins/issues/4163)
|
||||
|
||||
|
||||
|
||||
# [5.41.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.40.0...v5.41.0) (2022-04-02)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **http:** add set client auth mode method ([#4100](https://github.com/danielsogl/awesome-cordova-plugins/issues/4100)) ([04fdacc](https://github.com/danielsogl/awesome-cordova-plugins/commit/04fdacc22feba4eedf14c76b0a9c408ec1ee1bdf))
|
||||
* **star-prnt:** allow null port for print methods and openCashDrawer ([#4095](https://github.com/danielsogl/awesome-cordova-plugins/issues/4095)) ([a17dba1](https://github.com/danielsogl/awesome-cordova-plugins/commit/a17dba1f8b6570d76d5c8a30f437edb2dca9abea))
|
||||
* **urbanairship:** new functions for version cordova-urbanairship 14.0 ([#4097](https://github.com/danielsogl/awesome-cordova-plugins/issues/4097)) ([12ef7ac](https://github.com/danielsogl/awesome-cordova-plugins/commit/12ef7ac215f1f9cf718a004fae9e7f4d01f597b8))
|
||||
|
||||
|
||||
|
||||
# [5.40.0](https://github.com/danielsogl/awesome-cordova-plugins/compare/v5.39.1...v5.40.0) (2022-03-05)
|
||||
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
* [LocalBackup](plugins/local-backup.md)
|
||||
* [Native Geocoder](plugins/native-geocoder.md)
|
||||
* [Coordinates](plugins/hyper-track.md)
|
||||
* [HTTP](plugins/approov-advanced-http.md)
|
||||
* [ApproovHTTP](plugins/approov-advanced-http.md)
|
||||
* [Answers](plugins/fabric.md)
|
||||
* [UriHelper](plugins/nfc.md)
|
||||
* [Dialogs](plugins/dialogs.md)
|
||||
|
||||
@@ -1,21 +1,20 @@
|
||||
# Dynamsoft Barcode Scanner
|
||||
|
||||
```
|
||||
$ git clone https://github.com/Dynamsoft/cordova-plugin-dbr/
|
||||
$ ionic cordova plugin add cordova-plugin-dbr
|
||||
$ ionic cordova plugin add cordova-plugin-dynamsoft-barcode-reader
|
||||
$ npm install @awesome-cordova-plugins/dynamsoft-barcode-scanner
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/dynamsoft-barcode-scanner/)
|
||||
|
||||
Plugin Repo: [https://github.com/Dynamsoft/cordova-plugin-dbr/](https://github.com/Dynamsoft/cordova-plugin-dbr/)
|
||||
Plugin Repo: [https://github.com/xulihang/cordova-plugin-dynamsoft-barcode-reader](https://github.com/xulihang/cordova-plugin-dynamsoft-barcode-reader)
|
||||
|
||||
The Dynamsoft Barcode Scanner Plugin opens a camera view and automatically scans a barcode, returning the data back to you.
|
||||
The Dynamsoft Barcode Scanner Plugin can read barcodes from images as well as camera previews.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
* Android
|
||||
* iOS
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,21 +1,20 @@
|
||||
# Dynamsoft Barcode Scanner
|
||||
# dynamsoft-barcode-scanner
|
||||
|
||||
```
|
||||
$ git clone https://github.com/Dynamsoft/cordova-plugin-dbr/
|
||||
$ ionic cordova plugin add cordova-plugin-dbr
|
||||
$ ''
|
||||
$ npm install @awesome-cordova-plugins/dynamsoft-barcode-scanner
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/dynamsoft-barcode-scanner/)
|
||||
|
||||
Plugin Repo: [https://github.com/Dynamsoft/cordova-plugin-dbr/](https://github.com/Dynamsoft/cordova-plugin-dbr/)
|
||||
Plugin Repo: [https://github.com/xulihang/cordova-plugin-dynamsoft-barcode-reader](https://github.com/xulihang/cordova-plugin-dynamsoft-barcode-reader)
|
||||
|
||||
The Dynamsoft Barcode Scanner Plugin opens a camera view and automatically scans a barcode, returning the data back to you.
|
||||
This plugin scans barcodes using Dynamsoft Barcode Reader
|
||||
|
||||
## Supported platforms
|
||||
|
||||
- Android
|
||||
- iOS
|
||||
- iOS
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ Go to firebase console and export google-services.json and GoogleService-Info.pl
|
||||
NOTE: on iOS in order to collect demographic, age, gender data etc. you should additionally include AdSupport.framework into your project.
|
||||
|
||||
## Using capacitor?
|
||||
For Android you'll have to add in __android/app/src/main/AndroidManfiest.xml__ under `<application>`
|
||||
For Android you'll have to add in __android/app/src/main/AndroidManifest.xml__ under `<application>`
|
||||
```
|
||||
<meta-data
|
||||
tools:replace="android:value"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# SmartlookTimedCustomEventStart
|
||||
plugin add https://github.com/smartlook/cordova-smartlook.git
|
||||
# SmartlookEventTrackingMode
|
||||
ova plugin add https://github.com/smartlook/cordova-smartlook.git
|
||||
$ npm install @awesome-cordova-plugins/smartlook
|
||||
```
|
||||
|
||||
|
||||
1921
package-lock.json
generated
1921
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
50
package.json
50
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "awesome-cordova-plugins",
|
||||
"version": "5.40.0",
|
||||
"version": "7.0.0-alpha.0",
|
||||
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
|
||||
"homepage": "https://awesome-cordova-plugins.com",
|
||||
"author": "Daniel Sogl <me@danielsogl.com> (https://danielsogl.com)",
|
||||
@@ -24,51 +24,51 @@
|
||||
"prettier": "prettier --write --ignore-unknown \"**/*\""
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": "2.3.1"
|
||||
"tslib": "2.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/common": "11.2.14",
|
||||
"@angular/compiler": "11.2.14",
|
||||
"@angular/compiler-cli": "11.2.14",
|
||||
"@angular/core": "11.2.14",
|
||||
"@angular/common": "^12.2.16",
|
||||
"@angular/compiler": "^12.2.16",
|
||||
"@angular/compiler-cli": "^12.2.16",
|
||||
"@angular/core": "^12.2.16",
|
||||
"@types/cordova": "0.0.34",
|
||||
"@types/fs-extra": "9.0.13",
|
||||
"@types/jest": "27.4.1",
|
||||
"@types/lodash": "4.14.179",
|
||||
"@types/node": "16.11.26",
|
||||
"@types/jest": "27.5.2",
|
||||
"@types/lodash": "4.14.182",
|
||||
"@types/node": "16.11.38",
|
||||
"@types/rimraf": "3.0.2",
|
||||
"@types/webpack": "5.28.0",
|
||||
"@typescript-eslint/eslint-plugin": "5.13.0",
|
||||
"@typescript-eslint/parser": "5.13.0",
|
||||
"@typescript-eslint/eslint-plugin": "5.26.0",
|
||||
"@typescript-eslint/parser": "5.26.0",
|
||||
"async-promise-queue": "1.0.5",
|
||||
"conventional-changelog-cli": "2.2.2",
|
||||
"cz-conventional-changelog": "3.3.0",
|
||||
"dgeni": "0.4.14",
|
||||
"dgeni-packages": "0.16.10",
|
||||
"eslint": "8.10.0",
|
||||
"eslint": "8.16.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-jsdoc": "37.9.6",
|
||||
"fs-extra": "10.0.1",
|
||||
"eslint-plugin-jsdoc": "39.3.1",
|
||||
"fs-extra": "10.1.0",
|
||||
"gulp": "4.0.2",
|
||||
"gulp-rename": "2.0.0",
|
||||
"gulp-replace": "1.1.3",
|
||||
"husky": "7.0.4",
|
||||
"husky": "8.0.1",
|
||||
"is-ci": "3.0.1",
|
||||
"jest": "27.5.1",
|
||||
"lint-staged": "12.3.5",
|
||||
"lint-staged": "13.0.0",
|
||||
"lodash": "4.17.21",
|
||||
"minimist": "1.2.5",
|
||||
"prettier": "2.5.1",
|
||||
"minimist": "1.2.6",
|
||||
"prettier": "2.6.2",
|
||||
"rimraf": "3.0.2",
|
||||
"rollup": "2.69.1",
|
||||
"rollup": "2.75.5",
|
||||
"rxjs": "6.6.7",
|
||||
"terser-webpack-plugin": "5.3.1",
|
||||
"ts-jest": "27.1.3",
|
||||
"ts-node": "10.6.0",
|
||||
"typescript": "4.1.6",
|
||||
"terser-webpack-plugin": "5.3.3",
|
||||
"ts-jest": "27.1.5",
|
||||
"ts-node": "10.8.0",
|
||||
"typescript": "4.2",
|
||||
"unminified-webpack-plugin": "3.0.0",
|
||||
"webpack": "5.70.0",
|
||||
"winston": "3.6.0",
|
||||
"webpack": "5.73.0",
|
||||
"winston": "3.7.2",
|
||||
"zone.js": "0.11.5"
|
||||
},
|
||||
"jest": {
|
||||
|
||||
@@ -15,13 +15,14 @@ export function getProgram(rootNames: string[] = createSourceFiles()) {
|
||||
const options: CompilerOptions = clone(COMPILER_OPTIONS);
|
||||
options.basePath = ROOT;
|
||||
options.moduleResolution = ModuleResolutionKind.NodeJs;
|
||||
options.module = ModuleKind.ES2015;
|
||||
options.target = ScriptTarget.ES5;
|
||||
options.lib = ['dom', 'es2017'];
|
||||
options.module = ModuleKind.ES2020;
|
||||
options.target = ScriptTarget.ES2015;
|
||||
options.lib = ['dom', 'es2018'];
|
||||
options.inlineSourceMap = true;
|
||||
options.importHelpers = true;
|
||||
options.inlineSources = true;
|
||||
options.enableIvy = false;
|
||||
options.compilationMode = 'partial';
|
||||
|
||||
delete options.baseUrl;
|
||||
|
||||
|
||||
@@ -11,14 +11,14 @@ import { Logger } from '../logger';
|
||||
// tslint:disable-next-line:no-var-requires
|
||||
const MAIN_PACKAGE_JSON = require('../../package.json');
|
||||
const VERSION = MAIN_PACKAGE_JSON.version;
|
||||
const FLAGS = '--access public';
|
||||
const FLAGS = '--access public --tag alpha';
|
||||
|
||||
const PACKAGE_JSON_BASE = {
|
||||
description: 'Awesome Cordova Plugins - Native plugins for ionic apps',
|
||||
main: 'bundle.js',
|
||||
module: 'index.js',
|
||||
typings: 'index.d.ts',
|
||||
author: 'ionic',
|
||||
author: 'Daniel Sogl',
|
||||
license: 'MIT',
|
||||
repository: {
|
||||
type: 'git',
|
||||
@@ -30,7 +30,7 @@ const DIST = resolve(ROOT, 'dist/@awesome-cordova-plugins');
|
||||
|
||||
const PACKAGES = [];
|
||||
|
||||
const MIN_CORE_VERSION = '^5.1.0';
|
||||
const MIN_CORE_VERSION = '^6.0.0-alpha.0';
|
||||
const RXJS_VERSION = '^5.5.0 || ^6.5.0 || ^7.3.0';
|
||||
|
||||
const PLUGIN_PEER_DEPENDENCIES = {
|
||||
|
||||
@@ -9,98 +9,52 @@ import {
|
||||
} from '@awesome-cordova-plugins/core';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export interface BarcodeScannerOptions {
|
||||
/**
|
||||
* Prefer front camera. Supported on iOS and Android.
|
||||
*/
|
||||
preferFrontCamera?: boolean;
|
||||
|
||||
/**
|
||||
* Show flip camera button. Supported on iOS and Android.
|
||||
*/
|
||||
showFlipCameraButton?: boolean;
|
||||
|
||||
/**
|
||||
* Show torch button. Supported on iOS and Android.
|
||||
*/
|
||||
showTorchButton?: boolean;
|
||||
|
||||
/**
|
||||
* Disable animations. Supported on iOS only.
|
||||
*/
|
||||
disableAnimations?: boolean;
|
||||
|
||||
/**
|
||||
* Disable success beep. Supported on iOS only.
|
||||
*/
|
||||
disableSuccessBeep?: boolean;
|
||||
|
||||
/**
|
||||
* Prompt text. Supported on Android only.
|
||||
*/
|
||||
prompt?: string;
|
||||
|
||||
/**
|
||||
* Formats separated by commas. Defaults to all formats except `PDF_417` and `RSS_EXPANDED`.
|
||||
*/
|
||||
formats?: string;
|
||||
|
||||
/**
|
||||
* Orientation. Supported on Android only. Can be set to `portrait` or `landscape`. Defaults to none so the user can rotate the phone and pick an orientation.
|
||||
*/
|
||||
orientation?: string;
|
||||
|
||||
/**
|
||||
* Launch with the torch switched on (if available). Supported on Android only.
|
||||
*/
|
||||
torchOn?: boolean;
|
||||
|
||||
/**
|
||||
* Save scan history. Defaults to `false`. Supported on Android only.
|
||||
*/
|
||||
saveHistory?: boolean;
|
||||
|
||||
/**
|
||||
* Display scanned text for X ms. 0 suppresses it entirely, default 1500. Supported on Android only.
|
||||
*/
|
||||
resultDisplayDuration?: number;
|
||||
|
||||
/**
|
||||
* Long key for Dynamsoft Barcode Reader
|
||||
*/
|
||||
dynamsoftlicense?: string;
|
||||
export interface FrameResult {
|
||||
frameWidth: number;
|
||||
frameHeight: number;
|
||||
results: BarcodeResult[];
|
||||
}
|
||||
|
||||
export interface BarcodeScanResult {
|
||||
format: string;
|
||||
cancelled: boolean;
|
||||
text: string;
|
||||
export interface BarcodeResult {
|
||||
barcodeText: string;
|
||||
barcodeFormat: string;
|
||||
x1: number;
|
||||
x2: number;
|
||||
x3: number;
|
||||
x4: number;
|
||||
y1: number;
|
||||
y2: number;
|
||||
y3: number;
|
||||
y4: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name dynamsoft-barcode-scanner
|
||||
* @description
|
||||
* The Barcode Scanner Plugin opens a camera view and automatically scans a barcode, returning the data back to you.
|
||||
* Requires this Cordova plugin: [BarcodeScanner plugin](https://github.com/Dynamsoft/cordova-plugin-dbr/).
|
||||
* This plugin scans barcodes using Dynamsoft Barcode Reader
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { BarcodeScanner } from '@awesome-cordova-plugins/dynamsoft-barcode-scanner';
|
||||
* import { dynamsoft-barcode-scanner } from '@awesome-cordova-plugins/dynamsoft-barcode-scanner';
|
||||
*
|
||||
*
|
||||
* constructor(private dynamsoft-barcode-scanner: dynamsoft-barcode-scanner) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* const results = await BarcodeScanner.scan({"dynamsoftlicense":"license"});
|
||||
* console.log(results);
|
||||
*
|
||||
* await this.dynamsoft-barcode-scanner.init("license");
|
||||
* this.dynamsoft-barcode-scanner.startScanning("license").subscribe(result => {
|
||||
console.log(result);
|
||||
});
|
||||
*
|
||||
* ```
|
||||
* @interfaces
|
||||
* BarcodeScannerOptions
|
||||
* BarcodeScanResult
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'dynamsoft-barcode-scanner',
|
||||
plugin: 'cordova-plugin-dbr',
|
||||
pluginRef: 'cordova.plugins.barcodeScanner',
|
||||
repo: 'https://github.com/Dynamsoft/cordova-plugin-dbr',
|
||||
plugin: 'cordova-plugin-dynamsoft-barcode-reader',
|
||||
pluginRef: 'cordova.plugins.DBR',
|
||||
repo: 'https://github.com/xulihang/cordova-plugin-dynamsoft-barcode-reader',
|
||||
install: '',
|
||||
installVariables: [],
|
||||
platforms: ['Android', 'iOS'],
|
||||
@@ -108,15 +62,106 @@ export interface BarcodeScanResult {
|
||||
@Injectable()
|
||||
export class BarcodeScanner extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
* Open the barcode scanner.
|
||||
*
|
||||
* @param {BarcodeScannerOptions} [options] Optional options to pass to the scanner
|
||||
* @returns {Promise<any>} Returns a Promise that resolves with scanner data, or rejects with an error.
|
||||
* Initialize Dynamsoft Barcode Reader
|
||||
* @param license {string}
|
||||
* @return {Promise<any>} Returns a promise that resolves when the initialization is done
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse',
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
scan(options?: BarcodeScannerOptions): Promise<BarcodeScanResult> {
|
||||
init(license: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set up runtime settings
|
||||
* @param settings {string} runtime settings template in JSON
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
initRuntimeSettingsWithString(settings?: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Output runtime settings to JSON string
|
||||
* @return {Promise<String>} Returns a promise
|
||||
*/
|
||||
@Cordova({ successIndex: 1, errorIndex: 2 })
|
||||
outputSettingsToString(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* destroy Dynamsoft Barcode Reader
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova({ successIndex: 1, errorIndex: 2 })
|
||||
destroy(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* start the camera to scan barcodes
|
||||
* @param dceLicense {string} License of Dynamsoft Camera Enhancer
|
||||
* @return {Observable<FrameResult>}
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
observable: true,
|
||||
})
|
||||
startScanning(dceLicense?: string): Observable<FrameResult> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* stop scanning
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova({ successIndex: 1, errorIndex: 2 })
|
||||
stopScanning(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* resume scanning
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova({ successIndex: 1, errorIndex: 2 })
|
||||
resumeScanning(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* pause scanning
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova({ successIndex: 1, errorIndex: 2 })
|
||||
pauseScanning(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* get resolution like: 1280x720
|
||||
* @return {Promise<string>} Returns a promise
|
||||
*/
|
||||
@Cordova({ successIndex: 1, errorIndex: 2 })
|
||||
getResolution(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* switch torch
|
||||
* @param desiredStatus {string} on or off
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova({ successIndex: 1, errorIndex: 2 })
|
||||
switchTorch(desiredStatus: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ export interface EmailComposerOptions {
|
||||
* // Returns an array of configured email clients for the device
|
||||
* });
|
||||
*
|
||||
* this.emailComposer.hasClient().then(app, (isValid: boolean) => {
|
||||
* this.emailComposer.hasClient(app).then((isValid: boolean) => {
|
||||
* if (isValid) {
|
||||
* // Now we know we have a valid email client configured
|
||||
* // Not specifying an app will return true if at least one email client is configured
|
||||
@@ -80,7 +80,7 @@ export interface EmailComposerOptions {
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* this.emailComposer.isAvailable().then(app, (available: boolean) => {
|
||||
* this.emailComposer.isAvailable(app).then((available: boolean) => {
|
||||
* if(available) {
|
||||
* // Now we know we can send an email, calls hasClient and hasAccount
|
||||
* // Not specifying an app will return true if at least one email client is configured
|
||||
|
||||
@@ -12,7 +12,7 @@ import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-pl
|
||||
* NOTE: on iOS in order to collect demographic, age, gender data etc. you should additionally include AdSupport.framework into your project.
|
||||
*
|
||||
* ## Using capacitor?
|
||||
* For Android you'll have to add in __android/app/src/main/AndroidManfiest.xml__ under `<application>`
|
||||
* For Android you'll have to add in __android/app/src/main/AndroidManifest.xml__ under `<application>`
|
||||
* ```
|
||||
* <meta-data
|
||||
* tools:replace="android:value"
|
||||
|
||||
@@ -237,6 +237,26 @@ export class HTTP extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure X.509 client certificate authentication. Takes mode and options. mode being one of following values:
|
||||
* none: disable client certificate authentication
|
||||
* systemstore (only on Android): use client certificate installed in the Android system store; user will be presented with a list of all installed certificates
|
||||
* buffer: use given client certificate; you will need to provide an options object
|
||||
*
|
||||
* @see https://github.com/silkimen/cordova-plugin-advanced-http#setclientauthmode
|
||||
* @param {string} mode auth mode
|
||||
* @param {object} options useful for buffer mode
|
||||
* @param {ArrayBuffer} options.rawPkcs ArrayBuffer containing raw PKCS12 container with client certificate and private key
|
||||
* @param {string} options.pkcsPassword password of the PKCS container
|
||||
*/
|
||||
@Cordova()
|
||||
setClientAuthMode(
|
||||
mode: 'none' | 'systemstore ' | 'buffer',
|
||||
options?: { rawPkcs: ArrayBuffer; pkcsPassword: string }
|
||||
): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make a POST request
|
||||
*
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { AwesomeCordovaNativePlugin, Cordova, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
const hypertrackIonicPluginVersion = "0.2.0"
|
||||
// Minimal cordova-plugin-hypertrack-v3 version: 0.5.0
|
||||
@Plugin({
|
||||
pluginName: 'cordova-plugin-hypertrack-v3',
|
||||
plugin: 'cordova-plugin-hypertrack-v3',
|
||||
@@ -39,6 +41,9 @@ interface FailureHandler {
|
||||
interface SuccessHandler {
|
||||
(): any;
|
||||
}
|
||||
interface LocationReceiver {
|
||||
(location: CordovaLatestLocationResult): any;
|
||||
}
|
||||
|
||||
// SDK instance that exposed from Cordova utilizes usage of callbacks, so we
|
||||
// wrap it with adapter to avoid mix of callbacks and Promises
|
||||
@@ -64,17 +69,23 @@ interface HyperTrackCordova {
|
||||
syncDeviceSettings(success: SuccessHandler, error: FailureHandler): void;
|
||||
start(success: SuccessHandler, error: FailureHandler): void;
|
||||
stop(success: SuccessHandler, error: FailureHandler): void;
|
||||
getLatestLocation(success: LocationReceiver, error: FailureHandler): void;
|
||||
getCurrentLocation(success: LocationReceiver, error: FailureHandler): void;
|
||||
}
|
||||
|
||||
export class CoordinatesValidationError extends Error {}
|
||||
|
||||
/** Wrapper class for passing spatial geoposition as a geotag's expected location */
|
||||
export class Coordinates {
|
||||
constructor(latitude: number, longitude: number) {
|
||||
constructor(public latitude: number, public longitude: number) {
|
||||
if (latitude < -90.0 || latitude > 90.0 || longitude < -180.0 || longitude > 180.0) {
|
||||
throw new CoordinatesValidationError('latitude and longitude should be of correct valaues');
|
||||
throw new CoordinatesValidationError('latitude and longitude should be of correct values');
|
||||
}
|
||||
}
|
||||
|
||||
public toString = (): string => {
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
}
|
||||
|
||||
/** A blocker is an obstacle that needs to be resolved to achieve reliable tracking. */
|
||||
@@ -89,6 +100,40 @@ export interface Blocker {
|
||||
resolve: () => void;
|
||||
}
|
||||
|
||||
export type CordovaLatestLocationResult = {
|
||||
type: "location",
|
||||
location: Coordinates,
|
||||
} | {
|
||||
type: "outage",
|
||||
outage: {
|
||||
code: number,
|
||||
name: keyof typeof Outage
|
||||
}
|
||||
}
|
||||
|
||||
export type LocationResult = {
|
||||
type: LocationResultType.LOCATION,
|
||||
value: Coordinates
|
||||
} |
|
||||
{
|
||||
type: LocationResultType.OUTAGE,
|
||||
value: Outage
|
||||
}
|
||||
|
||||
export enum LocationResultType {
|
||||
LOCATION, OUTAGE
|
||||
}
|
||||
|
||||
export enum Outage {
|
||||
MISSING_LOCATION_PERMISSION,
|
||||
MISSING_ACTIVITY_PERMISSION,
|
||||
LOCATION_SERVICE_DISABLED,
|
||||
NOT_TRACKING,
|
||||
START_HAS_NOT_FINISHED,
|
||||
NO_GPS_SIGNAL,
|
||||
RESTART_REQUIRED
|
||||
}
|
||||
|
||||
/**
|
||||
* @usage
|
||||
* ```typescript
|
||||
@@ -130,6 +175,7 @@ export class HyperTrack {
|
||||
* @see {@link https://dashboard.hypertrack.com/setup}.
|
||||
*/
|
||||
static initialize(publishableKey: string): Promise<HyperTrack> {
|
||||
console.log(`Hypertrack Ionic plugin version ${hypertrackIonicPluginVersion}`)
|
||||
return new Promise((resolve, reject) => {
|
||||
new HyperTrackPlugin()
|
||||
.initialize(publishableKey)
|
||||
@@ -286,5 +332,49 @@ export class HyperTrack {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves latest device location that was sent by the SDK.
|
||||
* Only available for Android platform.
|
||||
* */
|
||||
getLatestLocation(): Promise<LocationResult> {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.cordovaInstanceHandle.getLatestLocation(
|
||||
locationResult => resolve(this.handleLocationResult(locationResult)),
|
||||
err => reject(err)
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves latest device location from system location provider.
|
||||
* Only available for Android platform.
|
||||
* */
|
||||
getCurrentLocation(): Promise<LocationResult> {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.cordovaInstanceHandle.getCurrentLocation(
|
||||
locationResult => resolve(this.handleLocationResult(locationResult)),
|
||||
err => reject(err)
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
private handleLocationResult(locationResult: CordovaLatestLocationResult): LocationResult {
|
||||
switch (locationResult.type) {
|
||||
case "location": {
|
||||
return {
|
||||
type: LocationResultType.LOCATION,
|
||||
value: locationResult.location
|
||||
}
|
||||
}
|
||||
case "outage": {
|
||||
const outage = Outage[locationResult.outage.name]
|
||||
return {
|
||||
type: LocationResultType.OUTAGE,
|
||||
value: outage
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private constructor(private cordovaInstanceHandle: HyperTrackCordova) {}
|
||||
}
|
||||
|
||||
@@ -915,4 +915,8 @@ export class InAppPurchase2 extends AwesomeCordovaNativePlugin {
|
||||
/** Opens the Manage Billing page (AppStore, Play, Microsoft, ...), where the user can update his/her payment methods. */
|
||||
@Cordova({ sync: true })
|
||||
manageBilling(): void {}
|
||||
|
||||
/** Open the subscription price change notification workflow. (Play) See: https://developer.android.com/google/play/billing/subscriptions#price-change-communicate */
|
||||
@Cordova({ sync: true })
|
||||
launchPriceChangeConfirmationFlow(productId: string, callback: (status: 'OK' | 'UnknownProduct' | 'UserCanceled') => void): void {};
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-pl
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* this.keychain.set(key, value).then(() => {
|
||||
* this.keychain.set(key, value, false).then(() => {
|
||||
* this.keychain.get(key)
|
||||
* .then(value => console.log('Got value', value))
|
||||
* .catch(err => console.error('Error getting', err));
|
||||
@@ -57,7 +57,7 @@ export class Keychain extends AwesomeCordovaNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
set(key: string, value: string | number | boolean, useTouchID?: boolean): Promise<any> {
|
||||
set(key: string, value: string | number | boolean, useTouchID: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-pl
|
||||
* This plugin retrives the SMS which arrive without requiring READ permissions.
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { SmsRetriever } from '@awesome-cordova-plugins/sms-retriever';
|
||||
* import { SmsRetriever } from '@awesome-cordova-plugins/sms-retriever/ngx';
|
||||
*
|
||||
*
|
||||
* constructor(private smsRetriever: SmsRetriever) { }
|
||||
|
||||
@@ -880,7 +880,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
|
||||
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
|
||||
*/
|
||||
@Cordova()
|
||||
printRawText(port: string, emulation: string, printObj: PrintObj): Promise<any> {
|
||||
printRawText(port: string|null, emulation: string, printObj: PrintObj): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -893,7 +893,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
|
||||
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
|
||||
*/
|
||||
@Cordova()
|
||||
printRasterReceipt(port: string, emulation: string, rasterObj: RasterObj): Promise<any> {
|
||||
printRasterReceipt(port: string|null, emulation: string, rasterObj: RasterObj): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -906,7 +906,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
|
||||
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
|
||||
*/
|
||||
@Cordova()
|
||||
printImage(port: string, emulation: string, imageObj: ImageObj): Promise<any> {
|
||||
printImage(port: string|null, emulation: string, imageObj: ImageObj): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -918,7 +918,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
|
||||
* @returns {Promise<any>} Success! if opened or error message string returned by the SDK.
|
||||
*/
|
||||
@Cordova()
|
||||
openCashDrawer(port: string, emulation: string): Promise<any> {
|
||||
openCashDrawer(port: string|null, emulation: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -931,7 +931,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
|
||||
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
|
||||
*/
|
||||
@Cordova()
|
||||
print(port: string, emulation: string, commandsArray: CommandsArray): Promise<any> {
|
||||
print(port: string|null, emulation: string, commandsArray: CommandsArray): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,24 @@ export interface AttributesEditor {
|
||||
apply(success: () => void, failure: (message: string) => void): AttributesEditor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface for UAirship ChannelSubscriptionList Editor
|
||||
*/
|
||||
export interface ChannelSubscriptionListEditor {
|
||||
subscribe(subscriptionListID: string): ChannelSubscriptionListEditor;
|
||||
unsubscribe(subscriptionListID: string): ChannelSubscriptionListEditor;
|
||||
apply(success: () => void, failure: (message: string) => void): ChannelSubscriptionListEditor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface for UAirship ContactSubscriptionList Editor
|
||||
*/
|
||||
export interface ContactSubscriptionListEditor {
|
||||
subscribe(subscriptionListID: string, contactScope: 'APP' | 'EMAIL'): ContactSubscriptionListEditor;
|
||||
unsubscribe(subscriptionListID: string, contactScope: 'APP' | 'EMAIL'): ContactSubscriptionListEditor;
|
||||
apply(success: () => void, failure: (message: string) => void): ContactSubscriptionListEditor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enum for notification types.
|
||||
*
|
||||
@@ -517,7 +535,7 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
||||
* @param {string} failure.message The error message.
|
||||
*/
|
||||
@Cordova()
|
||||
getNamedUser(): Promise<any> {
|
||||
getNamedUser(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -581,6 +599,60 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an editor to modify the channel subscription lists.
|
||||
*
|
||||
* @returns {ChannelSubscriptionListEditor} A subscription list editor instance.
|
||||
* @since 13.3.0
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
editChannelSubscriptionLists(): ChannelSubscriptionListEditor {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an editor to modify the contact subscription lists.
|
||||
*
|
||||
* @returns {ContactSubscriptionListEditor} A subscription list editor instance.
|
||||
* @since 13.3.0
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
editContactSubscriptionLists(): ContactSubscriptionListEditor {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current set of subscription lists for the current channel,
|
||||
* optionally applying pending subscription list changes that will be applied during the next channel update.
|
||||
* An empty set indicates that this contact is not subscribed to any lists.
|
||||
*
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {string} failure.message The error message.
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
getChannelSubscriptionLists(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current set of subscription lists for the current contact,
|
||||
* optionally applying pending subscription list changes that will be applied during the next contact update.
|
||||
* An empty set indicates that this contact is not subscribed to any lists.
|
||||
*
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {string} failure.message The error message.
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
getContactSubscriptionLists(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets an associated identifier for the Connect data stream.
|
||||
*
|
||||
@@ -617,6 +689,7 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
||||
* @param {boolean} success.enabled Flag indicating if location is enabled or not.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @deprecated removed in version 8.0
|
||||
*/
|
||||
@Cordova()
|
||||
isLocationEnabled(): Promise<any> {
|
||||
@@ -630,6 +703,7 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @deprecated removed in version 8.0
|
||||
*/
|
||||
@Cordova()
|
||||
setBackgroundLocationEnabled(enabled: boolean): Promise<any> {
|
||||
@@ -643,6 +717,7 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
||||
* @param {boolean} success.enabled Flag indicating if background location updates are enabled or not.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @deprecated removed in version 8.0
|
||||
*/
|
||||
@Cordova()
|
||||
isBackgroundLocationEnabled(): Promise<any> {
|
||||
@@ -691,6 +766,7 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @deprecated removed in version 10.0
|
||||
*/
|
||||
@Cordova()
|
||||
dismissOverlayInboxMessage(): Promise<any> {
|
||||
@@ -777,6 +853,7 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @deprecated removed in version 10.0
|
||||
*/
|
||||
@Cordova()
|
||||
overlayInboxMessage(messageId: string): Promise<any> {
|
||||
@@ -971,4 +1048,135 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
||||
addCustomEvent(event: object): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initiates screen tracking for a specific app screen, must be called once per tracked screen.
|
||||
*
|
||||
* @param {string} screen The screen's string identifier.
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 11.0.0
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
trackScreen(screen: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables features, adding them to the set of currently enabled features.
|
||||
*
|
||||
* @param {Array<string>} features The features to enable.
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 13.0.0
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
enableFeature(features: string[]): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables features, removing them from the set of currently enabled features.
|
||||
*
|
||||
* @param {Array<string>} features The features to disable.
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 13.0.0
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
disableFeature(features: string[]): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the current enabled features, replacing any currently enabled features with the given set.
|
||||
*
|
||||
* @param {Array<string>} features The features to set as enabled.
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 13.0.0
|
||||
*/
|
||||
setEnabledFeatures(features: string[]): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current enabled features.
|
||||
*
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 13.0.0
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 0,
|
||||
errorIndex: 1,
|
||||
})
|
||||
getEnabledFeatures(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if all of the given features are enabled.
|
||||
*
|
||||
* @param {Array<string>} features The features to check.
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 13.0.0
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
isFeatureEnabled(features: string[]): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the configuration of the Preference Center with the given ID trough a callback method.
|
||||
*
|
||||
* @param {string} preferenceCenterId The preference center ID.
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 13.3.0
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
getPreferenceCenterConfig(preferenceCenterId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens the Preference Center with the given preferenceCenterId.
|
||||
*
|
||||
* @param {string} prenferenceCenterId The preference center ID.
|
||||
* @param {Function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 13.0.0
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
openPreferenceCenter(prenferenceCenterId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,5 +17,9 @@
|
||||
"sourceMap": true
|
||||
},
|
||||
"include": ["src/@awesome-cordova-plugins/core/**/*.ts"],
|
||||
"exclude": ["node_modules", "src/@awesome-cordova-plugins/core/**/*.spec.ts"]
|
||||
"exclude": ["node_modules", "src/@awesome-cordova-plugins/core/**/*.spec.ts"],
|
||||
"angularCompilerOptions": {
|
||||
"genDir": "aot",
|
||||
"compilationMode": "partial"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
},
|
||||
"include": ["src/@awesome-cordova-plugins/plugins/**/*.ts"],
|
||||
"angularCompilerOptions": {
|
||||
"genDir": "aot"
|
||||
"genDir": "aot",
|
||||
"compilationMode": "partial"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user