mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
Removed rollbar - unmaintained
This commit is contained in:
parent
2badee520a
commit
1d30b9f7ac
@ -1,42 +0,0 @@
|
|||||||
import { Injectable } from '@angular/core';
|
|
||||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @beta
|
|
||||||
* @name Rollbar
|
|
||||||
* @description
|
|
||||||
* This plugin adds [Rollbar](https://rollbar.com/) App monitoring to your application
|
|
||||||
*
|
|
||||||
* @usage
|
|
||||||
* ```typescript
|
|
||||||
* import { Rollbar } from '@ionic-native/rollbar/ngx';
|
|
||||||
*
|
|
||||||
* constructor(private rollbar: Rollbar) { }
|
|
||||||
*
|
|
||||||
* ...
|
|
||||||
*
|
|
||||||
* this.rollbar.init();
|
|
||||||
*
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
@Plugin({
|
|
||||||
pluginName: 'Rollbar',
|
|
||||||
plugin: 'resgrid-cordova-plugins-rollbar',
|
|
||||||
pluginRef: 'cordova.plugins.Rollbar',
|
|
||||||
repo: 'https://github.com/Resgrid/cordova-plugins-rollbar',
|
|
||||||
install:
|
|
||||||
'ionic cordova plugin add resgrid-cordova-plugins-rollbar --variable ROLLBAR_ACCESS_TOKEN="YOUR_ROLLBAR_ACCEESS_TOKEN" --variable ROLLBAR_ENVIRONMENT="ROLLBAR_ENVIRONMENT"',
|
|
||||||
installVariables: ['ROLLBAR_ACCESS_TOKEN', 'ROLLBAR_ENVIRONMENT'],
|
|
||||||
platforms: ['Android', 'iOS'],
|
|
||||||
})
|
|
||||||
@Injectable()
|
|
||||||
export class Rollbar extends IonicNativePlugin {
|
|
||||||
/**
|
|
||||||
* This function initializes the monitoring of your application
|
|
||||||
* @return {Promise<any>} Returns a promise that resolves when the plugin successfully initializes
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
init(): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user