Skip to content

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.

4 participants