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

Move BridgelessDevSupportManager inside .devsupport #46914

Closed
wants to merge 1 commit into from

Conversation

cortinico
Copy link
Contributor

@cortinico cortinico commented Oct 9, 2024

The BridgelessDevSupportManager should have lived inside the .devsupport package alongside all the other
devsupport related tooling.

It was instead created inside .runtime causing a tight coupling with ReactHostImpl.
This made it impossible for Frameworks to customize it (i.e. in Expo GO) also because there was a circular
dependency between ReactHostImpl and BridgelessDevSupportManager

In this diff I'm:

  1. Breaking the circular dependency by using ReactHostDevHelper
  2. Updating all the parameters to reference ReactHost rather than ReactHostImpl
  3. Moving BridgelessDevSupportManager to the .devsupport package.

This is breaking for users that are manually composing a BridgelessDevSupportManager or
that are extending the ReactInstanceDevHelper.

  • ReactInstanceDevHelper has 3 new method which will have to be implemented.
  • BridgelessDevSupportManager is now living in a different package.

Changelog:
[Android] [Breaking] - Add 3 methods to ReactInstanceDevHelper

Reviewed By: rshest

Differential Revision: D64105790

@facebook-github-bot facebook-github-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 Oct 9, 2024
@facebook-github-bot
Copy link
Contributor

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

@cortinico cortinico marked this pull request as draft October 9, 2024 10:48
@cortinico
Copy link
Contributor Author

cc @alanjhughes

cortinico added a commit to cortinico/react-native that referenced this pull request Oct 9, 2024
…ook#46914)

Summary:

This is a WIP

Changelog:
[Android] [Changed] - Allow customization of BridgelessDevSupportManager for Expo Go

Reviewed By: rshest

Differential Revision: D64105790
@facebook-github-bot
Copy link
Contributor

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

cortinico added a commit to cortinico/react-native that referenced this pull request Oct 10, 2024
…ook#46914)

Summary:

This is a WIP

Changelog:
[Android] [Changed] - Allow customization of BridgelessDevSupportManager for Expo Go

Reviewed By: rshest

Differential Revision: D64105790
@facebook-github-bot
Copy link
Contributor

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

@cortinico cortinico changed the title Allow customization of BridgelessDevSupportManager for Expo Go Move BridgelessDevSupportManager inside .devsupport Oct 15, 2024
@facebook-github-bot
Copy link
Contributor

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

@cortinico cortinico marked this pull request as ready for review October 16, 2024 10:32
@facebook-github-bot
Copy link
Contributor

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

cortinico added a commit to cortinico/react-native that referenced this pull request Oct 16, 2024
Summary:
Pull Request resolved: facebook#46914

The `BridgelessDevSupportManager` should have lived inside the `.devsupport` package alongside all the other
devsupport related tooling.

It was instead created inside `.runtime` causing a tight coupling with `ReactHostImpl`.
This made it impossible for Frameworks to customize it (i.e. in Expo GO) also because there was a circular
dependency between ReactHostImpl and BridgelessDevSupportManager

In this diff I'm:
1. Breaking the circular dependency by using `ReactHostDevHelper`
2. Updating all the parameters to reference `ReactHost` rather than `ReactHostImpl`
3. Moving BridgelessDevSupportManager to the `.devsupport` package.

This is breaking for users that are manually composing a `BridgelessDevSupportManager` or
that are extending the `ReactInstanceDevHelper`.

- `ReactInstanceDevHelper` has 3 new method which will have to be implemented.
- `BridgelessDevSupportManager` is now living in a different package.

Changelog:
[Android] [Breaking] - Add 3 methods to ReactInstanceDevHelper

Reviewed By: rshest

Differential Revision: D64105790
cortinico added a commit to cortinico/react-native that referenced this pull request Oct 16, 2024
Summary:
Pull Request resolved: facebook#46914

The `BridgelessDevSupportManager` should have lived inside the `.devsupport` package alongside all the other
devsupport related tooling.

It was instead created inside `.runtime` causing a tight coupling with `ReactHostImpl`.
This made it impossible for Frameworks to customize it (i.e. in Expo GO) also because there was a circular
dependency between ReactHostImpl and BridgelessDevSupportManager

In this diff I'm:
1. Breaking the circular dependency by using `ReactHostDevHelper`
2. Updating all the parameters to reference `ReactHost` rather than `ReactHostImpl`
3. Moving BridgelessDevSupportManager to the `.devsupport` package.

This is breaking for users that are manually composing a `BridgelessDevSupportManager` or
that are extending the `ReactInstanceDevHelper`.

- `ReactInstanceDevHelper` has 3 new method which will have to be implemented.
- `BridgelessDevSupportManager` is now living in a different package.

Changelog:
[Android] [Breaking] - Add 3 methods to ReactInstanceDevHelper

Reviewed By: rshest

Differential Revision: D64105790
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

cortinico added a commit to cortinico/react-native that referenced this pull request Oct 16, 2024
Summary:
Pull Request resolved: facebook#46914

The `BridgelessDevSupportManager` should have lived inside the `.devsupport` package alongside all the other
devsupport related tooling.

It was instead created inside `.runtime` causing a tight coupling with `ReactHostImpl`.
This made it impossible for Frameworks to customize it (i.e. in Expo GO) also because there was a circular
dependency between ReactHostImpl and BridgelessDevSupportManager

In this diff I'm:
1. Breaking the circular dependency by using `ReactHostDevHelper`
2. Updating all the parameters to reference `ReactHost` rather than `ReactHostImpl`
3. Moving BridgelessDevSupportManager to the `.devsupport` package.

This is breaking for users that are manually composing a `BridgelessDevSupportManager` or
that are extending the `ReactInstanceDevHelper`.

- `ReactInstanceDevHelper` has 3 new method which will have to be implemented.
- `BridgelessDevSupportManager` is now living in a different package.

Changelog:
[Android] [Breaking] - Add 3 methods to ReactInstanceDevHelper

Reviewed By: rshest

Differential Revision: D64105790
Summary:
Pull Request resolved: facebook#46914

The `BridgelessDevSupportManager` should have lived inside the `.devsupport` package alongside all the other
devsupport related tooling.

It was instead created inside `.runtime` causing a tight coupling with `ReactHostImpl`.
This made it impossible for Frameworks to customize it (i.e. in Expo GO) also because there was a circular
dependency between ReactHostImpl and BridgelessDevSupportManager

In this diff I'm:
1. Breaking the circular dependency by using `ReactHostDevHelper`
2. Updating all the parameters to reference `ReactHost` rather than `ReactHostImpl`
3. Moving BridgelessDevSupportManager to the `.devsupport` package.

This is breaking for users that are manually composing a `BridgelessDevSupportManager` or
that are extending the `ReactInstanceDevHelper`.

- `ReactInstanceDevHelper` has 3 new method which will have to be implemented.
- `BridgelessDevSupportManager` is now living in a different package.

Changelog:
[Android] [Breaking] - Add 3 methods to ReactInstanceDevHelper

Reviewed By: rshest

Differential Revision: D64105790
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 16, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in c867aba.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cortinico in c867aba

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. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants