fix(plugins): fix rxjs 6 build errors

#2439
This commit is contained in:
Daniel
2018-04-05 21:44:19 +02:00
parent 48b0f16ed9
commit 3ced31ed2a
54 changed files with 580 additions and 393 deletions
@@ -1,6 +1,11 @@
import { Injectable } from '@angular/core';
import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
import {
Cordova,
CordovaProperty,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
import { Observable } from 'rxjs';
/**
* @name Screen Orientation
@@ -59,7 +64,6 @@ import { Observable } from 'rxjs/Observable';
})
@Injectable()
export class ScreenOrientation extends IonicNativePlugin {
/**
* Convenience enum for possible orientations
*/
@@ -75,8 +79,7 @@ export class ScreenOrientation extends IonicNativePlugin {
/**
* Get the current orientation of the device.
*/
@CordovaProperty()
type: string;
@CordovaProperty() type: string;
/**
* Listen to orientation change event
@@ -105,7 +108,5 @@ export class ScreenOrientation extends IonicNativePlugin {
* Unlock and allow all orientations.
*/
@Cordova({ sync: true })
unlock(): void {
}
unlock(): void {}
}