-
Notifications
You must be signed in to change notification settings - Fork 39
/
plugin.xml
88 lines (83 loc) · 4.36 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
88
<?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="cordova-plugin-leancloud" version="0.1.1">
<name>Cordova LeanCloud</name>
<js-module src="www/LeanPush.js" name="LeanPush">
<clobbers target="LeanPush"/>
</js-module>
<js-module src="www/LeanAnalytics.js" name="LeanAnalytics">
<clobbers target="LeanAnalytics"/>
</js-module>
<preference name="LEAN_APP_ID"/>
<preference name="LEAN_APP_KEY"/>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="LeanPush">
<param name="ios-package" value="CDVLeanPush"/>
</feature>
<feature name="LeanAnalytics">
<param name="ios-package" value="CDVLeanAnalytics"/>
</feature>
<preference name="leancloud-appid" value="$LEAN_APP_ID"/>
<preference name="leancloud-appkey" value="$LEAN_APP_KEY"/>
</config-file>
<!-- Plugin source code -->
<header-file src="src/ios/CDVLeanAnalytics.h"/>
<source-file src="src/ios/CDVLeanAnalytics.m"/>
<header-file src="src/ios/CDVLeanPush.h"/>
<source-file src="src/ios/CDVLeanPush.m"/>
<header-file src="src/ios/AppDelegate+LeanPush.h"/>
<source-file src="src/ios/AppDelegate+LeanPush.m"/>
<!-- LeanCloud Official -->
<framework src="src/ios/Frameworks/AVOSCloud.framework" custom="true"/>
<!-- Other required frameworks -->
<framework src="SystemConfiguration.framework"/>
<framework src="MobileCoreServices.framework"/>
<framework src="CoreTelephony.framework"/>
<framework src="CoreLocation.framework"/>
<framework src="libicucore.dylib"/>
</platform>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="LeanPush">
<param name="android-package" value="com.sum.cordova.leancloud.LeanPush"/>
<param name="onload" value="true" />
</feature>
<feature name="LeanAnalytics">
<param name="android-package" value="com.sum.cordova.leancloud.LeanAnalytics"/>
</feature>
<preference name="leancloud-appid" value="$LEAN_APP_ID"/>
<preference name="leancloud-appkey" value="$LEAN_APP_KEY"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_LOGS" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="com.avos.avoscloud.AVBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
<service android:name="com.avos.avoscloud.PushService"/>
<meta-data android:name="leancloud" android:value="LeanCloud"/>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml"/>
<source-file src="src/android/LeanApplication.java" target-dir="src/com/sum/cordova/leancloud"/>
<source-file src="src/android/LeanPush.java" target-dir="src/com/sum/cordova/leancloud"/>
<source-file src="src/android/LeanAnalytics.java" target-dir="src/com/sum/cordova/leancloud"/>
<source-file src="src/android/leancloud/Java-WebSocket-1.2.0-leancloud.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/leancloud/android-async-http-1.4.6.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/leancloud/avoscloud-push-v3.1.4.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/leancloud/avoscloud-sdk-v3.1.4.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/leancloud/avoscloud-statistics-v3.1.4.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/leancloud/fastjson.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/leancloud/httpmime-4.2.4.jar" target-dir="libs" framework="true"/>
</platform>
</plugin>