This repository has been archived by the owner on May 3, 2023. It is now read-only.
forked from emilyemorehouse/cordova-plugin-rollbar
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugin.xml
87 lines (72 loc) · 3.81 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-shipt-rollbar"
version="1.1.0">
<name>Rollbar</name>
<description>
This plugin adds Rollbar App monitoring to your application. Currently supports iOS and Android. This plugin was created by Resgrid for use in our Ionic applications. You need to subscribe to the Rollbar service to use the plugin and make sure to set the ROLLBAR_ACCESS_TOKEN and ROLLBAR_ENVIRONMENT variables on install.
</description>
<license>Apache 2.0</license>
<keywords>rollbar, crash, monitor, apm, error, exception, performance</keywords>
<engines>
<engine name="cordova" version=">=3.3.0" />
</engines>
<!-- JavaScript interface -->
<js-module src="www/rollbar.js" name="RollbarJSInterface">
<clobbers target="cordova.plugins.Rollbar" />
</js-module>
<!-- ios -->
<platform name="ios">
<preference name="ROLLBAR_ACCESS_TOKEN" />
<preference name="ROLLBAR_ENVIRONMENT" />
<config-file target="config.xml" parent="/*">
<feature name="CDVRollbar">
<param name="ios-package" value="CDVRollbar" />
<param name="onload" value="true" />
</feature>
<plugin name="CDVRollbar" value="CDVRollbar"/>
</config-file>
<header-file src="src/ios/CDVRollbar.h" />
<source-file src="src/ios/CDVRollbar.m" />
<config-file target="*-Info.plist" parent="RollbarAccessToken">
<string>$ROLLBAR_ACCESS_TOKEN</string>
</config-file>
<config-file target="*-Info.plist" parent="RollbarEnvironment">
<string>$ROLLBAR_ENVIRONMENT</string>
</config-file>
<!-- CrashReporter Lib -->
<framework src="src/ios/CrashReporter.framework" custom="true" />
<!-- Rollbar Lib -->
<framework src="src/ios/Rollbar.framework" custom="true" />
</platform>
<!-- android -->
<platform name="android">
<preference name="ROLLBAR_ACCESS_TOKEN" />
<preference name="ROLLBAR_ENVIRONMENT" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CDVRollbar">
<param name="android-package" value="resgrid.cordova.plugins.rollbar.CDVRollbar" />
<param name="onload" value="true" />
</feature>
</config-file>
<source-file src="src/android/res/values/rollbar.xml" target-dir="res/values/" />
<config-file target="app/src/main/res/values/rollbar.xml" parent="/*">
<string name="rollbar_access_token">$ROLLBAR_ACCESS_TOKEN</string>
<string name="rollbar_environment">$ROLLBAR_ENVIRONMENT</string>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<meta-data android:name="cordova.plugin.rollbar.AccessToken" android:value="@string/rollbar_access_token"/>
<meta-data android:name="cordova.plugin.rollbar.Environment" android:value="@string/rollbar_environment"/>
<!-- PhoneGap adds the INTERNET permission by itself -->
<uses-permission android:name="android.permission.READ_LOGS"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.GET_TASKS"/>
</config-file>
<!-- copy Rollbar Lib -->
<source-file src="src/android/RollbarSDK/rollbar-android-0.1.2.jar" target-dir="libs/" framework="true"/>
<!-- cordova plugin src files -->
<source-file src="src/android/resgrid/cordova/plugins/CDVRollbar.java" target-dir="src/resgrid/cordova/plugins/rollbar" />
</platform>
</plugin>