-
Notifications
You must be signed in to change notification settings - Fork 17
/
plugin.xml
131 lines (113 loc) · 5.75 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
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="pushy-cordova" version="1.0.59">
<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">
<!-- Pushy iOS SDK -->
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods use-frameworks="true">
<pod name="Pushy" spec="~> 1.0.53" />
</pods>
</podspec>
<!-- iOS Package -->
<config-file target="config.xml" parent="/*">
<feature name="PushyPlugin">
<param name="ios-package" value="PushyPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<!-- Cordova Swift Support -->
<dependency id="cordova-plugin-add-swift-support" version="2.0.2"/>
<!-- Pushy Cordova Plugin -->
<source-file src="src/ios/PushyPlugin.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 Android SDK -->
<framework src="me.pushy:sdk:1.0.118" />
<!-- AppCompat (Android X) -->
<framework src="androidx.appcompat:appcompat:1.0.2" />
<!-- 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.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
</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 service -->
<service android:name="me.pushy.sdk.services.PushySocketService" android:foregroundServiceType="remoteMessaging" android:stopWithTask="false" />
<!-- 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:stopWithTask="false" />
<!-- Pushy FCM Fallback Service -->
<!-- Do not modify - internal service -->
<service android:name="me.pushy.sdk.services.PushyFirebaseService" android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
</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/config/PushyIntentExtras.java" target-dir="src/me/pushy/sdk/cordova/internal/config" />
<source-file src="src/android/receivers/PushyPushReceiver.java" target-dir="src/me/pushy/sdk/cordova/internal/receivers" />
</platform>
</plugin>