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

Make PackagerConnectionSettings class open again #47005

Conversation

gabrieldonadel
Copy link
Collaborator

Summary:

When migrating PackagerConnectionSettings from Java to Kotlin in #45800 the new class ended up being declared as final, causing a breaking change in 0.76.

We should add the open directive to PackagerConnectionSettings.kt to restore the old behavior. That would be crucial for the expo-dev-client package, given that Expo needs to be able to extend this class in order to overwrite the debugServerHost value.

Changelog:

[ANDROID] [FIXED] - Make PackagerConnectionSettings class open again

Test Plan:

Run RNTester on Android

@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: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Oct 14, 2024
@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 facebook-github-bot added the Merged This PR has been merged. label Oct 14, 2024
@facebook-github-bot
Copy link
Contributor

@cortinico merged this pull request in 4dd47ee.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @gabrieldonadel in 4dd47ee

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

@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/open-packager-connection-settings branch October 14, 2024 13:05
blakef pushed a commit that referenced this pull request Oct 15, 2024
Summary:
When migrating `PackagerConnectionSettings` from Java to Kotlin in #45800 the new class ended up being declared as final, causing a breaking change in 0.76.

We should add the `open` directive to `PackagerConnectionSettings.kt` to restore the old behavior. That would be crucial for the `expo-dev-client` package, given that Expo needs to be able to extend this class in order to overwrite the `debugServerHost` value.

## Changelog:

[ANDROID] [FIXED] - Make PackagerConnectionSettings class open again

Pull Request resolved: #47005

Test Plan: Run RNTester on Android

Reviewed By: huntie

Differential Revision: D64323645

Pulled By: cortinico

fbshipit-source-id: 6870a3dee929ba664e4c402f321f84af7704f892
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. p: Expo Partner: Expo Partner 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.

4 participants