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 to Kotlin 1.9.24, w/ corresponding Compose, KSP #1242

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

steve-the-edwards
Copy link
Contributor

@steve-the-edwards steve-the-edwards commented Dec 16, 2024

Kotlin and KSP 1.9.24
compose compiler - 1.5.14
compose bom - 2024.09.02
androidx.lifecycle to 2.8.1

@steve-the-edwards steve-the-edwards changed the title Update Kotlin, Compose, KSP Update to Kotlin 1.9.24, w/ corresponding Compose, KSP Dec 16, 2024
@steve-the-edwards steve-the-edwards force-pushed the sedwards/update-versions branch 2 times, most recently from 8004eaa to ec62f2d Compare December 16, 2024 16:12
event.changes.forEach { change ->
if (change.pressed != change.previousPressed) change.consume()
private fun Modifier.disableTouchInput(): Modifier =
then(
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't need then when calling other modifier factories that already properly chain. This actually ends up calling then twice which i'm surprised doesn't have negtive side effects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was giving me a lint error though for not calling then 🤔 . Maybe i need to try again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nvm, must have been in an older version of the refactor I had done. No warning/lint now!

@@ -32,7 +31,9 @@ class ComposeLifecycleOwnerTest {
composeTestRule.setContent {
parentLifecycle.currentState = RESUMED
childLifecycleOwner = rememberChildLifecycleOwner(parentLifecycle)
CompositionLocalProvider(LocalLifecycleOwner provides childLifecycleOwner) {
CompositionLocalProvider(
androidx.lifecycle.compose.LocalLifecycleOwner provides childLifecycleOwner
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why remove this import?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just didn't get the import in after the change to the androidx.lifecycle version. will add.

@steve-the-edwards steve-the-edwards merged commit 74635d9 into main Dec 16, 2024
30 checks passed
@steve-the-edwards steve-the-edwards deleted the sedwards/update-versions branch December 16, 2024 20:02
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