Skip to content

Updated to latest firebase analytics for destination #17

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
merged 2 commits into from
Jul 23, 2021

Conversation

migs647
Copy link
Contributor

@migs647 migs647 commented Jul 23, 2021

Updated to the newest version which had some deprecations around screen tracking. Also fixed an issue with track method skipping if properties weren't included.

Comment on lines 106 to 109
var bundledProperties: Bundle?
payload.properties.let {
val formattedProperties = formatProperties(it)
firebaseAnalytics.logEvent(eventName, formattedProperties)
analytics.log("firebaseAnalytics.logEvent($eventName, $formattedProperties)")
bundledProperties = formatProperties(it)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

more idiomatic to write

val bundledProperties = payload.properties?.let {
  formatProperties(it)
}

Copy link
Contributor

@prayansh prayansh left a comment

Choose a reason for hiding this comment

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

Lets also add the logic to replace the forbidden characters with _ instead of filtering them out here. https://github.com/segmentio/analytics-kotlin/pull/17/files#diff-eb2eec385880c84c9b2512d6b31654185e07bd923c4544014e1bb0a94d37f7d8R223-R227

@migs647 migs647 merged commit b93ff18 into main Jul 23, 2021
@migs647 migs647 deleted the migs647/firebase_kotlin branch July 23, 2021 22:45
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