-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
75 lines (62 loc) · 2.98 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-appcenter-analytics"
version="0.5.2"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>App Center Analytics for Cordova</name>
<description>
Provides Microsoft Azure App Center Analytics client for Cordova
</description>
<license>MIT</license>
<keywords>microsoft, azure, app center, analytics</keywords>
<repo>https://github.com/Microsoft/appcenter-sdk-cordova</repo>
<issue>https://github.com/Microsoft/appcenter-sdk-cordova/issues</issue>
<!-- Required gradle functionality support -->
<engine name="cordova-android" version=">=4.1.0" />
<!-- Cordova 6.4.0 and iOS 4.3.0 are required for Cocoapods support -->
<engine name="cordova" version=">=6.4.0" />
<engine name="cordova-ios" version=">=4.3.0" />
<dependency id="cordova-plugin-appcenter-shared" version="0.5.2"/>
<js-module name="Analytics" src="www/Analytics.js">
<clobbers target="AppCenter.Analytics" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AppCenterAnalytics">
<param name="onload" value="true" />
<param name="android-package"
value="com.microsoft.azure.mobile.cordova.AppCenterAnalyticsPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!-- TODO: check if permission below is needed -->
<uses-permission android:name="android.permission.INTERNET" />
</config-file>
<!-- https://mvnrepository.com/artifact/com.microsoft.appcenter/appcenter-analytics -->
<framework src="com.microsoft.appcenter:appcenter-analytics:5.0.0" />
<source-file src="src/android/AppCenterAnalyticsPlugin.java"
target-dir="src/com/microsoft/azure/mobile/cordova" />
<source-file src="src/android/AnalyticsUtils.java"
target-dir="src/com/microsoft/azure/mobile/cordova" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="AppCenterAnalytics">
<param name="ios-package" value="AppCenterAnalyticsPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/AppCenterAnalyticsPlugin.h" />
<source-file src="src/ios/AppCenterAnalyticsPlugin.m" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<!-- https://cocoapods.org/pods/AppCenter -->
<pod name="AppCenter" spec="~> 5.0.2" />
<pod name="AppCenter/Analytics" spec="~> 5.0.2" />
</pods>
</podspec>
</platform>
</plugin>