Skip to content

Update React Native Android API dump for Kotlin 2.2 ABI changes#56833

Closed
CalixTang wants to merge 1 commit into
facebook:mainfrom
CalixTang:export-D105216824
Closed

Update React Native Android API dump for Kotlin 2.2 ABI changes#56833
CalixTang wants to merge 1 commit into
facebook:mainfrom
CalixTang:export-D105216824

Conversation

@CalixTang
Copy link
Copy Markdown
Contributor

Summary:
Kotlin 2.2 changes the ABI for interface methods with default implementations. In Kotlin 2.1, these were emitted as 'public abstract' in the bytecode. In Kotlin 2.2, they are emitted as 'public' (non-abstract) with DefaultImpls. This causes React Native's binary compatibility validator to detect API changes.

Updated ReactAndroid.api dump file by running:
buck2 run //xplat/js/scripts/rn-api:generate-rn-api-metadata

Affected interfaces:

  • ReactMarker.FabricMarkerListener
  • AppearanceModule.OverrideColorScheme
  • RCTEventEmitter
  • RCTModernEventEmitter
  • ReactNativeHost (new methods: getBundleFilePath, setBundleFilePath)
  • DialogRootViewGroup (new method: onChildStartedNativeGesture)

Differential Revision: D105216824

Summary:
Kotlin 2.2 changes the ABI for interface methods with default implementations. In Kotlin 2.1, these were emitted as 'public abstract' in the bytecode. In Kotlin 2.2, they are emitted as 'public' (non-abstract) with DefaultImpls. This causes React Native's binary compatibility validator to detect API changes.

Updated ReactAndroid.api dump file by running:
buck2 run //xplat/js/scripts/rn-api:generate-rn-api-metadata

Affected interfaces:
- ReactMarker.FabricMarkerListener
- AppearanceModule.OverrideColorScheme
- RCTEventEmitter
- RCTModernEventEmitter
- ReactNativeHost (new methods: getBundleFilePath, setBundleFilePath)
- DialogRootViewGroup (new method: onChildStartedNativeGesture)

Differential Revision: D105216824
@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 May 15, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 15, 2026

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

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

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.

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

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.

@meta-codesync meta-codesync Bot closed this in 4695ac5 May 15, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 15, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 15, 2026

This pull request has been merged in 4695ac5.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by Alexey Soshin in 4695ac5

When will my fix make it into a release? | How to file a pick request?

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. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants