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

Stop returning the resources sdk level in RuntimeEnvironment.getQualifiers #9070

Merged
merged 1 commit into from May 10, 2024

Conversation

copybara-service[bot]
Copy link

Stop returning the resources sdk level in RuntimeEnvironment.getQualifiers

Previously, the Build.VERSION.RESOURCES_SDK_INT constant was returned as a
suffix in the call to RuntimeEnvironment.getQualifiers. For example, it could
contain the suffix 'v24'.

There was not much value in returning the SDK level. It was unused, except for
RuntimeEnvironment.setQualifiers checking that the sdk level matched
RuntimeEnvironment.getApiLevel(). It is not possible to set the SDK level using
RuntimeEnvironment.setQualifiers.

RESOURCES_SDK_INT causes problems in the current Android V SDK, as it is higher
than the SDK level. This causes
RuntimeEnvironment.setQualifiers(RuntimeEnvironment.getQualifiers) to throw an
Exception.

Because this API level is unused, it can be removed from the result of
RuntimeEnvironment.getQualifiers.

…fiers

Previously, the Build.VERSION.RESOURCES_SDK_INT constant was returned as a
suffix in the call to RuntimeEnvironment.getQualifiers. For example, it could
contain the suffix 'v24'.

There was not much value in returning the SDK level. It was unused, except for
RuntimeEnvironment.setQualifiers checking that the sdk level matched
RuntimeEnvironment.getApiLevel(). It is not possible to set the SDK level using
RuntimeEnvironment.setQualifiers.

RESOURCES_SDK_INT causes problems in the current Android V SDK, as it is higher
than the SDK level. This causes
RuntimeEnvironment.setQualifiers(RuntimeEnvironment.getQualifiers) to throw an
Exception.

Because this API level is unused, it can be removed from the result of
RuntimeEnvironment.getQualifiers.

PiperOrigin-RevId: 632580756
@copybara-service copybara-service bot merged commit 8e8e283 into google May 10, 2024
@copybara-service copybara-service bot deleted the piper_632391415 branch May 10, 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.

None yet

1 participant