forked from newrelic/newrelic-cordova-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
87 lines (71 loc) · 3.1 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
<!--
Copyright (c) 2022-present New Relic Corporation. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="newrelic-cordova-plugin" version="6.0.0">
<name>NewRelic</name>
<description>New Relic Cordova Plugin for iOS and Android</description>
<author>New Relic</author>
<license>New Relic</license>
<keywords>cordova,newrelic,monitoring,ios,android</keywords>
<engines>
<engine name="cordova" version=">=4.0.0" />
<engine name="cordova-ios" version=">=4.0.0" />
<engine name="cordova-android" version=">=5.0.0" />
</engines>
<preference name="PLUGIN_VERSION" default="6.0.0" />
<platform name="ios">
<preference name="IOS_APP_TOKEN" default="x" />
<js-module name="NewRelic" src="www/js/newrelic.js">
<clobbers target="NewRelic" />
</js-module>
<config-file target="config.xml" parent="/*">
<feature name="NewRelicCordovaPlugin">
<preference name="IOS_APP_TOKEN" value="$IOS_APP_TOKEN" />
<preference name="PLUGIN_VERSION" value="$PLUGIN_VERSION" />
<param name="ios-package" value="NewRelicCordovaPlugin" onload="true" />
</feature>
</config-file>
<header-file src="src/ios/NewRelicCordovaPlugin.h" />
<source-file src="src/ios/NewRelicCordovaPlugin.m" />
<framework src="CoreTelephony.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="libz.dylib" />
<framework src="libc++.dylib" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/" />
</config>
<pods use-frameworks="true">
<pod name="NewRelicAgent" spec="7.4.0" />
</pods>
</podspec>
<hook type="before_plugin_uninstall" src="hooks/ios/before_plugin_uninstall.js" />
<hook type="after_plugin_install" src="hooks/ios/after_plugin_install.js" />
</platform>
<platform name="android">
<preference name="ANDROID_APP_TOKEN" default="x" />
<preference name="ANDROID_AGENT_VER" default="6.9.0" />
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</config-file>
<js-module name="NewRelic" src="www/js/newrelic.js">
<clobbers target="NewRelic" />
</js-module>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="NewRelicCordovaPlugin">
<param name="android-package" value="com.newrelic.cordova.plugin.NewRelicCordovaPlugin" />
<param name="onload" value="true" />
</feature>
<preference name="ANDROID_APP_TOKEN" value="$ANDROID_APP_TOKEN" />
<preference name="PLUGIN_VERSION" value="$PLUGIN_VERSION" />
</config-file>
<source-file src="src/android/NewRelicCordovaPlugin.java"
target-dir="src/com/newrelic/cordova/plugin" />
<hook type="before_plugin_uninstall" src="hooks/android/before_plugin_uninstall.js" />
<hook type="after_plugin_install" src="hooks/android/after_plugin_install.js" />
</platform>
</plugin>