mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-28 22:17:37 +08:00
fix(): build errors
This commit is contained in:
parent
29d668ca2f
commit
f70eaea71e
@ -1,7 +1,4 @@
|
|||||||
import { Injectable } from '@angular/core';
|
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 { Observable } from 'rxjs';
|
||||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/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';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name google-nearby
|
* @name google-nearby
|
||||||
@ -17,7 +17,7 @@ import { Observable } from 'rxjs/Observable';
|
|||||||
* this.googleNearby.publish('Hello')
|
* this.googleNearby.publish('Hello')
|
||||||
* .then((res: any) => console.log(res))
|
* .then((res: any) => console.log(res))
|
||||||
* .catch((error: any) => console.error(error));
|
* .catch((error: any) => console.error(error));
|
||||||
*
|
*
|
||||||
* this.googleNearby.subscribe()
|
* this.googleNearby.subscribe()
|
||||||
* .then((res: any) => console.log(res))
|
* .then((res: any) => console.log(res))
|
||||||
* .catch((error: any) => console.error(error));
|
* .catch((error: any) => console.error(error));
|
||||||
@ -28,13 +28,13 @@ import { Observable } from 'rxjs/Observable';
|
|||||||
plugin: 'cordova-plugin-google-nearby',
|
plugin: 'cordova-plugin-google-nearby',
|
||||||
pluginRef: 'window.nearby',
|
pluginRef: 'window.nearby',
|
||||||
repo: 'https://github.com/hahahannes/cordova-plugin-google-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'],
|
installVariables: ['API_KEY'],
|
||||||
platforms: ['Android']
|
platforms: ['Android']
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class GoogleNearby extends IonicNativePlugin {
|
export class GoogleNearby extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Publish a message
|
* Publish a message
|
||||||
* @param message {string} Message to publish
|
* @param message {string} Message to publish
|
||||||
@ -45,9 +45,9 @@ export class GoogleNearby extends IonicNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subscribe to recieve messages
|
* Subscribe to receive messages
|
||||||
* @return {Observable<any>} Returns an observable that emits recieved messages
|
* @return {Observable<any>} Returns an observable that emits received messages
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
observable: true,
|
observable: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user