mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
Merge commit 'a2f5acb48c8d197fad55276ffcee7eee5cf3065f'
# Conflicts: # src/@ionic-native/plugins/unvired-cordova-sdk/index.ts
This commit is contained in:
commit
50408b08c6
17
CHANGELOG.md
17
CHANGELOG.md
@ -1,3 +1,20 @@
|
|||||||
|
# [5.10.0](https://github.com/ionic-team/ionic-native/compare/v5.9.0...v5.10.0) (2019-07-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **barcode-scanner:** add missing shouldAutorotate property ([#3096](https://github.com/ionic-team/ionic-native/issues/3096)) ([8ce541f](https://github.com/ionic-team/ionic-native/commit/8ce541f))
|
||||||
|
* **biocatch:** added android platform and updated repo ([#3086](https://github.com/ionic-team/ionic-native/issues/3086)) ([717f686](https://github.com/ionic-team/ionic-native/commit/717f686))
|
||||||
|
* **line-login:** add missing email prop ([#3098](https://github.com/ionic-team/ionic-native/issues/3098)) ([7aa0810](https://github.com/ionic-team/ionic-native/commit/7aa0810))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **anyline:** add plugin ([#3101](https://github.com/ionic-team/ionic-native/issues/3101)) ([8badd29](https://github.com/ionic-team/ionic-native/commit/8badd29)), closes [#3074](https://github.com/ionic-team/ionic-native/issues/3074)
|
||||||
|
* **theme-detection:** add plugin ([#3082](https://github.com/ionic-team/ionic-native/issues/3082)) ([e9fa3ee](https://github.com/ionic-team/ionic-native/commit/e9fa3ee))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [5.9.0](https://github.com/ionic-team/ionic-native/compare/v5.8.0...v5.9.0) (2019-07-01)
|
# [5.9.0](https://github.com/ionic-team/ionic-native/compare/v5.8.0...v5.9.0) (2019-07-01)
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
working_directory: ~/ionic-native/
|
working_directory: ~/ionic-native/
|
||||||
docker:
|
docker:
|
||||||
- image: node:10
|
- image: node:12
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
|
3505
package-lock.json
generated
3505
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ionic-native",
|
"name": "ionic-native",
|
||||||
"version": "5.9.0",
|
"version": "5.10.0",
|
||||||
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
|
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
|
||||||
"homepage": "https://ionicframework.com/",
|
"homepage": "https://ionicframework.com/",
|
||||||
"author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
|
"author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
|
||||||
@ -28,25 +28,25 @@
|
|||||||
"@angular/compiler-cli": "^7.2.15",
|
"@angular/compiler-cli": "^7.2.15",
|
||||||
"@angular/core": "^7.2.15",
|
"@angular/core": "^7.2.15",
|
||||||
"@types/cordova": "0.0.34",
|
"@types/cordova": "0.0.34",
|
||||||
"@types/fs-extra": "^7.0.0",
|
"@types/fs-extra": "^8.0.0",
|
||||||
"@types/jest": "^24.0.15",
|
"@types/jest": "^24.0.15",
|
||||||
"@types/lodash": "^4.14.135",
|
"@types/lodash": "^4.14.136",
|
||||||
"@types/node": "^10.14.10",
|
"@types/node": "^12.6.2",
|
||||||
"@types/rimraf": "^2.0.2",
|
"@types/rimraf": "^2.0.2",
|
||||||
"@types/webpack": "^4.4.34",
|
"@types/webpack": "^4.4.34",
|
||||||
"ajv": "^6.10.0",
|
"ajv": "^6.10.1",
|
||||||
"async-promise-queue": "^1.0.5",
|
"async-promise-queue": "^1.0.5",
|
||||||
"conventional-changelog-cli": "^2.0.21",
|
"conventional-changelog-cli": "^2.0.21",
|
||||||
"cz-conventional-changelog": "^2.1.0",
|
"cz-conventional-changelog": "^2.1.0",
|
||||||
"dgeni": "^0.4.12",
|
"dgeni": "^0.4.12",
|
||||||
"dgeni-packages": "0.16.10",
|
"dgeni-packages": "0.16.10",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^8.1.0",
|
||||||
"gulp": "3.9.1",
|
"gulp": "^4.0.2",
|
||||||
"gulp-rename": "^1.4.0",
|
"gulp-rename": "^1.4.0",
|
||||||
"gulp-replace": "^1.0.0",
|
"gulp-replace": "^1.0.0",
|
||||||
"gulp-tslint": "^8.1.4",
|
"gulp-tslint": "^8.1.4",
|
||||||
"jest": "^24.8.0",
|
"jest": "^24.8.0",
|
||||||
"lodash": "^4.17.11",
|
"lodash": "^4.17.14",
|
||||||
"minimist": "1.2.0",
|
"minimist": "1.2.0",
|
||||||
"natives": "^1.1.6",
|
"natives": "^1.1.6",
|
||||||
"rimraf": "^2.6.3",
|
"rimraf": "^2.6.3",
|
||||||
@ -59,7 +59,7 @@
|
|||||||
"typescript": "3.2.4",
|
"typescript": "3.2.4",
|
||||||
"uglifyjs-webpack-plugin": "^2.1.3",
|
"uglifyjs-webpack-plugin": "^2.1.3",
|
||||||
"unminified-webpack-plugin": "^2.0.0",
|
"unminified-webpack-plugin": "^2.0.0",
|
||||||
"webpack": "^4.35.2",
|
"webpack": "^4.35.3",
|
||||||
"winston": "^3.2.1",
|
"winston": "^3.2.1",
|
||||||
"zone.js": "^0.8.29"
|
"zone.js": "^0.8.29"
|
||||||
},
|
},
|
||||||
|
@ -6,35 +6,27 @@ const config = require('./config.json'),
|
|||||||
Dgeni = require('dgeni');
|
Dgeni = require('dgeni');
|
||||||
|
|
||||||
module.exports = gulp => {
|
module.exports = gulp => {
|
||||||
gulp.task('docs', [], () => {
|
gulp.task('docs', () => {
|
||||||
try {
|
try {
|
||||||
const ionicPackage = require('./dgeni/dgeni-config')(
|
const ionicPackage = require('./dgeni/dgeni-config')(projectPackage.version),
|
||||||
projectPackage.version
|
|
||||||
),
|
|
||||||
dgeni = new Dgeni([ionicPackage]);
|
dgeni = new Dgeni([ionicPackage]);
|
||||||
|
|
||||||
return dgeni
|
return dgeni.generate().then(docs => console.log(docs.length + ' docs generated'));
|
||||||
.generate()
|
|
||||||
.then(docs => console.log(docs.length + ' docs generated'));
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err.stack);
|
console.log(err.stack);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('readmes', [], function() {
|
gulp.task('readmes', () => {
|
||||||
fs.copySync(
|
fs.copySync(
|
||||||
path.resolve(__dirname, '..', '..', 'README.md'),
|
path.resolve(__dirname, '..', '..', 'README.md'),
|
||||||
path.resolve(__dirname, '..', '..', config.pluginDir, 'core', 'README.md')
|
path.resolve(__dirname, '..', '..', config.pluginDir, 'core', 'README.md')
|
||||||
);
|
);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const ionicPackage = require('./dgeni/dgeni-readmes-config')(
|
const ionicPackage = require('./dgeni/dgeni-readmes-config')(projectPackage.version),
|
||||||
projectPackage.version
|
|
||||||
),
|
|
||||||
dgeni = new Dgeni([ionicPackage]);
|
dgeni = new Dgeni([ionicPackage]);
|
||||||
return dgeni
|
return dgeni.generate().then(docs => console.log(docs.length + ' README files generated'));
|
||||||
.generate()
|
|
||||||
.then(docs => console.log(docs.length + ' README files generated'));
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err.stack);
|
console.log(err.stack);
|
||||||
}
|
}
|
||||||
|
51
src/@ionic-native/plugins/anyline/index.ts
Normal file
51
src/@ionic-native/plugins/anyline/index.ts
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
|
export interface AnylineOptions {
|
||||||
|
// Valid License Key
|
||||||
|
licenseKey: string;
|
||||||
|
|
||||||
|
// Scanning options
|
||||||
|
config: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name Anyline
|
||||||
|
* @description
|
||||||
|
* Anyline provides an easy-to-use SDK for applications to enable Optical Character Recognition (OCR) on mobile devices.
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```typescript
|
||||||
|
* import { Anyline } from '@ionic-native/anyline/ngx';
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* constructor(private anyline: Anyline) { }
|
||||||
|
*
|
||||||
|
* ...
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* this.anyline.scan(options)
|
||||||
|
* .then((res: any) => console.log(res))
|
||||||
|
* .catch((error: any) => console.error(error));
|
||||||
|
*
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
@Plugin({
|
||||||
|
pluginName: 'Anyline',
|
||||||
|
plugin: 'cordova-plugin-anyline',
|
||||||
|
pluginRef: 'Anyline',
|
||||||
|
repo: 'https://github.com/niconaso/anyline-ocr-cordova-module',
|
||||||
|
platforms: ['Android', 'iOS']
|
||||||
|
})
|
||||||
|
@Injectable()
|
||||||
|
export class Anyline extends IonicNativePlugin {
|
||||||
|
/**
|
||||||
|
* Scan
|
||||||
|
* @param options {AnylineOptions} Scanning options
|
||||||
|
* @return {Promise<any>} Returns a promise that resolves when Code is captured
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
scan(options: AnylineOptions): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -27,6 +27,11 @@ export interface BarcodeScannerOptions {
|
|||||||
*/
|
*/
|
||||||
disableSuccessBeep?: boolean;
|
disableSuccessBeep?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable or enable Autorotate. Supported on IOS only.
|
||||||
|
*/
|
||||||
|
shouldAutorotate?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompt text. Supported on Android only.
|
* Prompt text. Supported on Android only.
|
||||||
*/
|
*/
|
||||||
@ -55,22 +60,22 @@ export interface BarcodeScannerOptions {
|
|||||||
|
|
||||||
export interface BarcodeScanResult {
|
export interface BarcodeScanResult {
|
||||||
format:
|
format:
|
||||||
| 'QR_CODE'
|
| 'QR_CODE'
|
||||||
| 'DATA_MATRIX'
|
| 'DATA_MATRIX'
|
||||||
| 'UPC_E'
|
| 'UPC_E'
|
||||||
| 'UPC_A'
|
| 'UPC_A'
|
||||||
| 'EAN_8'
|
| 'EAN_8'
|
||||||
| 'EAN_13'
|
| 'EAN_13'
|
||||||
| 'CODE_128'
|
| 'CODE_128'
|
||||||
| 'CODE_39'
|
| 'CODE_39'
|
||||||
| 'CODE_93'
|
| 'CODE_93'
|
||||||
| 'CODABAR'
|
| 'CODABAR'
|
||||||
| 'ITF'
|
| 'ITF'
|
||||||
| 'RSS14'
|
| 'RSS14'
|
||||||
| 'RSS_EXPANDED'
|
| 'RSS_EXPANDED'
|
||||||
| 'PDF_417'
|
| 'PDF_417'
|
||||||
| 'AZTEC'
|
| 'AZTEC'
|
||||||
| 'MSI';
|
| 'MSI';
|
||||||
cancelled: boolean;
|
cancelled: boolean;
|
||||||
text: string;
|
text: string;
|
||||||
}
|
}
|
||||||
@ -116,11 +121,11 @@ export class BarcodeScanner extends IonicNativePlugin {
|
|||||||
PHONE_TYPE: string;
|
PHONE_TYPE: string;
|
||||||
SMS_TYPE: string;
|
SMS_TYPE: string;
|
||||||
} = {
|
} = {
|
||||||
TEXT_TYPE: 'TEXT_TYPE',
|
TEXT_TYPE: 'TEXT_TYPE',
|
||||||
EMAIL_TYPE: 'EMAIL_TYPE',
|
EMAIL_TYPE: 'EMAIL_TYPE',
|
||||||
PHONE_TYPE: 'PHONE_TYPE',
|
PHONE_TYPE: 'PHONE_TYPE',
|
||||||
SMS_TYPE: 'SMS_TYPE'
|
SMS_TYPE: 'SMS_TYPE'
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open the barcode scanner.
|
* Open the barcode scanner.
|
||||||
|
@ -26,8 +26,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
|||||||
pluginName: 'BioCatch',
|
pluginName: 'BioCatch',
|
||||||
plugin: 'cordova-plugin-biocatch',
|
plugin: 'cordova-plugin-biocatch',
|
||||||
pluginRef: 'BioCatch',
|
pluginRef: 'BioCatch',
|
||||||
repo: 'https://bitbucket.org/whisprnd/biocatch-cordova-plugin',
|
repo: 'https://bitbucket.org/carlos_orellana/ionic-plugin',
|
||||||
platforms: ['iOS'],
|
platforms: ['iOS', 'Android'],
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class BioCatch extends IonicNativePlugin {
|
export class BioCatch extends IonicNativePlugin {
|
||||||
|
@ -33,6 +33,9 @@ export interface DeeplinkOptions {
|
|||||||
* @description This plugin handles deeplinks on iOS and Android for both custom URL scheme links
|
* @description This plugin handles deeplinks on iOS and Android for both custom URL scheme links
|
||||||
* and Universal App Links.
|
* and Universal App Links.
|
||||||
*
|
*
|
||||||
|
* Please read the [ionic plugin deeplinks docs](https://github.com/ionic-team/ionic-plugin-deeplinks) for iOS and Android integration.
|
||||||
|
* You must add `universal-links` to your `config.xml` and set up Apple App Site Association (AASA) for iOS and Asset Links for Android.
|
||||||
|
*
|
||||||
* @usage
|
* @usage
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* import { Deeplinks } from '@ionic-native/deeplinks/ngx';
|
* import { Deeplinks } from '@ionic-native/deeplinks/ngx';
|
||||||
|
@ -23,6 +23,11 @@ export interface LineLoginProfile {
|
|||||||
* Line Profile Name
|
* Line Profile Name
|
||||||
*/
|
*/
|
||||||
displayName: string;
|
displayName: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Email
|
||||||
|
*/
|
||||||
|
email?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LineLoginAccessToken {
|
export interface LineLoginAccessToken {
|
||||||
|
72
src/@ionic-native/plugins/theme-detection/index.ts
Normal file
72
src/@ionic-native/plugins/theme-detection/index.ts
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
||||||
|
|
||||||
|
export interface ThemeDetectionResponse {
|
||||||
|
// Boolean value about the status of the request
|
||||||
|
value: boolean;
|
||||||
|
|
||||||
|
// Message for readable usage
|
||||||
|
message: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @beta
|
||||||
|
* @name Theme Detection
|
||||||
|
* @description
|
||||||
|
* Cordova plugin to detect whether dark mode is enabled or not
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```typescript
|
||||||
|
* import { ThemeDetection } from '@ionic-native/theme-detection';
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* constructor(private themeDetection: ThemeDetection) { }
|
||||||
|
*
|
||||||
|
* ...
|
||||||
|
*
|
||||||
|
* this.themeDetection.isAvailable()
|
||||||
|
* .then((res: ThemeDetectionResponse) => {
|
||||||
|
* if(res.value) {
|
||||||
|
* this.themeDetection.isDarkModeEnabled().then((res: ThemeDetectionResponse) => {
|
||||||
|
* console.log(res);
|
||||||
|
* })
|
||||||
|
* .catch((error: any) => console.error(error));
|
||||||
|
* }
|
||||||
|
* })
|
||||||
|
* .catch((error: any) => console.error(error));
|
||||||
|
*
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
@Plugin({
|
||||||
|
pluginName: 'ThemeDetection',
|
||||||
|
plugin: 'cordova-plugin-theme-detection',
|
||||||
|
pluginRef: 'cordova.plugins.ThemeDetection',
|
||||||
|
repo: 'https://github.com/mariusbackes/cordova-plugin-theme-detection',
|
||||||
|
install: 'cordova plugin add cordova-plugin-theme-detection',
|
||||||
|
installVariables: [],
|
||||||
|
platforms: ['iOS']
|
||||||
|
})
|
||||||
|
@Injectable()
|
||||||
|
export class ThemeDetection extends IonicNativePlugin {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return {Promise<ThemeDetectionResponse>}
|
||||||
|
* Returns a promise with an object that has a boolean property which gives information if the detection is available or not
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
isAvailable(): Promise<ThemeDetectionResponse> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return {Promise<ThemeDetectionResponse>}
|
||||||
|
* Returns a promise with an object that has a boolean property which gives information if dark mode is enabled or not
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
isDarkModeEnabled(): Promise<ThemeDetectionResponse> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user