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

Update projects to Kotlin 2.0 #476

Merged
merged 15 commits into from
Sep 10, 2024
Merged

Update projects to Kotlin 2.0 #476

merged 15 commits into from
Sep 10, 2024

Conversation

tiwiz
Copy link
Contributor

@tiwiz tiwiz commented Sep 2, 2024

Subsequent to #475

@tiwiz tiwiz requested a review from alexvanyo September 2, 2024 15:56
@tiwiz tiwiz enabled auto-merge September 10, 2024 18:39
)

data class State(val key: String = data.keys.first(), val items: List<String> = data.values.first())
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: it feels a bit weird that there are default parameters here, I wouldn't expect a State data object like this one to have them and pulling from static resources. (Granted that this is static data which is unrealistic in the first plac, doesn't matter too much.

viewModel.supportingState.collect { items ->
binding?.supportingView?.updateItems(items)
viewModel.state.collect { state ->
println("Add main content")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I think this can be removed?

@tiwiz tiwiz merged commit b9e3899 into android:main Sep 10, 2024
2 checks passed
@tiwiz tiwiz deleted the Kotlin-2.0 branch September 11, 2024 06:22
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