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

Bump androidx.compose:compose-bom from 2024.08.00 to 2024.09.01 #2089

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 11, 2024

Bumps androidx.compose:compose-bom from 2024.08.00 to 2024.09.01.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps androidx.compose:compose-bom from 2024.08.00 to 2024.09.01.

---
updated-dependencies:
- dependency-name: androidx.compose:compose-bom
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Sep 11, 2024
Copy link
Contributor

github-actions bot commented Sep 16, 2024

Warnings
⚠️ One or more component files were updated, but the tests weren't updated. If your change is not covered by existing tests please add snapshot tests.
⚠️

One or more component files were updated, but the docs screenshots weren't updated. If the changes are visual or it is a new component please regenerate the screenshots via ./gradlew recordScreenshots.

⚠️

One or more component files were updated, but README.md wasn't updated. If your change contains API changes/additions or a new component please update the relevant component README.

⚠️

One or more package files were created, but BpkComposeComponentUsageDetector.kt wasn't updated. If your component is an equivalent of a core component please add it to the detector.

Generated by 🚫 Danger Kotlin against d845075

@@ -119,7 +119,7 @@ fun IconsStory(modifier: Modifier = Modifier) {
contentAlignment = Alignment.Center,
modifier = Modifier
.border(Dp.Hairline, BpkTheme.colors.line)
.clickable {
.clickableWithRipple {
Copy link
Contributor

Choose a reason for hiding this comment

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

renamed this function and made it public, so we don't need to maintain two versions (one in the app and one in backpack)

@@ -51,18 +51,6 @@ class BpkBottomSheetState internal constructor(
internal val delegate: SheetState,
) {

constructor(
Copy link
Contributor

Choose a reason for hiding this comment

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

we only ever use this with the remember function. there was a breaking change with a new density param, but as we're only using it with the remember function anyways might as well remove it instead

@@ -53,18 +53,6 @@ class BpkModalBottomSheetState internal constructor(
internal val delegate: SheetState,
) {

constructor(
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

@@ -74,7 +75,12 @@ internal fun BpkButtonImpl(
) {
val clickable = enabled && !loading

CompositionLocalProvider(LocalRippleTheme provides ButtonRippleTheme(type.rippleColor())) {
CompositionLocalProvider(
LocalRippleConfiguration provides RippleConfiguration(
Copy link
Contributor

Choose a reason for hiding this comment

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

ripple theme is gone - there's now RippleConfiguration

@@ -153,7 +154,7 @@ private fun BpkCheckboxImpl(
) {
// our design system isn't designed with the minimum touch target in mind at the moment.
// Disable the enforcement to avoid the extra padding
CompositionLocalProvider(LocalMinimumTouchTargetEnforcement provides false) {
CompositionLocalProvider(LocalMinimumInteractiveComponentSize provides Dp.Unspecified) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this has also been changed

@@ -85,7 +85,7 @@ internal fun BpkChipImpl(
selected = selected,
enabled = enabled,
interactionSource = interactionSource,
indication = rememberRipple(),
indication = bpkRipple(),
Copy link
Contributor

Choose a reason for hiding this comment

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

added a new helper function for using the ripple directly

animationSpec = interactiveBackgroundAnimationSpec,
label = "background scale",
)
override fun hashCode(): Int = -1
Copy link
Contributor

Choose a reason for hiding this comment

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

the example had that?! i am not sure when this is actually used and has an impact. but it was working as expected 🤷‍♀️

override fun equals(other: Any?) = other === this
}

private class InteractiveBackgroundIndicationNode(private val interactionSource: InteractionSource) : Modifier.Node(), DrawModifierNode {
Copy link
Contributor

Choose a reason for hiding this comment

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

migrated these to the new api

// It will be added in Compose 1.7, so we'll migrate it after that
@Suppress("ModifierComposed")
internal fun Modifier.clickable(
@Suppress("ModifierComposable")
Copy link
Contributor

Choose a reason for hiding this comment

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

the main compose docs now mention it's better to use a composable function than the composed API. it's not really feasible to move to the node api for this as the whole clickable node is internal

Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 19, 2024

A newer version of androidx.compose:compose-bom exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Copy link
Contributor

@alejandrorosas alejandrorosas left a comment

Choose a reason for hiding this comment

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

looks good after the changes on the spinner and progressbar 😄
Q: don't we have screenshot tests for progressbar or is that they are pixel perfect to the previous version?

@marianeum
Copy link
Contributor

marianeum commented Sep 19, 2024

Yeah they're exactly the same. The main changes in the screenshots seem to be some shadow behaviour changes (and the progress spinner but that one's fine), so anything without shadows didn't change.

@marianeum marianeum merged commit 0e3c16b into main Sep 19, 2024
7 checks passed
@marianeum marianeum deleted the dependabot/gradle/androidx.compose-compose-bom-2024.09.01 branch September 19, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants