-
Notifications
You must be signed in to change notification settings - Fork 35
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
Bump androidx.compose:compose-bom from 2025.04.00 to 2025.05.00 #2273
Conversation
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. |
ticket created |
Generated by 🚫 Danger Kotlin against 58f8445 |
Generated by 🚫 Danger Kotlin against 66f01c4 |
Generated by 🚫 Danger Kotlin against 414af06 |
Generated by 🚫 Danger Kotlin against f0a71ec |
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.platform.LocalConfiguration | ||
|
||
@SuppressLint("ConfigurationScreenWidthHeight") |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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?
There was a problem hiding this 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 |
@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") |
There was a problem hiding this comment.
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.
@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.
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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.
@SuppressLint("ConfigurationScreenWidthHeight") |
Copilot uses AI. Check for mistakes.
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 | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Bumps androidx.compose:compose-bom from 2025.04.00 to 2025.04.01. --- updated-dependencies: - dependency-name: androidx.compose:compose-bom dependency-version: 2025.04.01 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
4ed76fd
to
39fccf2
Compare
Generated by 🚫 Danger Kotlin against 39fccf2 |
Generated by 🚫 Danger Kotlin against a2a7543 |
Generated by 🚫 Danger Kotlin against 592c84d |
Bumps androidx.compose:compose-bom from 2025.04.00 to 2025.04.01.
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)