-
Notifications
You must be signed in to change notification settings - Fork 6
/
plugin.xml
208 lines (179 loc) · 8.43 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-getui" version="0.2.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>getuiwrapper</name>
<js-module name="getuiwrapper" src="www/getuiwrapper.js"><clobbers target="cordova.plugins.getuiwrapper" /></js-module>
<platform name="android">
<preference name="APP_ID" />
<preference name="APP_KEY" />
<preference name="APP_SECRET" />
<preference name="PACKAGE_ID" />
<config-file parent="/*" target="res/xml/config.xml">
<feature name="getuiwrapper">
<param name="android-package" value="com.pluswave.getui.wrapper.getuiwrapper" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<!-- 个推SDK权限配置开始 -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<!-- 浮动通知权限 -->
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<!-- 自定义权限 -->
<uses-permission android:name="getui.permission.GetuiService.$PACKAGE_ID" />
<permission
android:name="getui.permission.GetuiService.$PACKAGE_ID"
android:protectionLevel="normal" >
</permission>
<!-- 个推SDK权限配置结束 -->
</config-file>
<config-file parent="application" target="AndroidManifest.xml" >
<!-- 个推SDK配置开始 -->
<!-- 配置的第三方参数属性 -->
<meta-data
android:name="PUSH_APPID"
android:value="$APP_ID" />
<meta-data
android:name="PUSH_APPKEY"
android:value="$APP_KEY" />
<meta-data
android:name="PUSH_APPSECRET"
android:value="$APP_SECRET" />
<!-- 配置第三方Receiver -->
<receiver
android:name="com.pluswave.getui.wrapper.PushReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.igexin.sdk.action.$APP_ID" />
</intent-filter>
</receiver>
<!-- 配置SDK核心服务 -->
<service
android:name="com.igexin.sdk.PushService"
android:exported="true"
android:label="NotificationCenter"
android:process=":pushservice" >
</service>
<service
android:name="com.igexin.sdk.PushServiceUser"
android:exported="true"
android:label="NotificationCenterUser" >
</service>
<receiver android:name="com.igexin.sdk.PushReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="com.igexin.sdk.action.refreshls" />
<!-- 以下三项为可选的action声明,可大大提高service存活率和消息到达速度 -->
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
</receiver>
<receiver
android:name="com.igexin.sdk.PushManagerReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.igexin.sdk.action.pushmanager" />
</intent-filter>
</receiver>
<activity
android:name="com.igexin.sdk.PushActivity"
android:excludeFromRecents="true"
android:exported="false"
android:process=":pushservice"
android:taskAffinity="com.igexin.sdk.PushActivityTask"
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
</activity>
<service
android:name="com.igexin.download.DownloadService"
android:process=":pushservice" />
<receiver android:name="com.igexin.download.DownloadReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<provider
android:name="com.igexin.download.DownloadProvider"
android:authorities="downloads.$PACKAGE_ID"
android:process=":pushservice" />
<activity
android:name="com.igexin.getuiext.activity.GetuiExtActivity"
android:configChanges="orientation|keyboard|keyboardHidden"
android:excludeFromRecents="true"
android:exported="false"
android:process=":pushservice"
android:taskAffinity="android.task.myServicetask"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<receiver
android:name="com.igexin.getuiext.service.PayloadReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.igexin.sdk.action.7fjUl2Z3LH6xYy7NQK4ni4" />
<action android:name="com.igexin.sdk.action.$APP_ID" />
</intent-filter>
</receiver>
<service
android:name="com.igexin.getuiext.service.GetuiExtService"
android:process=":pushservice" />
<!-- 个推SDK配置结束 -->
</config-file>
<source-file src="src/android/getuiwrapper.java" target-dir="src/com/pluswave/getui/wrapper" />
<source-file src="src/android/PushReceiver.java" target-dir="src/com/pluswave/getui/wrapper" />
<source-file src="src/android/libs/GetuiExt-2.0.3.jar" target-dir="libs" />
<source-file src="src/android/libs/GetuiSDK2.7.0.0.jar" target-dir="libs" />
<source-file src="src/android/libs/json_simple-1.1.jar" target-dir="libs" />
<source-file src="src/android/armeabi/libgetuiext.so" target-dir="libs/armeabi" />
<source-file src="src/android/armeabi-v7a/libgetuiext.so" target-dir="libs/armeabi-v7a" />
</platform>
<!-- ios -->
<platform name="ios">
<preference name="APP_ID" />
<preference name="APP_KEY" />
<preference name="APP_SECRET" />
<config-file target="config.xml" parent="/*">
<feature name="getuiwrapper">
<param name="ios-package" value="PushPlugin"/>
</feature>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>remote-notification</string>
</array>
</config-file>
<config-file target="*/gtsdk.plist" parent="com.getui.kGTAppId" >
<string>$APP_ID</string>
</config-file>
<config-file target="*/gtsdk.plist" parent="com.getui.kGTAppKey" >
<string>$APP_KEY</string>
</config-file>
<config-file target="*/gtsdk.plist" parent="com.getui.kGTAppSecret" >
<string>$APP_SECRET</string>
</config-file>
<source-file src="src/ios/AppDelegate+notification.m" />
<source-file src="src/ios/PushPlugin.m" />
<header-file src="src/ios/AppDelegate+notification.h" />
<header-file src="src/ios/PushPlugin.h" />
<source-file src="src/ios/GtSdkLib/libGeTuiSdk-1.6.2.0-noidfa.a" framework="true"/>
<header-file src="src/ios/GtSdkLib/GeTuiSdk.h" />
<source-file src="src/ios/gtsdk.plist" />
<framework src="libc++.dylib" />
<framework src="libz.dylib" />
<framework src="libsqlite3.0.dylib" />
<framework src="CFNetwork.framework" />
<framework src="MobileCoreServices.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="CoreTelephony.framework" />
<framework src="AVFoundation.framework" />
<framework src="CoreLocation.framework" />
</platform>
</plugin>