-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
executable file
·59 lines (55 loc) · 2.68 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.qdc.plugins.umeng"
version="0.0.1">
<name>UmengAnalytics Plugin</name>
<description>
umengAnalytics for cordova plugin
</description>
<author>yyq</author>
<license>Apache 2.0 License</license>
<keywords>umengAnalytics,umeng,analytics</keywords>
<repo>https://github.com/yyqangular1/cordova-qdc-umeng-analytics.git</repo>
<issue>https://github.com/yyqangular1/cordova-qdc-umeng-analytics/issues</issue>
<engines>
<engine name="cordova" version=">=3.0.0"/>
</engines>
<js-module src="www/UmengAnalyticsPlugin.js" name="UmengAnalyticsPlugin">
<clobbers target="window.plugins.umengAnalyticsPlugin"/>
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="UmengAnalyticsPlugin">
<param name="ios-package" value="UmengAnalyticsPlugin"/>
</feature>
</config-file>
<header-file src="src/ios/MobClick.h" target-dir="src/ios"/>
<source-file src="src/ios/libMobClickLibrary.a" framework="true"/>
<header-file src="src/ios/UmengAnalyticsPlugin.h" />
<source-file src="src/ios/UmengAnalyticsPlugin.m" />
<framework src="libz.dylib" weak="true"/>
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="UmengAnalyticsPlugin">
<param name="android-package" value="com.qdc.plugins.UmengAnalyticsPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="UMENG_CHANNEL" android:value="YOUR_CHANNEL"/>
<meta-data android:name="UMENG_APPKEY" android:value="YOUR_APP_KEY"/>
</config-file>
<source-file src="src/android/umeng-analytics-v5.5.2.jar" target-dir="libs"></source-file>
<source-file src="src/android/UmengAnalyticsPlugin.java"
target-dir="src/com/qdc/plugins/UmengAnalyticsPlugin/"></source-file>
</platform>
</plugin>