Compare commits

..
Author SHA1 Message Date
Daniel SoglandIbby Hadeed 9ebd92ecb9 docs(globalization): mark plugin as deprecated (#2239) 2017-12-28 21:27:53 -05:00
Daniel SoglandIbby Hadeed 8e9907dc53 docs(contact): mark as deprecated (#2238)
* docs(contact): mark as deprecated

* Update index.ts
2017-12-28 21:23:04 -05:00
Jay OrdwayandIbby Hadeed 9990df8953 feat(crop): add targetHeight and targetWidth options (#2213)
Adding support for targetHeight and targetWidth options
2017-12-28 07:11:10 -05:00
Daniel MüllerandIbby Hadeed 98db2e710c docs(): deprecation notice (#2212) 2017-12-28 07:10:34 -05:00
Daniel SoglandIbby Hadeed 23578de056 docs(vibration): remove unsupported platforms (#2234) 2017-12-28 07:10:14 -05:00
Daniel SoglandIbby Hadeed 60d32be095 docs(screen-orientation): remove unsupported platforms (#2233) 2017-12-28 07:10:07 -05:00
Daniel SoglandIbby Hadeed a82b2903d6 docs(statusbar): remove unsupported platforms (#2232) 2017-12-28 07:10:00 -05:00
Daniel SoglandIbby Hadeed aa54444e33 docs(splashscreen): remove unsupported platforms (#2231) 2017-12-28 07:09:52 -05:00
Daniel SoglandIbby Hadeed 292a9c3722 docs(network-information): remove unsupported platforms (#2230) 2017-12-28 07:09:42 -05:00
Daniel SoglandIbby Hadeed eb6aee2d69 docs(media-capture): remove unsupported platforms (#2229) 2017-12-28 07:09:34 -05:00
Daniel SoglandIbby Hadeed e77bce67db docs(media): remove unsupported platforms (#2228) 2017-12-28 07:09:26 -05:00
Daniel SoglandIbby Hadeed ecc46bacf1 docs(in-app-browser): remove unsupported platforms (#2227) 2017-12-28 07:09:17 -05:00
Daniel SoglandIbby Hadeed d256916621 docs(globalization): remove unsupported platforms (#2226)
* docs(globalization): remove unsupported platforms

* Update index.ts
2017-12-28 07:09:04 -05:00
Daniel SoglandIbby Hadeed 5e77ed9317 docs(geolocation): remove unsupported platforms (#2225)
* docs(geolocation): remove unsupported platforms

* Update index.ts
2017-12-28 07:08:54 -05:00
Daniel SoglandIbby Hadeed 6f7cdf6214 docs(file): remove unsupported platforms (#2224) 2017-12-28 07:08:40 -05:00
Daniel SoglandIbby Hadeed ac0015b91d docs(dialogs): remove unsupported platforms (#2223) 2017-12-28 07:08:09 -05:00
Daniel SoglandIbby Hadeed 35f6c15ad4 docs(device): remove unsupported platforms (#2222)
* docs(device): remove unsupported platforms

* Update index.ts
2017-12-28 07:07:48 -05:00
Daniel SoglandIbby Hadeed f43a657fdd docs(contacts): remove unsupported platforms (#2221) 2017-12-28 07:07:39 -05:00
Daniel SoglandIbby Hadeed c0c044bf89 docs(battery-status): remove unsupported platforms (#2218) 2017-12-28 07:07:26 -05:00
Daniel SoglandIbby Hadeed 8179805ad9 docs(camera): remove unsupported platforms (#2220) 2017-12-28 07:07:09 -05:00
Ibby Hadeed 995fd56894 fix(push): fix finish method 2017-12-11 19:34:44 -05:00
Ibby Hadeed 9d70ec025d chore(): update changelog 2017-12-11 19:30:24 -05:00
Ibby Hadeed 8d4406ae82 4.5.1 2017-12-11 19:30:16 -05:00
Ibby Hadeed ca922761b6 Update 2017-12-11 19:30:07 -05:00
Ibby Hadeed 3bb669b6ba 4.6.0 2017-12-11 19:27:22 -05:00
Ibby Hadeed 6cd97ca0ee fix(core): fix issue with CordovaFunctionOverride decorator
Decorator should not check if the method exists, only if the plugin exists
2017-12-11 19:26:41 -05:00
23 changed files with 68 additions and 42 deletions
+10
View File
@@ -1,3 +1,13 @@
<a name="4.5.1"></a>
## [4.5.1](https://github.com/ionic-team/ionic-native/compare/v4.5.0...v4.5.1) (2017-12-12)
### Bug Fixes
* **core:** fix issue with CordovaFunctionOverride decorator ([6cd97ca](https://github.com/ionic-team/ionic-native/commit/6cd97ca))
<a name="4.5.0"></a>
# [4.5.0](https://github.com/ionic-team/ionic-native/compare/v4.4.2...v4.5.0) (2017-12-08)
+21 -21
View File
@@ -1,6 +1,6 @@
{
"name": "ionic-native",
"version": "4.5.0",
"version": "4.5.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -60,6 +60,16 @@
"integrity": "sha512-El3+WJk2D/ppWNd2X05aiP5l2k4EwF7KwheknQZls+I26eSICoWRhRIJ56jGgw2dqNGQ5LtNajmBU2ajS28EvQ==",
"dev": true
},
"JSONStream": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.1.tgz",
"integrity": "sha1-cH92HgHa6eFvG8+TcDt4xwlmV5o=",
"dev": true,
"requires": {
"jsonparse": "1.3.1",
"through": "2.3.8"
}
},
"abbrev": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz",
@@ -1581,8 +1591,8 @@
"integrity": "sha1-HxXOa4RPfKQUlcgZDAgzwwuLFpM=",
"dev": true,
"requires": {
"is-text-path": "1.0.1",
"JSONStream": "1.3.1",
"is-text-path": "1.0.1",
"lodash": "4.17.4",
"meow": "3.7.0",
"split2": "2.2.0",
@@ -3866,16 +3876,6 @@
"integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=",
"dev": true
},
"JSONStream": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.1.tgz",
"integrity": "sha1-cH92HgHa6eFvG8+TcDt4xwlmV5o=",
"dev": true,
"requires": {
"jsonparse": "1.3.1",
"through": "2.3.8"
}
},
"jsprim": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
@@ -6242,15 +6242,6 @@
}
}
},
"string_decoder": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz",
"integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==",
"dev": true,
"requires": {
"safe-buffer": "5.1.1"
}
},
"string-width": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
@@ -6262,6 +6253,15 @@
"strip-ansi": "3.0.1"
}
},
"string_decoder": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz",
"integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==",
"dev": true,
"requires": {
"safe-buffer": "5.1.1"
}
},
"stringmap": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/stringmap/-/stringmap-0.2.2.tgz",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ionic-native",
"version": "4.5.0",
"version": "4.5.1",
"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)",
+1 -1
View File
@@ -230,7 +230,7 @@ export function wrapEventObservable(event: string, element: any = window): Obser
export function overrideFunction(pluginObj: any, methodName: string, args: any[], opts: any = {}): Observable<any> {
return new Observable(observer => {
const availabilityCheck = checkAvailability(pluginObj, methodName);
const availabilityCheck = checkAvailability(pluginObj, null, pluginObj.constructor.getPluginName());
if (availabilityCheck === true) {
const pluginInstance = getPlugin(pluginObj.constructor.getPluginRef());
@@ -49,7 +49,7 @@ export interface BatteryStatusResponse {
plugin: 'cordova-plugin-battery-status',
pluginRef: 'navigator.battery',
repo: 'https://github.com/apache/cordova-plugin-battery-status',
platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows']
platforms: ['iOS', 'Android', 'Windows', 'Browser']
})
@Injectable()
export class BatteryStatus extends IonicNativePlugin {
+1 -1
View File
@@ -161,7 +161,7 @@ export enum Direction {
plugin: 'cordova-plugin-camera',
pluginRef: 'navigator.camera',
repo: 'https://github.com/apache/cordova-plugin-camera',
platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone 8']
platforms: ['Android', 'Browser', 'iOS', 'Windows']
})
@Injectable()
export class Camera extends IonicNativePlugin {
+5 -1
View File
@@ -261,6 +261,10 @@ export class ContactFindOptions implements IContactFindOptions {
* @description
* Access and manage Contacts on the device.
*
* @deprecated
* This plugin is being deprecated. No more work will be done on this plugin by the Cordova development community.
* You can continue to use this plugin and it should work as-is in the future but any more arising issues will not be fixed by the Cordova community.
*
* @usage
*
* ```typescript
@@ -294,7 +298,7 @@ export class ContactFindOptions implements IContactFindOptions {
plugin: 'cordova-plugin-contacts',
pluginRef: 'navigator.contacts',
repo: 'https://github.com/apache/cordova-plugin-contacts',
platforms: ['Android', 'BlackBerry 10', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone 8']
platforms: ['Android', 'iOS', 'Windows']
})
@Injectable()
export class Contacts extends IonicNativePlugin {
+1 -1
View File
@@ -38,6 +38,6 @@ export class Crop extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
crop(pathToImage: string, options?: { quality: number }): Promise<string> { return; }
crop(pathToImage: string, options?: { quality: number, targetHeight: number, targetWidth: number }): Promise<string> { return; }
}
+1 -1
View File
@@ -24,7 +24,7 @@ declare const window: any;
plugin: 'cordova-plugin-device',
pluginRef: 'device',
repo: 'https://github.com/apache/cordova-plugin-device',
platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'macOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows']
})
@Injectable()
export class Device extends IonicNativePlugin {
+1 -1
View File
@@ -46,7 +46,7 @@ export interface DialogsPromptCallback {
plugin: 'cordova-plugin-dialogs',
pluginRef: 'navigator.notification',
repo: 'https://github.com/apache/cordova-plugin-dialogs',
platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows']
})
@Injectable()
export class Dialogs extends IonicNativePlugin {
@@ -112,6 +112,10 @@ export interface FileTransferError {
* @description
* This plugin allows you to upload and download files.
*
* @deprecated
* This plugin has been deprecated in favor of XHR2
* https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html
*
* @usage
* ```typescript
* import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer';
+1 -1
View File
@@ -620,7 +620,7 @@ declare const window: Window;
plugin: 'cordova-plugin-file',
pluginRef: 'cordova.file',
repo: 'https://github.com/apache/cordova-plugin-file',
platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'macOS', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows']
})
@Injectable()
export class File extends IonicNativePlugin {
@@ -155,7 +155,7 @@ export interface GeolocationOptions {
repo: 'https://github.com/apache/cordova-plugin-geolocation',
install: 'ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"',
installVariables: ['GEOLOCATION_USAGE_DESCRIPTION'],
platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows']
})
@Injectable()
export class Geolocation extends IonicNativePlugin {
@@ -4,6 +4,12 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
/**
* @name Globalization
* @description
* This plugin obtains information and performs operations specific to the user's locale, language, and timezone.
*
* @deprecated
* With the [ECMA Internationalization API](https://www.ecma-international.org/ecma-402/1.0/) now supported on iOS, Android and Windows devices, this plugin is not required any more.
* Migrating from this plugin to the [ECMA Internationalization API](https://www.ecma-international.org/ecma-402/1.0/) is explained in this [Cordova blog post](https://cordova.apache.org/news/2017/11/20/migrate-from-cordova-globalization-plugin.html).
*
* @usage
* ```typescript
* import { Globalization } from '@ionic-native/globalization';
@@ -26,7 +32,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
plugin: 'cordova-plugin-globalization',
pluginRef: 'navigator.globalization',
repo: 'https://github.com/apache/cordova-plugin-globalization',
platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows']
})
@Injectable()
export class Globalization extends IonicNativePlugin {
@@ -181,7 +181,7 @@ export class InAppBrowserObject {
plugin: 'cordova-plugin-inappbrowser',
pluginRef: 'cordova.InAppBrowser',
repo: 'https://github.com/apache/cordova-plugin-inappbrowser',
platforms: ['AmazonFire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'macOS', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['AmazonFire OS', 'Android', 'Browser', 'iOS', 'macOS', 'Windows']
})
@Injectable()
export class InAppBrowser extends IonicNativePlugin {
@@ -147,7 +147,7 @@ export interface ConfigurationData {
plugin: 'cordova-plugin-media-capture',
pluginRef: 'navigator.device.capture',
repo: 'https://github.com/apache/cordova-plugin-media-capture',
platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Android', 'Browser', 'iOS', 'Windows']
})
@Injectable()
export class MediaCapture extends IonicNativePlugin {
+1 -1
View File
@@ -284,7 +284,7 @@ export type MediaErrorCallback = (error: MediaError) => void;
repo: 'https://github.com/apache/cordova-plugin-media',
plugin: 'cordova-plugin-media',
pluginRef: 'Media',
platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Android', 'Browser', 'iOS', 'Windows']
})
@Injectable()
export class Media extends IonicNativePlugin {
+1 -1
View File
@@ -53,7 +53,7 @@ declare const navigator: any;
plugin: 'cordova-plugin-network-information',
pluginRef: 'navigator.connection',
repo: 'https://github.com/apache/cordova-plugin-network-information',
platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows']
})
@Injectable()
export class Network extends IonicNativePlugin {
+4 -2
View File
@@ -414,9 +414,11 @@ export class PushObject {
* iOS only
* Tells the OS that you are done processing a background push notification.
* successHandler gets called when background push processing is successfully completed.
* @param id
* @param [id]
*/
@CordovaInstance()
@CordovaInstance({
callbackOrder: 'reverse'
})
finish(id?: string): Promise<any> { return; }
/**
@@ -55,7 +55,7 @@ import { Observable } from 'rxjs/Observable';
plugin: 'cordova-plugin-screen-orientation',
pluginRef: 'screen.orientation',
repo: 'https://github.com/apache/cordova-plugin-screen-orientation',
platforms: ['Android', 'BlackBerry 10', 'iOS', 'Windows']
platforms: ['Android', 'iOS', 'Windows']
})
@Injectable()
export class ScreenOrientation extends IonicNativePlugin {
@@ -23,7 +23,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
plugin: 'cordova-plugin-splashscreen',
pluginRef: 'navigator.splashscreen',
repo: 'https://github.com/apache/cordova-plugin-splashscreen',
platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Amazon Fire OS', 'Android', 'iOS', 'Windows']
})
@Injectable()
export class SplashScreen extends IonicNativePlugin {
@@ -29,7 +29,7 @@ import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-nati
plugin: 'cordova-plugin-statusbar',
pluginRef: 'StatusBar',
repo: 'https://github.com/apache/cordova-plugin-statusbar',
platforms: ['Android', 'iOS', 'Windows', 'Windows Phone']
platforms: ['Android', 'iOS', 'Windows']
})
@Injectable()
export class StatusBar extends IonicNativePlugin {
+1 -1
View File
@@ -33,7 +33,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
plugin: 'cordova-plugin-vibration',
pluginRef: 'navigator',
repo: 'https://github.com/apache/cordova-plugin-vibration',
platforms: ['Android', 'BlackBerry 10', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone']
platforms: ['Android', 'iOS', 'Windows']
})
@Injectable()
export class Vibration extends IonicNativePlugin {