forked from dpa99c/cordova-plugin-firebasex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
193 lines (172 loc) · 11.5 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-firebasex" version="16.5.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
>
<name>Google Firebase Plugin</name>
<license>MIT</license>
<engines>
<engine name="cordova" version=">=9" />
<engine name="cordova-android" version=">=8" />
<engine name="cordova-ios" version=">=5" />
</engines>
<preference name="FIREBASE_ANALYTICS_COLLECTION_ENABLED" default="true" />
<preference name="FIREBASE_PERFORMANCE_COLLECTION_ENABLED" default="true" />
<preference name="FIREBASE_CRASHLYTICS_COLLECTION_ENABLED" default="true" />
<preference name="FIREBASE_FCM_AUTOINIT_ENABLED" default="true" />
<preference name="FIREBASE_ANALYTICS_WITHOUT_ADS" default="false" />
<preference name="GOOGLE_ANALYTICS_ADID_COLLECTION_ENABLED" default="true" />
<preference name="GOOGLE_ANALYTICS_DEFAULT_ALLOW_ANALYTICS_STORAGE" default="true" />
<preference name="GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_STORAGE" default="true" />
<preference name="GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_USER_DATA" default="true" />
<preference name="GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_PERSONALIZATION_SIGNALS" default="true" />
<platform name="android">
<preference name="ANDROID_ICON_ACCENT" default="#FF00FFFF" />
<preference name="ANDROID_FIREBASE_PERFORMANCE_MONITORING" default="false" />
<js-module name="FirebasePlugin" src="www/firebase.js">
<clobbers target="FirebasePlugin" />
</js-module>
<config-file parent="/*" target="res/xml/config.xml">
<feature name="FirebasePlugin">
<param name="android-package" value="org.apache.cordova.firebase.FirebasePlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!--<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>-->
</config-file>
<config-file target="AndroidManifest.xml" parent="application">
<service android:enabled="true" android:exported="false" android:name="com.google.android.gms.measurement.AppMeasurementService" />
<service android:exported="false" android:name="org.apache.cordova.firebase.FirebasePluginMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<receiver android:name="org.apache.cordova.firebase.OnNotificationOpenReceiver"/>
<activity android:name="org.apache.cordova.firebase.OnNotificationReceiverActivity" android:noHistory="true" android:excludeFromRecents="true" android:taskAffinity="" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:exported="true" />
<meta-data android:name="com.google.firebase.messaging.default_notification_color" android:resource="@color/accent" />
<meta-data android:name="com.google.firebase.messaging.default_notification_channel_id" android:value="@string/default_notification_channel_id"/>
<meta-data android:name="firebase_analytics_collection_enabled" android:value="$FIREBASE_ANALYTICS_COLLECTION_ENABLED" />
<meta-data android:name="firebase_performance_collection_enabled" android:value="$FIREBASE_PERFORMANCE_COLLECTION_ENABLED" />
<meta-data android:name="firebase_crashlytics_collection_enabled" android:value="$FIREBASE_CRASHLYTICS_COLLECTION_ENABLED" />
<meta-data android:name="firebase_messaging_auto_init_enabled" android:value="$FIREBASE_FCM_AUTOINIT_ENABLED" />
<meta-data android:name="google_analytics_adid_collection_enabled" android:value="$GOOGLE_ANALYTICS_ADID_COLLECTION_ENABLED" />
<meta-data android:name="google_analytics_default_allow_analytics_storage" android:value="$GOOGLE_ANALYTICS_DEFAULT_ALLOW_ANALYTICS_STORAGE" />
<meta-data android:name="google_analytics_default_allow_ad_storage" android:value="$GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_STORAGE" />
<meta-data android:name="google_analytics_default_allow_ad_user_data" android:value="$GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_USER_DATA" />
<meta-data android:name="google_analytics_default_allow_ad_personalization_signals" android:value="$GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_PERSONALIZATION_SIGNALS" />
</config-file>
<resource-file src="src/android/cordova-plugin-firebase-strings.xml" target="res/values/cordova-plugin-firebase-strings.xml" />
<source-file src="src/android/FirebasePlugin.java" target-dir="src/org/apache/cordova/firebase" />
<source-file src="src/android/OnNotificationOpenReceiver.java" target-dir="src/org/apache/cordova/firebase" />
<source-file src="src/android/OnNotificationReceiverActivity.java" target-dir="src/org/apache/cordova/firebase" />
<source-file src="src/android/FirebasePluginMessagingService.java" target-dir="src/org/apache/cordova/firebase" />
<source-file src="src/android/FirebasePluginMessageReceiver.java" target-dir="src/org/apache/cordova/firebase" />
<source-file src="src/android/FirebasePluginMessageReceiverManager.java" target-dir="src/org/apache/cordova/firebase" />
<source-file src="src/android/JavaScriptException.java" target-dir="src/org/apache/cordova/firebase"/>
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
<!-- Default versions for Gradle dependencies -->
<preference name="ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION" default="18.0.4" />
<preference name="ANDROID_PLAY_SERVICES_AUTH_VERSION" default="20.7.0" />
<preference name="ANDROID_FIREBASE_ANALYTICS_VERSION" default="21.6.2" />
<preference name="ANDROID_FIREBASE_MESSAGING_VERSION" default="23.4.1" />
<preference name="ANDROID_FIREBASE_CONFIG_VERSION" default="21.6.3" />
<preference name="ANDROID_FIREBASE_PERF_VERSION" default="20.5.2" />
<preference name="ANDROID_FIREBASE_AUTH_VERSION" default="22.3.1" />
<preference name="ANDROID_FIREBASE_INAPPMESSAGING_VERSION" default="20.4.2" />
<preference name="ANDROID_FIREBASE_FIRESTORE_VERSION" default="24.11.1" />
<preference name="ANDROID_FIREBASE_FUNCTIONS_VERSION" default="20.4.0" />
<preference name="ANDROID_FIREBASE_IID_VERSION" default="21.1.0" /> <!-- deprecated but required by firebase-messaging -->
<preference name="ANDROID_FIREBASE_INSTALLATIONS_VERSION" default="17.2.0" />
<preference name="ANDROID_FIREBASE_CRASHLYTICS_VERSION" default="18.6.4" />
<preference name="ANDROID_FIREBASE_CRASHLYTICS_NDK_VERSION" default="18.6.4" />
<preference name="ANDROID_GSON_VERSION" default="2.9.0" />
<preference name="ANDROID_FIREBASE_PERF_GRADLE_PLUGIN_VERSION" default="1.4.2" />
<preference name="ANDROID_GRPC_OKHTTP" default="1.46.0" />
<framework src="com.google.android.gms:play-services-tagmanager:$ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION" />
<framework src="com.google.android.gms:play-services-auth:$ANDROID_PLAY_SERVICES_AUTH_VERSION" />
<framework src="com.google.firebase:firebase-analytics:$ANDROID_FIREBASE_ANALYTICS_VERSION" />
<framework src="com.google.firebase:firebase-messaging:$ANDROID_FIREBASE_MESSAGING_VERSION" />
<framework src="com.google.firebase:firebase-config:$ANDROID_FIREBASE_CONFIG_VERSION" />
<framework src="com.google.firebase:firebase-perf:$ANDROID_FIREBASE_PERF_VERSION" />
<framework src="com.google.firebase:firebase-auth:$ANDROID_FIREBASE_AUTH_VERSION" />
<framework src="com.google.firebase:firebase-inappmessaging:$ANDROID_FIREBASE_INAPPMESSAGING_VERSION" />
<framework src="com.google.firebase:firebase-inappmessaging-display:$ANDROID_FIREBASE_INAPPMESSAGING_VERSION" />
<framework src="com.google.firebase:firebase-firestore:$ANDROID_FIREBASE_FIRESTORE_VERSION" />
<framework src="com.google.firebase:firebase-functions:$ANDROID_FIREBASE_FUNCTIONS_VERSION" />
<framework src="com.google.firebase:firebase-iid:$ANDROID_FIREBASE_IID_VERSION" />
<framework src="com.google.firebase:firebase-installations:$ANDROID_FIREBASE_INSTALLATIONS_VERSION" />
<framework src="com.google.firebase:firebase-crashlytics:$ANDROID_FIREBASE_CRASHLYTICS_VERSION" />
<framework src="com.google.firebase:firebase-crashlytics-ndk:$ANDROID_FIREBASE_CRASHLYTICS_NDK_VERSION" />
<framework src="com.google.code.gson:gson:$ANDROID_GSON_VERSION" />
<framework src="io.grpc:grpc-okhttp:$ANDROID_GRPC_OKHTTP" />
</platform>
<platform name="ios">
<hook type="before_plugin_install" src="scripts/ios/before_plugin_install.js" />
<hook type="after_plugin_install" src="scripts/ios/after_plugin_install.js" />
<hook type="before_plugin_uninstall" src="scripts/ios/before_plugin_uninstall.js" />
<preference name="IOS_USE_PRECOMPILED_FIRESTORE_POD" default="false" />
<preference name="IOS_FCM_ENABLED" default="true" />
<preference name="IOS_FIREBASE_POD_VERSION" default="10.17.0" />
<preference name="IOS_FIREBASE_POD_BETA_VERSION" default="10.17.0-beta" />
<preference name="IOS_GOOGLE_SIGN_IN_POD_VERSION" default="6.2.4" />
<preference name="IOS_GOOGLE_TAG_MANAGER_POD_VERSION" default="7.4.6" />
<js-module name="FirebasePlugin" src="www/firebase.js">
<clobbers target="FirebasePlugin" />
</js-module>
<config-file target="config.xml" parent="/*">
<feature name="FirebasePlugin">
<param name="ios-package" value="FirebasePlugin" />
<param name="onload" value="true" />
</feature>
</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>
<resource-file src="src/ios/GoogleService-Info.plist" />
<header-file src="src/ios/AppDelegate+FirebasePlugin.h" />
<source-file src="src/ios/AppDelegate+FirebasePlugin.m" />
<header-file src="src/ios/FirebasePlugin.h" />
<source-file src="src/ios/FirebasePlugin.m" />
<header-file src="src/ios/FirebaseWrapper.h" />
<header-file src="src/ios/FirebasePluginMessageReceiver.h" />
<source-file src="src/ios/FirebasePluginMessageReceiver.m" />
<header-file src="src/ios/FirebasePluginMessageReceiverManager.h" />
<source-file src="src/ios/FirebasePluginMessageReceiverManager.m" />
<framework src="AuthenticationServices.framework" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="FirebaseCore" spec="$IOS_FIREBASE_POD_VERSION"/>
<pod name="FirebaseAuth" spec="$IOS_FIREBASE_POD_VERSION"/>
<pod name="FirebaseAnalytics" spec="$IOS_FIREBASE_POD_VERSION"/>
<!--<pod name="FirebaseAnalyticsOnDeviceConversion" spec="10.24.0"/>-->
<pod name="FirebaseMessaging" spec="$IOS_FIREBASE_POD_VERSION"/>
<pod name="FirebasePerformance" spec="$IOS_FIREBASE_POD_VERSION"/>
<pod name="FirebaseRemoteConfig" spec="$IOS_FIREBASE_POD_VERSION"/>
<pod name="FirebaseInAppMessaging" spec="$IOS_FIREBASE_POD_BETA_VERSION"/>
<pod name="FirebaseFirestore" spec="$IOS_FIREBASE_POD_VERSION"/>
<pod name="FirebaseCrashlytics" spec="$IOS_FIREBASE_POD_VERSION"/>
<pod name="FirebaseFunctions" spec="$IOS_FIREBASE_POD_VERSION"/>
<pod name="FirebaseInstallations" spec="$IOS_FIREBASE_POD_VERSION"/>
<pod name="GoogleSignIn" spec="$IOS_GOOGLE_SIGN_IN_POD_VERSION"/>
<pod name="GoogleTagManager" spec="$IOS_GOOGLE_TAG_MANAGER_POD_VERSION"/>
</pods>
</podspec>
</platform>
<hook type="after_prepare" src="scripts/after_prepare.js" />
</plugin>