forked from eclipsesource/tabris-plugin-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
151 lines (122 loc) · 6.72 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
<?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="tabris-plugin-firebase"
version="2.0.0">
<name>Tabris.js Firebase Plugin</name>
<description>A firebase for Tabris.js. The plugin allows to handle cloud messages.</description>
<author>EclipseSource</author>
<license>Revised BSD License (3-clause license)</license>
<repo>https://github.com/eclipsesource/tabris-plugin-firebase.git</repo>
<issue>https://github.com/eclipsesource/tabris-plugin-firebase/issues</issue>
<!-- cordova -->
<engines>
<engine name="cordova-android" version=">=7.0.0" />
</engines>
<js-module src="www/Messaging.js" name="messaging">
<clobbers target="firebase.Messaging" />
</js-module>
<js-module src="www/Analytics.js" name="analytics">
<clobbers target="firebase.Analytics" />
</js-module>
<platform name="android">
<!-- The default value "@mipmap/icon" is the resource used by the tabris-android cordova platform for the app icon -->
<preference name="ANDROID_NOTIFICATION_ICON" default="@mipmap/icon" />
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="com.eclipsesource.firebase.messaging.TabrisFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name="com.eclipsesource.firebase.messaging.TabrisFirebaseInstanceIDService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<meta-data
android:name="com.eclipsesource.tabris.android.OPERATOR.com.eclipsesource.tabris.firebase.messaging"
android:value="com.eclipsesource.firebase.messaging.MessagingOperator" />
<meta-data
android:name="com.eclipsesource.tabris.android.OPERATOR.com.eclipsesource.tabris.firebase.analytics"
android:value="com.eclipsesource.firebase.analytics.AnalyticsOperator" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="$ANDROID_NOTIFICATION_ICON" />
<meta-data android:name="firebase_analytics_collection_enabled" android:value="false" />
<receiver android:name="com.eclipsesource.firebase.messaging.NotificationOpenedReceiver" />
</config-file>
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
<framework src="com.google.firebase:firebase-core:12.0.1" />
<framework src="com.google.firebase:firebase-messaging:12.0.1" />
<framework src="com.google.firebase:firebase-analytics:12.0.1" />
<source-file src="src/android/com/eclipsesource/firebase/messaging/MessagingOperator.kt"
target-dir="src/com/eclipsesource/firebase/messaging" />
<source-file src="src/android/com/eclipsesource/firebase/messaging/MessagingPropertyHandler.kt"
target-dir="src/com/eclipsesource/firebase/messaging" />
<source-file src="src/android/com/eclipsesource/firebase/messaging/Messaging.kt"
target-dir="src/com/eclipsesource/firebase/messaging" />
<source-file src="src/android/com/eclipsesource/firebase/messaging/TabrisFirebaseMessagingService.kt"
target-dir="src/com/eclipsesource/firebase/messaging" />
<source-file src="src/android/com/eclipsesource/firebase/messaging/TabrisFirebaseInstanceIDService.kt"
target-dir="src/com/eclipsesource/firebase/messaging" />
<source-file src="src/android/com/eclipsesource/firebase/messaging/NotificationOpenedReceiver.kt"
target-dir="src/com/eclipsesource/firebase/messaging" />
<source-file src="src/android/com/eclipsesource/firebase/analytics/AnalyticsOperator.kt"
target-dir="src/com/eclipsesource/firebase/analytics" />
<source-file src="src/android/com/eclipsesource/firebase/analytics/AnalyticsPropertyHandler.kt"
target-dir="src/com/eclipsesource/firebase/analytics" />
<source-file src="src/android/com/eclipsesource/firebase/analytics/Analytics.kt"
target-dir="src/com/eclipsesource/firebase/analytics" />
<hook src="scripts/android/copy_google_services.js" type="after_prepare" />
</platform>
<platform name="ios">
<!-- Scripts -->
<hook type="after_plugin_install" src="scripts/ios/custom-widget.js" />
<!-- Add entries to TabrisPlugins.plist -->
<config-file target="*TabrisPlugins.plist" parent="classes">
<array>
<string>ESFBMessaging</string>
<string>ESFBAnalytics</string>
</array>
</config-file>
<config-file target="*Entitlements-Debug.plist" parent="aps-environment">
<string>development</string>
</config-file>
<config-file target="*Entitlements-Release.plist" parent="aps-environment">
<string>production</string>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>remote-notification</string>
</array>
</config-file>
<!-- Frameworks -->
<!-- Analytics -->
<framework src="src/ios/frameworks/FirebaseAnalytics.framework" custom="true" />
<framework src="src/ios/frameworks/FirebaseCore.framework" custom="true" />
<framework src="src/ios/frameworks/FirebaseCoreDiagnostics.framework" custom="true" />
<framework src="src/ios/frameworks/FirebaseInstanceID.framework" custom="true" />
<framework src="src/ios/frameworks/FirebaseNanoPB.framework" custom="true" />
<framework src="src/ios/frameworks/GoogleToolboxForMac.framework" custom="true" />
<framework src="src/ios/frameworks/nanopb.framework" custom="true" />
<!-- Messaging -->
<framework src="src/ios/frameworks/FirebaseMessaging.framework" custom="true" />
<framework src="src/ios/frameworks/Protobuf.framework" custom="true" />
<framework src="UserNotifications.framework" />
<!-- Sources -->
<!-- Analytics -->
<header-file src="src/ios/src/ESFBAnalytics.h" />
<source-file src="src/ios/src/ESFBAnalytics.m" />
<!-- Messaging -->
<header-file src="src/ios/src/ESFBMessaging.h" />
<source-file src="src/ios/src/ESFBMessaging.m" />
<!-- Helper classes -->
<header-file src="src/ios/src/ESFirebaseHelper.h" />
<source-file src="src/ios/src/ESFirebaseHelper.m" />
</platform>
</plugin>