-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathplugin.xml
More file actions
139 lines (110 loc) · 5.31 KB
/
Copy pathplugin.xml
File metadata and controls
139 lines (110 loc) · 5.31 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
135
136
137
138
139
<?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="3.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=">=8.1.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/ic_launcher" is the resource used by the tabris-android cordova platform for the app icon -->
<preference name="ANDROID_NOTIFICATION_ICON" default="@mipmap/ic_launcher" />
<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"
android:exported="true">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<meta-data
android:name="com.eclipsesource.tabris.android.HANDLER.com.eclipsesource.tabris.firebase.messaging"
android:value="com.eclipsesource.firebase.messaging.MessagingHandler" />
<meta-data
android:name="com.eclipsesource.tabris.android.HANDLER.com.eclipsesource.tabris.firebase.analytics"
android:value="com.eclipsesource.firebase.analytics.AnalyticsHandler" />
<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" />
</config-file>
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
<framework src="com.google.firebase:firebase-core:21.1.1" />
<framework src="com.google.firebase:firebase-messaging:23.0.8" />
<framework src="com.google.firebase:firebase-iid:21.1.0" />
<source-file src="src/android/com/eclipsesource/firebase/messaging/MessagingHandler.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/analytics/AnalyticsHandler.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>
<config-file target="*-Info.plist" parent="FIREBASE_ANALYTICS_COLLECTION_ENABLED">
<false/>
</config-file>
<!-- Frameworks -->
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods use-frameworks="true">
<pod name="FirebaseAnalytics" spec="~> 7.2" />
<pod name="FirebaseMessaging" spec="~> 7.2" />
</pods>
</podspec>
<!-- 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>