Skip to content

Register CatalystInstanceImpl with modern CDP backend#43251

Closed
huntie wants to merge 2 commits into
facebook:mainfrom
huntie:export-D51458010
Closed

Register CatalystInstanceImpl with modern CDP backend#43251
huntie wants to merge 2 commits into
facebook:mainfrom
huntie:export-D51458010

Conversation

@huntie

@huntie huntie commented Feb 29, 2024

Copy link
Copy Markdown
Member

Summary:
Integrates the modern CDP backend with CatalystInstanceImpl (the React Native instance implementation) on Android.

This complete the modern CDP integration for Bridge.

Changelog: [Internal]

Differential Revision: D51458010

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Feb 29, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51458010

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51458010

@huntie huntie force-pushed the export-D51458010 branch from 2c1cd4a to e9f67ea Compare March 26, 2024 11:52
huntie added 2 commits March 26, 2024 04:52
…facebook#43250)

Summary:

Integrates the modern CDP backend with `ReactInstanceManager` on Android.

`ReactInstanceManager` is equivalent to the CDP page / `HostTarget` concept, therefore we register the `addPage`/`removePage` calls with this object's lifecycle.

Implementation notes:
- `ReactInstanceManagerInspectorTarget` is created to avoid converting `ReactInstanceManager` to JNI (impacting tests).
- Its constructor receives a `TargetDelegate` object, so that we avoid passing the entire `ReactInstanceManager` class through (avoids cyclic dependency from `com.facebook.react.bridge` to `com.facebook.react`).

Changelog:
[Internal] - Register `ReactInstanceManager` with modern CDP backend

Reviewed By: motiz88

Differential Revision: D51456960
…#43251)

Summary:

Integrates the modern CDP backend with `CatalystInstanceImpl` (the React Native instance implementation) on Android.

This complete the modern CDP integration for Bridge.

Changelog: [Internal]

Differential Revision: D51458010
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51458010

@huntie huntie force-pushed the export-D51458010 branch from e9f67ea to 159f5ec Compare March 26, 2024 11:53
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51458010

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 27, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in bfb0319.

@huntie huntie deleted the export-D51458010 branch September 9, 2024 12:02
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. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants