Skip to content
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

fix(analytics): Type defs #8363

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

fix(analytics): Type defs #8363

wants to merge 4 commits into from

Conversation

MichaelVerdon
Copy link
Collaborator

Description

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
  • 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:

Copy link

vercel bot commented Feb 24, 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 Feb 24, 2025 3:02pm

@MichaelVerdon MichaelVerdon changed the title Type defs fix fix(analytics): Type defs fix Feb 24, 2025
@MichaelVerdon MichaelVerdon changed the title fix(analytics): Type defs fix fix(analytics):Type defs fix Feb 24, 2025
@MichaelVerdon MichaelVerdon changed the title fix(analytics):Type defs fix fix:(analytics) Type defs fix Feb 24, 2025
@MichaelVerdon MichaelVerdon changed the title fix:(analytics) Type defs fix fix(analytics): Type defs Feb 24, 2025
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.

  • potential for actual implementation on web just by hooking up web plumbing
  • return value question

* @returns {string}
*/
export function getGoogleAnalyticsClientId(analytics) {
throw new Error('getGoogleAnalyticsClientId is web-only and not yet supported.');
Copy link
Collaborator

Choose a reason for hiding this comment

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

for web we have an implementation already (I'm aware because I was in there semi-recently - it works...)

if you haven't done it, running yarn tests:macos:pod:install && yarn tests:macos:build && yarn tests:macos:test-cover runs the "web" version, and if you put an it.only or describe.only on any part of the e2e suite it'll run just those so it's fast to test+iterate

shame not to expose it since that might be half the work that went into the "other" platform analytics!

*/
export function getGoogleAnalyticsClientId(analytics) {
throw new Error('getGoogleAnalyticsClientId is web-only and not yet supported.');
return analytics;
Copy link
Collaborator

Choose a reason for hiding this comment

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

...but, @returns {string} 🤔 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was put there temporarily so the linter wouldn't get angry at me.

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.

2 participants