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

DevServerHelper should not depend on internal ctor parameter #37265

Closed
wants to merge 1 commit into from

Conversation

cortinico
Copy link
Contributor

Summary:
DevServerHelper was having a constructor parameter as DevInternalSettings which is effectively internal. This should not be the case as that class is Internal as was bleeding out of the public API.

I've updated the primary constructor to take instead:

  public DevServerHelper(
          DeveloperSettings settings,
          String packageName,
          InspectorPackagerConnection.BundleStatusProvider bundleStatusProvider,
          PackagerConnectionSettings packagerConnectionSettings) {

This is breaking change for users that were depending on the Internal class.

Changelog:
[Android] [Removed] - DevServerHelper should not depend on internal ctor parameter

Differential Revision: D45600283

@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 fb-exported labels May 5, 2023
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented May 5, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,717,740 +251
android hermes armeabi-v7a 8,028,521 +252
android hermes x86 9,205,099 +250
android hermes x86_64 9,058,487 +250
android jsc arm64-v8a 9,282,133 +114
android jsc armeabi-v7a 8,470,376 +110
android jsc x86 9,340,835 +119
android jsc x86_64 9,597,876 +121

Base commit: 8aa2281
Branch: main

…k#37265)

Summary:
Pull Request resolved: facebook#37265

DevServerHelper was having a constructor parameter as `DevInternalSettings` which is effectively internal. This should not be the case as that class is Internal as was bleeding out of the public API.

I've updated the primary constructor to take instead:

```
  public DevServerHelper(
          DeveloperSettings settings,
          String packageName,
          InspectorPackagerConnection.BundleStatusProvider bundleStatusProvider,
          PackagerConnectionSettings packagerConnectionSettings) {
```

This is breaking change for users that were depending on the Internal class.

Changelog:
[Android] [Removed] - DevServerHelper should not depend on internal ctor parameter

Reviewed By: mdvacca

Differential Revision: D45600283

fbshipit-source-id: b8386ba8650546c3a8f5cec8574ef98f9e2f0494
@facebook-github-bot
Copy link
Contributor

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

@cortinico cortinico force-pushed the export-D45600283 branch from 756c3cf to 8c2a451 Compare May 5, 2023 15:50
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 5, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in da358d0.

jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
…k#37265)

Summary:
Pull Request resolved: facebook#37265

DevServerHelper was having a constructor parameter as `DevInternalSettings` which is effectively internal. This should not be the case as that class is Internal as was bleeding out of the public API.

I've updated the primary constructor to take instead:

```
  public DevServerHelper(
          DeveloperSettings settings,
          String packageName,
          InspectorPackagerConnection.BundleStatusProvider bundleStatusProvider,
          PackagerConnectionSettings packagerConnectionSettings) {
```

This is breaking change for users that were depending on the Internal class.

Changelog:
[Android] [Removed] - DevServerHelper should not depend on internal ctor parameter

Reviewed By: mdvacca

Differential Revision: D45600283

fbshipit-source-id: e73139dbdf5f2505201b2d2c8b5a9143b7e207ba
lukmccall added a commit to expo/expo that referenced this pull request Jan 23, 2024
# Why

Closes #26364.

# How

This PR: facebook/react-native#37265 changes how the packager connection is received. Now, it's passed next to the dev support settings, so our swapping logic didn't cover that.

# Test Plan

```
- npx expo prebuild -p android --clean
- cd ./android
- ./gradlew app:assembleDebug
- Install the apk from ./android/app/build/outputs/apk/debug on your physical device
- npx expo start
- Connect to the dev server
```
brentvatne pushed a commit to expo/expo that referenced this pull request Jan 23, 2024
Closes #26364.

This PR: facebook/react-native#37265 changes how the packager connection is received. Now, it's passed next to the dev support settings, so our swapping logic didn't cover that.

```
- npx expo prebuild -p android --clean
- cd ./android
- ./gradlew app:assembleDebug
- Install the apk from ./android/app/build/outputs/apk/debug on your physical device
- npx expo start
- Connect to the dev server
```
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