diff --git a/src/@ionic-native/plugins/apple-pay/index.ts b/src/@ionic-native/plugins/apple-pay/index.ts index afb182d8c..42f4a3bbc 100644 --- a/src/@ionic-native/plugins/apple-pay/index.ts +++ b/src/@ionic-native/plugins/apple-pay/index.ts @@ -1,7 +1,4 @@ import { Injectable } from '@angular/core'; -import { Observable } from 'rxjs/Observable'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; -import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index ce11b0681..ac5e17004 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -1,7 +1,5 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; /** diff --git a/src/@ionic-native/plugins/google-nearby/index.ts b/src/@ionic-native/plugins/google-nearby/index.ts index 3ef6e97b0..fa1f3c5e2 100644 --- a/src/@ionic-native/plugins/google-nearby/index.ts +++ b/src/@ionic-native/plugins/google-nearby/index.ts @@ -1,6 +1,6 @@ import { Injectable } from '@angular/core'; import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; +import { Observable } from 'rxjs'; /** * @name google-nearby @@ -17,7 +17,7 @@ import { Observable } from 'rxjs/Observable'; * this.googleNearby.publish('Hello') * .then((res: any) => console.log(res)) * .catch((error: any) => console.error(error)); - * + * * this.googleNearby.subscribe() * .then((res: any) => console.log(res)) * .catch((error: any) => console.error(error)); @@ -28,13 +28,13 @@ import { Observable } from 'rxjs/Observable'; plugin: 'cordova-plugin-google-nearby', pluginRef: 'window.nearby', repo: 'https://github.com/hahahannes/cordova-plugin-google-nearby', - install: 'ionic cordova plugin add cordova-plugin-google-nearby --variable API_KEY="123456789"', + install: + 'ionic cordova plugin add cordova-plugin-google-nearby --variable API_KEY="123456789"', installVariables: ['API_KEY'], platforms: ['Android'] }) @Injectable() export class GoogleNearby extends IonicNativePlugin { - /** * Publish a message * @param message {string} Message to publish @@ -45,9 +45,9 @@ export class GoogleNearby extends IonicNativePlugin { return; } -/** - * Subscribe to recieve messages - * @return {Observable} Returns an observable that emits recieved messages + /** + * Subscribe to receive messages + * @return {Observable} Returns an observable that emits received messages */ @Cordova({ observable: true,