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

refactor: move analytics abstractions to shared #658

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

boringcactus
Copy link
Member

Summary

Ticket: GA for Android

This will let us be confident we're using consistent parameter names between iOS and Android.

I've jumped through a few hoops to preserve the class_name parameter for existing analytics events, but coming up with a value to use there for newly created events may not be straightforward, and we should probably pull these out into constants if they are in fact load-bearing; I'll ask at standup if these are important.

iOS

  • [ ] If you added any user-facing strings on iOS, are they included in Localizable.xcstrings?
    • [ ] Add temporary machine translations, marked "Needs Review"

android

  • [ ] All user-facing strings added to strings resource
  • [ ] Expensive calculations are run in withContext(Dispatchers.Default) where possible

Testing

Checked that all the code still compiles and logs that it's not sending events due to running in debug mode at the times I'd expect it to try to send events. Updated the one existing unit test that touches analytics to pass with the new setup.

@boringcactus boringcactus requested a review from a team as a code owner January 16, 2025 22:01
Copy link
Contributor

@BrandonTR BrandonTR left a comment

Choose a reason for hiding this comment

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

Nice!

/**
* Swift requires forwards compatibility for the SwiftUI ColorScheme enum; presumably Apple is
* planning to implement an [Aing-Tii](https://starwars.fandom.com/wiki/Aing-Tii/Legends) color
* scheme in iOS 50.
Copy link
Contributor

Choose a reason for hiding this comment

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

😆

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