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

Trikot analytics revamp #206

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Trikot analytics revamp #206

wants to merge 3 commits into from

Conversation

sdetilly
Copy link
Contributor

@sdetilly sdetilly commented Dec 6, 2023

Description

We deprecate the dependecy to trikot-streams with the following changes

  • Deprecate fun distinctAppId(): Promise<String> and add suspend fun distinctAppId(): String
  • Deprecate AnalyticsService.trackEvent and AnalyticsService. identifyUser, which uses publishers and replace them with functions that don't use publishers.
  • Deprecate TrackableViewModelAction, because it uses Publishers in its constructor in favour of SimpleTrackableViewModelAction

Motivation and Context

Newer projects should use Coroutines and flows, not trikot-streams.

How Has This Been Tested?

By running the trikot-viewmodels sample

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

if (task.isSuccessful && result != null) {
continuation.resume(result)
} else if (!task.isSuccessful) {
continuation.cancel(Throwable(task.exception))
Copy link
Member

Choose a reason for hiding this comment

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

Typed exceptions might help catching specific errors here.

also, why not resumeWithException

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 for .resumeWithException 🙂

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