Skip to content

Refactor ReactDelegate to provide DevSupportManager - #43520

Closed
arushikesarwani94 wants to merge 1 commit into
react:mainfrom
arushikesarwani94:export-D54967130
Closed

Refactor ReactDelegate to provide DevSupportManager#43520
arushikesarwani94 wants to merge 1 commit into
react:mainfrom
arushikesarwani94:export-D54967130

Conversation

@arushikesarwani94

Copy link
Copy Markdown
Contributor

Summary:
Refactor ReactDelegate to have a private getDevSupportManager() that can also be re-used by reload()

This method conditionally provides the correct DevSupportManager in cases of Bridge & Bridgeless

Changelog:
[Internal] internal

Differential Revision: D54967130

@facebook-github-botfacebook-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 Mar 16, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

Summary:
Refactor ReactDelegate to have a private `getDevSupportManager()` that can also be re-used by `reload()`
This method conditionally provides the correct DevSupportManager in cases of Bridge & Bridgeless
Changelog:
[Internal] internal
Differential Revision: D54967130
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a18,127,336+11
androidhermesarmeabi-v7an/a--
androidhermesx86n/a--
androidhermesx86_64n/a--
androidjscarm64-v8a21,493,883+4
androidjscarmeabi-v7an/a--
androidjscx86n/a--
androidjscx86_64n/a--

Base commit: f2f62cd
Branch: main

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

Copy link
Copy Markdown
Contributor

This pull request has been merged in 6dd0cc9.

cortinico pushed a commit that referenced this pull request Mar 25, 2024
Summary:
Pull Request resolved: #43520
Refactor ReactDelegate to have a private `getDevSupportManager()` that can also be re-used by `reload()`
This method conditionally provides the correct DevSupportManager in cases of Bridge & Bridgeless
Changelog:
[Internal] internal
Reviewed By: cortinico
Differential Revision: D54967130
fbshipit-source-id: 37d585de33a50b98d01803d3080c5693a8c494b9
arushikesarwani94 added a commit to arushikesarwani94/react-native that referenced this pull request Apr 30, 2024
Summary:
In react#43520, this was moved to supply with the relevant DevSupportManager, however in Bridge mode in case of RELEASE(useDeveloperSupport = false), it would not provide BridgeDevSupportManager because of this check.
Changelog:
[ANDROID][FIXED] - Fixed `getDevSupportManager()` in ReactDelegate
Differential Revision: D56739764
arushikesarwani94 added a commit to arushikesarwani94/react-native that referenced this pull request Apr 30, 2024
Summary:
In react#43520, this was moved to supply with the relevant DevSupportManager, however this check for `useDeveloperSupport` is already part of https://github.com/facebook/react-native/blob/0.74-stable/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java#L263https://github.com/facebook/react-native/blob/0.74-stable/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java#L68-L70
Having this check here was causing early exit for Bridge RELEASE mode instead of returning the ReleaseDevSupportManager.
Changelog:
[ANDROID][FIXED] - Fixed `getDevSupportManager()` in ReactDelegate
Reviewed By: javache
Differential Revision: D56739764
This was referenced Jun 28, 2024
@cipolleschicipolleschi mentioned this pull request Jul 22, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedMergedThis PR has been merged.p: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@arushikesarwani94@facebook-github-bot@analysis-bot