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.

Copy link

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions github-actions bot added the Stale label Mar 24, 2025
@github-actions github-actions bot closed this Apr 8, 2025
@mikehardy mikehardy reopened this Apr 8, 2025
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 70.62%. Comparing base (1126f2f) to head (7651c99).
Report is 82 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8363      +/-   ##
==========================================
- Coverage   71.28%   70.62%   -0.66%     
==========================================
  Files         159      187      +28     
  Lines        6597     7905    +1308     
  Branches     1521     1838     +317     
==========================================
+ Hits         4702     5582     +880     
- Misses       1771     2129     +358     
- Partials      124      194      +70     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions bot removed the Stale label Apr 8, 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.

2 participants