Skip to content

Remove obsolete Android SDK compatibility shims - #58726

Open
Abbondanzo wants to merge 2 commits into
react:mainfrom
Abbondanzo:export-D122209144
Open

Abbondanzo wants to merge 2 commits into
react:mainfrom
Abbondanzo:export-D122209144

Conversation

@Abbondanzo

Copy link
Copy Markdown
Contributor

Summary:
Use Build.VERSION_CODES and the framework window attribute directly for APIs available in the current compile SDK, removing obsolete numeric compatibility shims. Retain only the Android 17 version shim, which is newer than the internal compile SDK.

Remove a stale DisplayMetrics dependency that pulled edge-to-edge window code into unrelated consumers.

Changelog:
[Internal]

Differential Revision: D122209144

Summary:

Use Android 15's `TextView.setUseBoundsForWidth` API directly instead of resolving and invoking it through reflection. The call remains guarded by the runtime SDK version.

Preserve the shared numeric Android 15 version compatibility shim for builds that compile against older Android SDKs.

Changelog:
[Internal]

Differential Revision: D122183946
Summary:
Use `Build.VERSION_CODES` and the framework window attribute directly for APIs available in the current compile SDK, removing obsolete numeric compatibility shims. Retain only the Android 17 version shim, which is newer than the internal compile SDK.

Remove a stale `DisplayMetrics` dependency that pulled edge-to-edge window code into unrelated consumers.

Changelog:
[Internal]

Differential Revision: D122209144
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 28, 2026
@meta-codesync

meta-codesync Bot commented Sep 28, 2026

Copy link
Copy Markdown

@Abbondanzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D122209144.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant