-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathplugin.xml
75 lines (67 loc) · 3.01 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 xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-baidumobstat" version="1.0.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>BaiduMobStat</name>
<description>Cordova Baidu Mobile Analysis Plugin</description>
<keywords>cordova,baidu,mobile,analysis,baidumobstat</keywords>
<js-module src="www/BaiduMobStat.js" name="BaiduMobStat">
<clobbers target="BaiduMobStat"/>
</js-module>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BaiduMobStat">
<param name="ios-package" value="CDVBaiduMobStat"/>
</feature>
</config-file>
<header-file src="src/ios/CDVBaiduMobStat.h"/>
<source-file src="src/ios/CDVBaiduMobStat.m"/>
</platform>
<platform name="android">
<framework src="src/android/plugin.gradle" custom="true" type="gradleReference"/>
<config-file target="config.xml" parent="/*">
<feature name="BaiduMobStat">
<param name="android-package" value="com.baidu.mobstat.BaiduMobStat"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data
android:name="BaiduMobAd_STAT_ID"
android:value="test_appkey" />
<meta-data
android:name="BaiduMobAd_CHANNEL"
android:value="test channel" />
<meta-data
android:name="BaiduMobAd_EXCEPTION_LOG"
android:value="true" />
<meta-data
android:name="BaiduMobAd_SEND_STRATEGY"
android:value="APP_START" />
<meta-data
android:name="BaiduMobAd_ONLY_WIFI"
android:value="false" />
<meta-data
android:name="BaiduMobAd_CELL_LOCATION"
android:value="true" />
<meta-data
android:name="BaiduMobAd_GPS_LOCATION"
android:value="true" />
<meta-data
android:name="BaiduMobAd_WIFI_LOCATION"
android:value="true" />
</config-file>
<source-file src="src/android/BaiduMobStat.java"
target-dir="src/com/baidu/mobstat"/>
</platform>
</plugin>