Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Update to Compose + UI v0.1.0-dev12 #621

Merged
merged 3 commits into from
May 29, 2020
Merged

Update to Compose + UI v0.1.0-dev12 #621

merged 3 commits into from
May 29, 2020

Conversation

chrisbanes
Copy link
Owner

No description provided.

@@ -16,20 +16,7 @@

package app.tivi.common.compose

import androidx.compose.Composable
import androidx.compose.Providers
import androidx.compose.staticAmbientOf
import app.tivi.util.TiviDateFormatter

val TiviDateFormatterAmbient = staticAmbientOf<TiviDateFormatter>()

Choose a reason for hiding this comment

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

a whole file for an ambient? Consider creating a ProvideDateFormatter here similar to insets and renaming the file.

Copy link
Owner Author

@chrisbanes chrisbanes May 28, 2020

Choose a reason for hiding this comment

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

From what I've seen from Adam, we shouldn't hide the APIs around ambients too much. ProvideInsets is a bit special because it needs to observe a LiveData, so wrapping it up makes sense to me. TiviDateFormatterAmbient is a very simple static ambient though.

Copy link
Owner Author

Choose a reason for hiding this comment

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

/cc @adamp

@chrisbanes chrisbanes merged commit 17d4a49 into master May 29, 2020
@chrisbanes chrisbanes deleted the cb/dev12 branch May 29, 2020 06:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants