Skip to content

Bump androidx.compose:compose-bom from 2025.04.00 to 2025.05.00 #2273

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

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 24, 2025

Bumps androidx.compose:compose-bom from 2025.04.00 to 2025.04.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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Apr 24, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github May 8, 2025

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.

@LokmaneKrizou
Copy link
Contributor

@skyscanner-backpack-bot
Copy link
Contributor

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.

Generated by 🚫 Danger Kotlin against 58f8445

@skyscanner-backpack-bot
Copy link
Contributor

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.

Generated by 🚫 Danger Kotlin against 66f01c4

@skyscanner-backpack-bot
Copy link
Contributor

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.

Generated by 🚫 Danger Kotlin against 414af06

@peterInTown peterInTown changed the title Bump androidx.compose:compose-bom from 2025.04.00 to 2025.04.01 Bump androidx.compose:compose-bom from 2025.04.00 to 2025.05.00 May 19, 2025
@skyscanner-backpack-bot
Copy link
Contributor

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.

Generated by 🚫 Danger Kotlin against f0a71ec

import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalConfiguration

@SuppressLint("ConfigurationScreenWidthHeight")
Copy link
Contributor

Choose a reason for hiding this comment

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

never add a SupressLint as a solution, this should be a last resort, instead we should check whats the correct way to fix this by reading the lint error message, if u can share it here so we can check it, it would be great!

Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2025-05-20 at 11 25 24 This is the error after bumping the version. I tried using LocalWindowInfo.current.containerSize, However, it would change some text size for some reason. I was planning to create another ticket for more inverstigation on it and having suppress lint as a temporart solution for now

Copy link
Contributor

@LokmaneKrizou LokmaneKrizou May 20, 2025

Choose a reason for hiding this comment

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

can u share the text size issue here please?

@LokmaneKrizou LokmaneKrizou requested a review from Copilot May 20, 2025 08:14
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the Compose BOM version and adds lint suppressions for configuration checks in specific Compose utility and component files.

  • Bumps androidx.compose:compose-bom from 2025.04.00 to 2025.05.00
  • Adds @SuppressLint("ConfigurationScreenWidthHeight") annotations to composable helpers and notifications to silence lint warnings

Reviewed Changes

Copilot reviewed 37 out of 37 changed files in this pull request and generated 2 comments.

File Description
gradle/libs.versions.toml Updated compose-bom version to 2025.05.00
backpack-compose/src/main/kotlin/.../DeviceUtil.kt Imported and applied lint suppression on device‐detection utils
backpack-compose/src/main/kotlin/.../BpkFloatingNotification.kt Imported and applied lint suppression on floating notification

Comment on lines 25 to 39
@SuppressLint("ConfigurationScreenWidthHeight")
@Composable
internal fun isSmallTablet(): Boolean {
val configuration = LocalConfiguration.current
return configuration.screenWidthDp > SMALL_TABLET_WIDTH
}

@SuppressLint("ConfigurationScreenWidthHeight")
@Composable
internal fun isTablet(): Boolean {
val configuration = LocalConfiguration.current
return configuration.screenWidthDp > TABLET_WIDTH
}

@SuppressLint("ConfigurationScreenWidthHeight")
Copy link
Preview

Copilot AI May 20, 2025

Choose a reason for hiding this comment

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

[nitpick] Instead of repeating @SuppressLint on each function, consider applying @file:SuppressLint("ConfigurationScreenWidthHeight") at the top of the file to reduce duplication and improve maintainability.

Suggested change
@SuppressLint("ConfigurationScreenWidthHeight")
@Composable
internal fun isSmallTablet(): Boolean {
val configuration = LocalConfiguration.current
return configuration.screenWidthDp > SMALL_TABLET_WIDTH
}
@SuppressLint("ConfigurationScreenWidthHeight")
@Composable
internal fun isTablet(): Boolean {
val configuration = LocalConfiguration.current
return configuration.screenWidthDp > TABLET_WIDTH
}
@SuppressLint("ConfigurationScreenWidthHeight")
@file:SuppressLint("ConfigurationScreenWidthHeight")
@Composable
internal fun isSmallTablet(): Boolean {
val configuration = LocalConfiguration.current
return configuration.screenWidthDp > SMALL_TABLET_WIDTH
}
@Composable
internal fun isTablet(): Boolean {
val configuration = LocalConfiguration.current
return configuration.screenWidthDp > TABLET_WIDTH
}

Copilot uses AI. Check for mistakes.

Copy link
Contributor

Choose a reason for hiding this comment

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

nice one bot, instead of pointing out the risks of using SupressLint, you give an optimal way to supress the whole file, bravo 👏

@@ -48,6 +49,7 @@ import net.skyscanner.backpack.compose.floatingnotification.internal.floatingNot
import net.skyscanner.backpack.compose.icon.BpkIcon
import net.skyscanner.backpack.compose.tokens.BpkSpacing

@SuppressLint("ConfigurationScreenWidthHeight")
Copy link
Preview

Copilot AI May 20, 2025

Choose a reason for hiding this comment

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

[nitpick] You can apply @file:SuppressLint("ConfigurationScreenWidthHeight") for the entire file instead of per-function suppression to keep the file cleaner and avoid repetitive annotations.

Suggested change
@SuppressLint("ConfigurationScreenWidthHeight")

Copilot uses AI. Check for mistakes.

@skyscanner-backpack-bot
Copy link
Contributor

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.

Generated by 🚫 Danger Kotlin against 4ed76fd

import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalWindowInfo
import androidx.compose.ui.unit.dp

Copy link
Contributor

Choose a reason for hiding this comment

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

nice work!
before merging this PR, can you run this change locally in skyscanner app to ensure we don't introduce breaking changes to the font, that would be great

Copy link
Contributor

Choose a reason for hiding this comment

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

You meant ./gradlew :app:recordScreenshots? I have run it and it looks fine to me

Copy link
Contributor

Choose a reason for hiding this comment

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

i mean publish to maven local and try the version on skyscanner app :D

dependabot bot and others added 7 commits May 20, 2025 14:04
@LokmaneKrizou LokmaneKrizou force-pushed the dependabot/gradle/androidx.compose-compose-bom-2025.04.01 branch from 4ed76fd to 39fccf2 Compare May 20, 2025 13:04
@skyscanner-backpack-bot
Copy link
Contributor

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.

Generated by 🚫 Danger Kotlin against 39fccf2

@skyscanner-backpack-bot
Copy link
Contributor

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.

Generated by 🚫 Danger Kotlin against a2a7543

@skyscanner-backpack-bot
Copy link
Contributor

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.

Generated by 🚫 Danger Kotlin against 592c84d

@peterInTown peterInTown merged commit 34beb84 into main May 21, 2025
7 checks passed
@peterInTown peterInTown deleted the dependabot/gradle/androidx.compose-compose-bom-2025.04.01 branch May 21, 2025 15:33
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.

4 participants