forked from Hybrid-Force/cordova-plugin-leancloud
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.xml
72 lines (65 loc) · 3.63 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
<?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.farseerinc.cordovalibs.leanpush" version="0.0.2">
<name>LeanPush</name>
<js-module src="www/LeanPush.js" name="LeanPush">
<clobbers target="LeanPush"/>
</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>
<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/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.farseerinc.cordovalibs.leanpush.LeanPush"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<activity android:name="com.farseerinc.cordovalibs.leanpush.LeanPushHandlerActivity" android:exported="true"/>
<service android:name="com.avos.avoscloud.PushService"/>
<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>
</config-file>
<source-file src="src/android/src/com/farseerinc/cordovalibs/leanpush/LeanPush.java"
target-dir="src/com/farseerinc/cordovalibs/leanpush"/>
<source-file src="src/android/src/com/farseerinc/cordovalibs/leanpush/LeanPushHandlerActivity.java"
target-dir="src/com/farseerinc/cordovalibs/leanpush"/>
<source-file src="src/android/libs/android-async-http-1.4.6.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/libs/avoscloud-push-v3.1.5.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/libs/avoscloud-sdk-v3.1.5.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/libs/fastjson.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/libs/httpmime-4.2.4.jar" target-dir="libs" framework="true"/>
<source-file src="src/android/libs/Java-WebSocket-1.2.0-leancloud.jar" target-dir="libs" framework="true"/>
</platform>
</plugin>