Skip to content

Upgrade AndroidX Activity to 1.10.1 - #58689

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

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

Conversation

@Abbondanzo

Copy link
Copy Markdown
Contributor

Summary:
ReactAndroid exposes AndroidX Activity Result types in its public API but currently receives androidx.activity:activity:1.7.0 only transitively through AppCompat.

Declare Activity 1.10.1 as a direct API dependency. This aligns OSS builds with the version used internally and lets the Kotlin contract property compile directly, so the compatibility bridge from the parent diff can be removed.

Changelog:
[Android][Changed] - Upgrade AndroidX Activity to 1.10.1

Differential Revision: D121847691

Summary:

Different AndroidX artifacts expose `ActivityResultLauncher.contract` as either a Kotlin property or a Java `getContract()` method. A Kotlin subclass cannot override both source representations even though they have the same JVM signature.

Route the contract accessor through a package-private Java superclass so both representations resolve to the same JVM method. Use the bridge in production and test launchers, verify that the registered contract is preserved, and allowlist this required Java compatibility source.

Changelog:
[Android][Fixed] - Fix Activity Result launcher compilation across AndroidX source variants

Differential Revision: D121845437
Summary:
ReactAndroid exposes AndroidX Activity Result types in its public API but currently receives `androidx.activity:activity:1.7.0` only transitively through AppCompat.

Declare Activity 1.10.1 as a direct API dependency. This aligns OSS builds with the version used internally and lets the Kotlin `contract` property compile directly, so the compatibility bridge from the parent diff can be removed.

Changelog:
[Android][Changed] - Upgrade AndroidX Activity to 1.10.1

Differential Revision: D121847691
@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 25, 2026
@meta-codesync

meta-codesync Bot commented Sep 25, 2026

Copy link
Copy Markdown

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

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

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.

3 participants