unpin SocketRocket from startup (#42410)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42410

Changelog: [Internal]

Properly compiling these files out so we don't need to pull in SocketRocket to startup

Long term, we need to lift DevSupport and Inspector directories out of ReactInternal target

Reviewed By: fkgozali

Differential Revision: D52890707

fbshipit-source-id: efe59092d8f5487ab3f62ffb4ebd2b8aa58399fe
This commit is contained in:
Phillip Pan authored and Facebook GitHub Bot committed 2024-01-22 19:44:20 -08:00
1 parent 1b85ed94a1
commit cfcf3a3f95
4 files changed
+22 -3

No files matched your search

@@ -5,6 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
#import <React/RCTDefines.h>
#if RCT_DEV || RCT_REMOTE_PROFILE
#import "RCTCxxInspectorWebSocketAdapter.h"
#import <jsinspector-modern/InspectorPackagerConnection.h>
@@ -39,3 +43,5 @@ class RCTCxxInspectorPackagerConnectionDelegate
std::chrono::milliseconds delayMs) override;
};
} // namespace facebook::react::jsinspector_modern
#endif
@@ -7,6 +7,8 @@
#import "RCTCxxInspectorPackagerConnectionDelegate.h"
#if RCT_DEV || RCT_REMOTE_PROFILE
#import <dispatch/dispatch.h>
namespace facebook::react::jsinspector_modern {
@@ -42,3 +44,5 @@ void RCTCxxInspectorPackagerConnectionDelegate::scheduleCallback(
});
}
} // namespace facebook::react::jsinspector_modern
#endif
@@ -5,6 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
#import <React/RCTDefines.h>
#if RCT_DEV || RCT_REMOTE_PROFILE
#import <jsinspector-modern/InspectorPackagerConnection.h>
#import <memory>
#import <string>
@@ -15,3 +19,5 @@
- (void)send:(std::string_view)message;
- (void)close;
@end
#endif
@@ -5,16 +5,17 @@
* LICENSE file in the root directory of this source tree.
*/
#import <React/RCTInspectorPackagerConnection.h>
#import "RCTCxxInspectorWebSocketAdapter.h"
#if RCT_DEV || RCT_REMOTE_PROFILE
#import <React/RCTDefines.h>
#import <React/RCTInspector.h>
#import <React/RCTInspectorPackagerConnection.h>
#import <React/RCTLog.h>
#import <React/RCTUtils.h>
#import <SocketRocket/SRWebSocket.h>
#import <jsinspector-modern/InspectorPackagerConnection.h>
#import <memory>
#import "RCTCxxInspectorWebSocketAdapter.h"
using namespace facebook::react::jsinspector_modern;
@@ -87,3 +88,5 @@ NSString *NSStringFromUTF8StringView(std::string_view view)
}
@end
#endif