-
Notifications
You must be signed in to change notification settings - Fork 7
/
plugin.xml
72 lines (62 loc) · 3.11 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="rollbar-cordova" version="0.1.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>RollbarCordova</name>
<js-module name="RollbarProxy" src="www/RollbarProxy.js">
<clobbers target="RollbarProxy" />
</js-module>
<js-module name="Rollbar" src="lib/rollbar.js">
<clobbers target="Rollbar" />
</js-module>
// the minimum cordova version which supports this plugin
<engines>
<engine name="cordova" version=">=3.6.0"></engine>
</engines>
<platform name="android">
<!-- production reference to rollbar-android -->
<framework src="com.rollbar:rollbar-android:1.+"/>
<!-- local reference to rollbar-android, used only in development of rollbar-android
<framework src="org.slf4j:slf4j-log4j12:+" type="gradleReference" />
<source-file src="dev/rollbar-web.jar" target-dir="libs"/>
<source-file src="dev/rollbar-logback.jar" target-dir="libs"/>
<source-file src="dev/rollbar-log4j2.jar" target-dir="libs"/>
<source-file src="dev/rollbar-api.jar" target-dir="libs"/>
<source-file src="dev/rollbar-java.jar" target-dir="libs"/>
<source-file src="dev/rollbar-android-release.aar" target-dir="libs"/>
<framework src="dev/rollbar.gradle" custom="true" type="gradleReference" />
-->
<source-file src="src/android/com/rollbar/cordova/RollbarCordova.java"
target-dir="src/com/rollbar/cordova"></source-file>
<config-file target="res/xml/config.xml" parent="/*">
// the feature describes the Java class which we want to use
// the value is the class path where this class can be found
<feature name="RollbarCordova">
<param name="android-package" value="com.rollbar.cordova.RollbarCordova" />
// Plugins are not instantiated until they are first referenced
// by a call from JavaScript, unless onload is set to "true"
<param name="onload" value="true" />
</feature>
</config-file>
</platform>
<platform name="ios">
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<!-- load via cocoapods or git -->
<pod name="Rollbar" spec="~> 1.6.0"/>
<!-- pod name="Rollbar" git="[email protected]:rollbar/rollbar-ios.git" branch="master"/ -->
</pods>
</podspec>
<config-file target="config.xml" parent="/*">
<feature name="RollbarCordova">
<param name="ios-package" value="RollbarCordova" />
// Plugins are not instantiated until they are first referenced
// by a call from JavaScript, unless onload is set to "true"
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/RollbarCordova.h" />
<source-file src="src/ios/RollbarCordova.m" />
</platform>
</plugin>