Merge commit 'a2f5acb48c8d197fad55276ffcee7eee5cf3065f'

# Conflicts:
#	src/@ionic-native/plugins/unvired-cordova-sdk/index.ts
This commit is contained in:
Srinidhi Anand Rao 2019-07-21 19:32:45 +05:30
commit 50408b08c6
11 changed files with 2815 additions and 927 deletions

View File

@ -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)

View File

@ -3,7 +3,7 @@ jobs:
build:
working_directory: ~/ionic-native/
docker:
- image: node:10
- image: node:12
steps:
- checkout
- restore_cache:

3505
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"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",
"homepage": "https://ionicframework.com/",
"author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
@ -28,25 +28,25 @@
"@angular/compiler-cli": "^7.2.15",
"@angular/core": "^7.2.15",
"@types/cordova": "0.0.34",
"@types/fs-extra": "^7.0.0",
"@types/fs-extra": "^8.0.0",
"@types/jest": "^24.0.15",
"@types/lodash": "^4.14.135",
"@types/node": "^10.14.10",
"@types/lodash": "^4.14.136",
"@types/node": "^12.6.2",
"@types/rimraf": "^2.0.2",
"@types/webpack": "^4.4.34",
"ajv": "^6.10.0",
"ajv": "^6.10.1",
"async-promise-queue": "^1.0.5",
"conventional-changelog-cli": "^2.0.21",
"cz-conventional-changelog": "^2.1.0",
"dgeni": "^0.4.12",
"dgeni-packages": "0.16.10",
"fs-extra": "^8.1.0",
"gulp": "3.9.1",
"gulp": "^4.0.2",
"gulp-rename": "^1.4.0",
"gulp-replace": "^1.0.0",
"gulp-tslint": "^8.1.4",
"jest": "^24.8.0",
"lodash": "^4.17.11",
"lodash": "^4.17.14",
"minimist": "1.2.0",
"natives": "^1.1.6",
"rimraf": "^2.6.3",
@ -59,7 +59,7 @@
"typescript": "3.2.4",
"uglifyjs-webpack-plugin": "^2.1.3",
"unminified-webpack-plugin": "^2.0.0",
"webpack": "^4.35.2",
"webpack": "^4.35.3",
"winston": "^3.2.1",
"zone.js": "^0.8.29"
},

View File

@ -6,35 +6,27 @@ const config = require('./config.json'),
Dgeni = require('dgeni');
module.exports = gulp => {
gulp.task('docs', [], () => {
gulp.task('docs', () => {
try {
const ionicPackage = require('./dgeni/dgeni-config')(
projectPackage.version
),
const ionicPackage = require('./dgeni/dgeni-config')(projectPackage.version),
dgeni = new Dgeni([ionicPackage]);
return dgeni
.generate()
.then(docs => console.log(docs.length + ' docs generated'));
return dgeni.generate().then(docs => console.log(docs.length + ' docs generated'));
} catch (err) {
console.log(err.stack);
}
});
gulp.task('readmes', [], function() {
gulp.task('readmes', () => {
fs.copySync(
path.resolve(__dirname, '..', '..', 'README.md'),
path.resolve(__dirname, '..', '..', config.pluginDir, 'core', 'README.md')
);
try {
const ionicPackage = require('./dgeni/dgeni-readmes-config')(
projectPackage.version
),
const ionicPackage = require('./dgeni/dgeni-readmes-config')(projectPackage.version),
dgeni = new Dgeni([ionicPackage]);
return dgeni
.generate()
.then(docs => console.log(docs.length + ' README files generated'));
return dgeni.generate().then(docs => console.log(docs.length + ' README files generated'));
} catch (err) {
console.log(err.stack);
}

View 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;
}
}

View File

@ -27,6 +27,11 @@ export interface BarcodeScannerOptions {
*/
disableSuccessBeep?: boolean;
/**
* Disable or enable Autorotate. Supported on IOS only.
*/
shouldAutorotate?: boolean;
/**
* Prompt text. Supported on Android only.
*/
@ -55,22 +60,22 @@ export interface BarcodeScannerOptions {
export interface BarcodeScanResult {
format:
| 'QR_CODE'
| 'DATA_MATRIX'
| 'UPC_E'
| 'UPC_A'
| 'EAN_8'
| 'EAN_13'
| 'CODE_128'
| 'CODE_39'
| 'CODE_93'
| 'CODABAR'
| 'ITF'
| 'RSS14'
| 'RSS_EXPANDED'
| 'PDF_417'
| 'AZTEC'
| 'MSI';
| 'QR_CODE'
| 'DATA_MATRIX'
| 'UPC_E'
| 'UPC_A'
| 'EAN_8'
| 'EAN_13'
| 'CODE_128'
| 'CODE_39'
| 'CODE_93'
| 'CODABAR'
| 'ITF'
| 'RSS14'
| 'RSS_EXPANDED'
| 'PDF_417'
| 'AZTEC'
| 'MSI';
cancelled: boolean;
text: string;
}
@ -116,11 +121,11 @@ export class BarcodeScanner extends IonicNativePlugin {
PHONE_TYPE: string;
SMS_TYPE: string;
} = {
TEXT_TYPE: 'TEXT_TYPE',
EMAIL_TYPE: 'EMAIL_TYPE',
PHONE_TYPE: 'PHONE_TYPE',
SMS_TYPE: 'SMS_TYPE'
};
TEXT_TYPE: 'TEXT_TYPE',
EMAIL_TYPE: 'EMAIL_TYPE',
PHONE_TYPE: 'PHONE_TYPE',
SMS_TYPE: 'SMS_TYPE'
};
/**
* Open the barcode scanner.

View File

@ -26,8 +26,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
pluginName: 'BioCatch',
plugin: 'cordova-plugin-biocatch',
pluginRef: 'BioCatch',
repo: 'https://bitbucket.org/whisprnd/biocatch-cordova-plugin',
platforms: ['iOS'],
repo: 'https://bitbucket.org/carlos_orellana/ionic-plugin',
platforms: ['iOS', 'Android'],
})
@Injectable()
export class BioCatch extends IonicNativePlugin {

View File

@ -33,6 +33,9 @@ export interface DeeplinkOptions {
* @description This plugin handles deeplinks on iOS and Android for both custom URL scheme 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
* ```typescript
* import { Deeplinks } from '@ionic-native/deeplinks/ngx';

View File

@ -23,6 +23,11 @@ export interface LineLoginProfile {
* Line Profile Name
*/
displayName: string;
/**
* Email
*/
email?: string;
}
export interface LineLoginAccessToken {

View 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;
}
}