Skip to content

Commit 56b166d

Browse files
authored
Merge pull request #1094 from mendix/chore/update-firebase
[MOO-1912]: React Native Firebase update
2 parents 0eceb4a + cdbbd92 commit 56b166d

4 files changed

Lines changed: 18 additions & 28 deletions

File tree

.mx/known_dependencies.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"@react-native-firebase/app": "17.3.0",
3-
"@react-native-firebase/messaging": "17.3.0",
4-
"@react-native-firebase/crashlytics": "17.3.0",
2+
"@react-native-firebase/app": "20.1.0",
3+
"@react-native-firebase/messaging": "20.1.0",
4+
"@react-native-firebase/crashlytics": "20.1.0",
55
"@react-native-community/push-notification-ios": "1.10.1",
66
"react-native-push-notification": "8.1.1",
77
"react-native-maps": "0.31.1"

android/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ buildscript {
3636
}
3737
}
3838

39+
project.ext {
40+
set('react-native', [
41+
versions: [
42+
// Override Firebase BOM version to avoid updating to react-native-firebase 20.2.0+,
43+
// which adds many new node_modules increasing the size significantly.
44+
// Affected dependencies include the entire react-native-firebase suite e.g.:
45+
// @react-native-firebase/app, @react-native-firebase/analytics, @react-native-firebase/crashlytics, @react-native-firebase/messaging
46+
// NOTE: If updating to react-native-firebase 20.2.0+ is done, this override should be removed.
47+
firebase: [
48+
bom: "33.1.1"
49+
],
50+
],
51+
])
52+
}
53+
3954
allprojects {
4055
repositories {
4156
all { repo ->

intermediary-patches/@react-native-firebase+messaging+17.3.0.patch

Lines changed: 0 additions & 21 deletions
This file was deleted.

patches/apply-patches.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ const patchOperations = [
77
{
88
dependency: "react-native-geocoder",
99
patchFile: "react-native-geocoder+0.5.0.patch"
10-
},
11-
{
12-
dependency: "@react-native-firebase/app",
13-
patchFile: "@react-native-firebase+messaging+17.3.0.patch"
1410
}
1511
];
1612

0 commit comments

Comments
 (0)