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

Deprecate Util.SDK_INT in favor of Build.VERSION.SDK_INT #2285

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MGaetan89
Copy link
Contributor

Util.SDK_INT was introduced to be able to simulate any SDK version during tests. This is possible by using Robolectric's @Config(sdk) annotation.
All usages of Util.SDK_INT have been replaced by Build.VERSION.SDK_INT.

This is a similar change to what was done in #2107.

@MGaetan89 MGaetan89 force-pushed the deprecate_util_sdkint branch 6 times, most recently from bbb8d60 to 4b6edd6 Compare April 2, 2025 17:10
@MGaetan89 MGaetan89 force-pushed the deprecate_util_sdkint branch from 4b6edd6 to 456440d Compare April 9, 2025 18:07
`Util.SDK_INT` was introduced to be able to simulate any SDK version during tests.
This is possible by using Robolectric's `@Config(sdk)` annotation.
All usages of `Util.SDK_INT` have been replaced by `Build.VERSION.SDK_INT`.

This is a similar change to what was done in androidx#2107.
@MGaetan89 MGaetan89 force-pushed the deprecate_util_sdkint branch from 456440d to 59780a8 Compare April 10, 2025 13: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.

1 participant