Skip to content

Conversation

NikitaDudin
Copy link
Contributor

@NikitaDudin NikitaDudin commented Jul 9, 2025

Description

Fix issue on app assembling, when option $RNFirebaseAnalyticsWithoutAdIdSupport = true in Podfile.
image

Related issues

Release Summary

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • Yes
  • My change supports the following platforms;
    • Android
    • iOS
    • Other (macOS, web)
  • My change includes tests;
    • e2e tests added or updated in packages/\*\*/e2e
    • jest tests added or updated in packages/\*\*/__tests__
  • I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • No

Test Plan


Think react-native-firebase is great? Please consider supporting the project with any of the below:

@CLAassistant
Copy link

CLAassistant commented Jul 9, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

vercel bot commented Jul 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-firebase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 7:29pm

Copy link
Collaborator

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no! I can see from the required change that I messed up the forward-port to the new dependencies from the rearrangement they did upstream, but I think the FirebaseAnalytics/Core dependency should be included unconditionally, outside of the if/else structure here.

What do you think of the suggestion I posted?

And in general, apologies, thought I'd gotten that one right but clearly not

Comment on lines 42 to 44
if defined?($RNFirebaseAnalyticsWithoutAdIdSupport) && ($RNFirebaseAnalyticsWithoutAdIdSupport == true)
Pod::UI.puts "#{s.name}: Not installing FirebaseAnalytics/IdentitySupport Pod, no IDFA will be collected."
s.dependency 'FirebaseAnalytics/Core', firebase_sdk_version
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if defined?($RNFirebaseAnalyticsWithoutAdIdSupport) && ($RNFirebaseAnalyticsWithoutAdIdSupport == true)
Pod::UI.puts "#{s.name}: Not installing FirebaseAnalytics/IdentitySupport Pod, no IDFA will be collected."
s.dependency 'FirebaseAnalytics/Core', firebase_sdk_version
s.dependency 'FirebaseAnalytics/Core', firebase_sdk_version
if defined?($RNFirebaseAnalyticsWithoutAdIdSupport) && ($RNFirebaseAnalyticsWithoutAdIdSupport == true)
Pod::UI.puts "#{s.name}: Not installing FirebaseAnalytics/IdentitySupport Pod, no IDFA will be collected."

Copy link
Contributor Author

@NikitaDudin NikitaDudin Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, in this commentary wrote to use 'Default', 'Core'(w/o AdId) or 'IdentitySupport'(w/ AdId). I don't understand when needs to apply 'Default' variant.

I just replaced previous removed deprecated Firebase/AnalyticsWithoutAdIdSupport with FirebaseAnalytics/Core, because it recommended to use instead of deprecated package.

https://github.com/firebase/firebase-ios-sdk/pull/14882/files#diff-0f4ab6a5309144799e9721be7943c983fa5e2e52cbffae63d8028aad1780f957R60-R61

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay - I've got this patched up and pushed it back out - will merge when CI goes green
Sorry again for this - thanks to you and @radko93 for posting up PRs to fix the error
Will release shortly after CI is green

@mikehardy mikehardy added Workflow: Waiting for User Response Blocked waiting for user response. Workflow: Pending Merge Waiting on CI or similar labels Jul 9, 2025
the IdentitySupport case works without this Core pod specified because
of transitive dependencies, but the no-IDFA case (*very* important for
those that need it) failed to include it causing broken builds

Co-authored-by: Mike Hardy <[email protected]>
@mikehardy mikehardy changed the title fix(analytics, ios): building app with enabled option RNFirebaseAnalyticsWithoutAdIdSupport fix(analytics, ios): FirebaseAnalytics/Core is always needed Jul 9, 2025
@mikehardy mikehardy removed the Workflow: Waiting for User Response Blocked waiting for user response. label Jul 9, 2025
@mikehardy mikehardy merged commit a5a0d80 into invertase:main Jul 10, 2025
16 of 18 checks passed
@mikehardy mikehardy removed the Workflow: Pending Merge Waiting on CI or similar label Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants