This repository was archived by the owner on May 25, 2025. It is now read-only.
forked from grrrian/phonegap-parse-plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplugin.xml
More file actions
134 lines (116 loc) · 5.86 KB
/
plugin.xml
File metadata and controls
134 lines (116 loc) · 5.86 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="medlei-parse-push-plugin"
version="0.1.3">
<name>Parse Push Notification</name>
<description>
Parse plugin to suscribe to push notifications with Badge Counter
</description>
<license>MIT</license>
<author>Rodrigo Claros</author>
<keywords>Parse,Push,Push Notification,Badge Counter</keywords>
<repo>https://github.com/ropilz/phonegap-parse-plugin.git</repo>
<issue>https://github.com/ropilz/phonegap-parse-plugin/issues</issue>
<js-module src="www/cdv-plugin-parse.js" name="ParsePlugin">
<clobbers target="window.parsePlugin" />
</js-module>
<dependency
id="es6-promise-plugin"
url="https://github.com/vstirbu/PromisesPlugin.git">
</dependency>
<!-- android -->
<platform name="android">
<preference name="APP_ID" />
<preference name="CLIENT_KEY" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="ParsePlugin">
<param name="android-package" value="com.medlei.ParsePlugin" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="com.parse.APPLICATION_ID" android:value="$APP_ID" />
<meta-data android:name="com.parse.CLIENT_KEY" android:value="$CLIENT_KEY" />
<service android:name="com.parse.PushService" />
<receiver android:name="com.parse.ParseBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
<receiver android:exported="false" android:name="com.medlei.ParsePluginReceiver">
<intent-filter>
<action android:name="com.parse.push.intent.RECEIVE" />
<action android:name="com.parse.push.intent.DELETE" />
<action android:name="com.parse.push.intent.OPEN" />
</intent-filter>
</receiver>
<receiver android:name="com.parse.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
</receiver>
</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.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:protectionLevel="signature" android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" />
<uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" />
</config-file>
<source-file src="src/android/parse/Parse-1.10.0.jar" target-dir="libs" framework="true" />
<source-file src="src/android/parse/bolts-android-1.1.4.jar" target-dir="libs" framework="true" />
<source-file src="src/android/ParsePlugin.java" target-dir="src/com/medlei" />
<source-file src="src/android/ParsePluginReceiver.java" target-dir="src/com/medlei" />
<source-file src="src/android/parseplugin.xml" target-dir="res/values" />
<config-file target="res/values/parseplugin.xml" parent="/*">
<string name="parse_app_id">$APP_ID</string>
<string name="parse_client_key">$CLIENT_KEY</string>
</config-file>
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="ParsePlugin">
<param name="ios-package" value="CDVParsePlugin" />
</feature>
</config-file>
<header-file src="src/ios/CDVParsePlugin.h" />
<source-file src="src/ios/CDVParsePlugin.m" />
<framework src="Accounts.framework" />
<framework src="AudioToolbox.framework" />
<framework src="CFNetwork.framework" />
<framework src="CoreGraphics.framework" />
<framework src="CoreLocation.framework" />
<framework src="MobileCoreServices.framework" />
<framework src="QuartzCore.framework" />
<framework src="Security.framework" />
<framework src="Social.framework" />
<framework src="StoreKit.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="libz.dylib" />
<framework src="libsqlite3.dylib" />
<framework src="src/ios/Frameworks/Bolts.framework" custom="true" />
<framework src="src/ios/Frameworks/Parse.framework" custom="true" />
</platform>
<!-- wp8 -->
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="ParsePlugin">
<param name="wp-package" value="ParsePlugin"/>
</feature>
</config-file>
<source-file src="src/wp8/ParsePlugin.cs" />
<framework src="src/wp8/parse/Parse.dll" custom="true"/>
<framework src="src/wp8/parse/Parse.Phone.dll" custom="true"/>
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
<Capability Name="ID_CAP_PUSH_NOTIFICATION" />
</config-file>
</platform>
</plugin>