Skip to content

Conversation

@chrfalch
Copy link
Collaborator

@chrfalch chrfalch commented May 14, 2025

Summary:

Expo inherits from the DevServerHelper class, and needs it to be declared as open, the same goes for its public interface.

Expo is using this in DevLauncherDevServerHelper and overrides the methods:

  • getDevServerBundleURL
  • getDevServerSplitBundleURL
  • getSourceUrl
  • getSourceMapUrl
  • isPackagerRunning

This PR fixes this by adding the open to the class and to the methods that should be open

Changelog:

[ANDROID] [FIXED] - Made DevServerHelper and its method open so that they can be overridden.

Test Plan:

Verify that we can build against Expo.

Expo inherits from the DevServerHelper class, and needs it to be declared as open, the same goes for its public interface.

This PR fixes this by adding the open to the class and to the methods that should be open
@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 May 14, 2025
@chrfalch chrfalch marked this pull request as ready for review May 14, 2025 16:35
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label May 14, 2025
@facebook-github-bot
Copy link
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@cortinico merged this pull request in 2a0c1e6.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @chrfalch in 2a0c1e6

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

react-native-bot pushed a commit that referenced this pull request May 16, 2025
Summary:
Expo inherits from the DevServerHelper class, and needs it to be declared as open, the same goes for its public interface.

Expo is using this in `DevLauncherDevServerHelper` and overrides the methods:

- getDevServerBundleURL
- getDevServerSplitBundleURL
- getSourceUrl
- getSourceMapUrl
- isPackagerRunning

This PR fixes this by adding the open to the class and to the methods that should be open

## Changelog:

[ANDROID] [FIXED] - Made DevServerHelper and its method open so that they can be overridden.

Pull Request resolved: #51323

Test Plan: Verify that we can build against Expo.

Reviewed By: cipolleschi

Differential Revision: D74876479

Pulled By: cortinico

fbshipit-source-id: 0037d6f7cee190a690ec3ec59896df04f46797b2
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @chrfalch in 84cf4d8

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. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants