-
Notifications
You must be signed in to change notification settings - Fork 4k
[No QA] Update Firebase Dependencies #65520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
roryabraham
merged 18 commits into
Expensify:main
from
sofi-a:64814-update-firebase-dependencies
Jul 25, 2025
Merged
Changes from 11 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
937c870
chore: update @react-native-firebase packages to version 22.2.1
sofi-a 2079d19
refactor: migrate all @react-native-firebase/analytics references to …
sofi-a 79b0f48
refactor: migrate all @react-native-firebase/crashlytics references t…
sofi-a b6ea5d2
refactor: migrate all @react-native-firebase/perf references to use F…
sofi-a e25d9ac
chore: update @react-native-firebase patches to version 22.2.1
sofi-a 2df38c6
chore: update mock implementations for analytics, crashlytics, and pe…
sofi-a 9946457
chore: add details.md with explanations for @react-native-firebase pa…
sofi-a 9595541
fix: unable to resolve superstruct's main module
sofi-a 993d0ed
Merge branch 'main' into 64814-update-firebase-dependencies
sofi-a 0161859
chore(ios): upgrade Firebase dependencies from version 8.8.0 to 11.13.0
sofi-a b545cba
Merge branch 'main' into 64814-update-firebase-dependencies
sofi-a 0e1ddc4
chore: add "nanopb" to the spell checker's words list
sofi-a 25b1236
refactor: changed Firebase integration to use static frameworks
sofi-a 47e4365
Merge branch 'main' into 64814-update-firebase-dependencies
sofi-a 1ab4b27
fix: enable default flags in Podfile
sofi-a 358048f
Revert "chore: add "nanopb" to the spell checker's words list"
sofi-a 274c8b9
Merge branch 'main' into 64814-update-firebase-dependencies
sofi-a 66063a3
Merge branch 'main' into 64814-update-firebase-dependencies
sofi-a File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| export default function analytics() { | ||
| return { | ||
| logEvent: jest.fn(), | ||
| }; | ||
| } | ||
| const logEvent = jest.fn(); | ||
| const getAnalytics = jest.fn(); | ||
|
|
||
| export {logEvent, getAnalytics}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,9 @@ | ||
| import type {FirebaseCrashlyticsTypes} from '@react-native-firebase/crashlytics'; | ||
|
|
||
| type CrashlyticsModule = Pick<FirebaseCrashlyticsTypes.Module, 'log' | 'recordError' | 'setCrashlyticsCollectionEnabled' | 'setUserId'>; | ||
|
|
||
| type CrashlyticsMock = () => CrashlyticsModule; | ||
|
|
||
| // <App> uses <ErrorBoundary> and we need to mock the imported crashlytics module | ||
| // due to an error that happens otherwise https://github.com/invertase/react-native-firebase/issues/2475 | ||
| const crashlyticsMock: CrashlyticsMock = () => ({ | ||
| log: jest.fn(), | ||
| recordError: jest.fn(), | ||
| setCrashlyticsCollectionEnabled: jest.fn(), | ||
| setUserId: jest.fn(), | ||
| }); | ||
| const getCrashlytics = jest.fn(); | ||
| const log = jest.fn(); | ||
| const recordError = jest.fn(); | ||
| const setCrashlyticsCollectionEnabled = jest.fn(); | ||
| const setUserId = jest.fn(); | ||
|
|
||
| export default crashlyticsMock; | ||
| export {getCrashlytics, log, recordError, setCrashlyticsCollectionEnabled, setUserId}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| type PerfMock = () => void; | ||
| /* eslint-disable import/prefer-default-export */ | ||
| const getPerformance = jest.fn(); | ||
|
|
||
| const perfMock: PerfMock = () => {}; | ||
|
|
||
| export default perfMock; | ||
| export {getPerformance}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm why do we need to add these pod manually here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept getting the following error after updating the Firebase dependencies on iOS. It's an issue that happens when importing Objective-C modules inside Swift code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to explore an alternative solution rather than this workaround. Here's the comment from the maintainer of
react-native-firebaseabout this workaround:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a very serious warning. Let me check.