forked from pushy/pushy-cordova
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugin.xml
121 lines (105 loc) · 5.44 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
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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="pushy-cordova" version="1.0.22">
<name>PushySDK</name>
<description>The official Pushy SDK for Cordova apps.</description>
<license>Apache 2.0</license>
<keywords>pushy pushy.me sdk cordova phonegap ionic</keywords>
<!-- Supported Platforms -->
<engines>
<engine name="cordova-ios" version=">=4.3.0" />
<engine name="cordova-android" version=">=4.0.0" />
</engines>
<!-- Pushy JS Module -->
<js-module src="www/Pushy.js" name="Pushy">
<clobbers target="Pushy" />
</js-module>
<!-- iOS -->
<platform name="ios">
<!-- iOS Package -->
<config-file target="config.xml" parent="/*">
<feature name="PushyPlugin">
<param name="ios-package" value="PushyPlugin"/>
</feature>
</config-file>
<!-- Cordova Swift Support -->
<dependency id="cordova-plugin-add-swift-support" version="1.7.2"/>
<!-- Pushy Cordova Plugin -->
<source-file src="src/ios/PushyPlugin.swift" />
<!-- Pushy iOS SDK Source Files -->
<!-- The official Pushy iOS SDK pod cannot be referenced directly due to lack of support from Cordova -->
<source-file src="src/ios/Pushy.swift" />
<source-file src="src/ios/PushyConfig.swift" />
<source-file src="src/ios/PushyEnvironment.swift" />
<source-file src="src/ios/PushyHTTP.swift" />
<source-file src="src/ios/PushyKeychain.swift" />
<source-file src="src/ios/PushyNetworkException.swift" />
<source-file src="src/ios/PushyPubSubException.swift" />
<source-file src="src/ios/PushyRegistrationException.swift" />
<source-file src="src/ios/PushyResponseException.swift" />
<source-file src="src/ios/PushySettings.swift" />
<source-file src="src/ios/PushySwizzler.swift" />
<!-- APS environment injection -->
<config-file target="*-Debug.plist" parent="aps-environment">
<string>development</string>
</config-file>
<config-file target="*-Release.plist" parent="aps-environment">
<string>production</string>
</config-file>
</platform>
<!-- Android -->
<platform name="android">
<!-- Pushy SDK -->
<framework src="me.pushy:sdk:1.0.40" />
<!-- Pushy Permissions -->
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
</config-file>
<!-- Pushy Declarations -->
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!-- Pushy Notification Receiver -->
<!-- Do not modify - internal BroadcastReceiver that listens for push notifications -->
<receiver android:name="me.pushy.sdk.cordova.internal.receivers.PushyPushReceiver" android:exported="false">
<intent-filter>
<!-- Do not modify this -->
<action android:name="pushy.me" />
</intent-filter>
</receiver>
<!-- Pushy Update Receiver -->
<!-- Do not modify - internal BroadcastReceiver that restarts the listener service -->
<receiver android:name="me.pushy.sdk.receivers.PushyUpdateReceiver" android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
<!-- Pushy Boot Receiver -->
<!-- Do not modify - internal BroadcastReceiver that restarts the listener service -->
<receiver android:name="me.pushy.sdk.receivers.PushyBootReceiver" android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<!-- Pushy Socket Service -->
<!-- Do not modify - internal socket service -->
<service android:name="me.pushy.sdk.services.PushySocketService"/>
<!-- Pushy Job Service (added in Pushy SDK 1.0.35) -->
<!-- Do not modify - internal service -->
<service android:name="me.pushy.sdk.services.PushyJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="true" />
</config-file>
<!-- Pushy Plugin -->
<config-file target="config.xml" parent="/*">
<feature name="Pushy">
<param name="android-package" value="me.pushy.sdk.cordova.internal.PushyPlugin"/>
</feature>
</config-file>
<!-- Plugin Source Files -->
<source-file src="src/android/PushyPlugin.java" target-dir="src/me/pushy/sdk/cordova/internal" />
<source-file src="src/android/util/PushyPersistence.java" target-dir="src/me/pushy/sdk/cordova/internal/util" />
<source-file src="src/android/receivers/PushyPushReceiver.java" target-dir="src/me/pushy/sdk/cordova/internal/receivers" />
</platform>
</plugin>