mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Revert D57681447: Expose DevSettings.openDebugger method to JS
Differential Revision: D57681447 Original commit changeset: ddb1fbd0f1c8 Original Phabricator Diff: D57681447 fbshipit-source-id: 94bf94227bcc9fab8282bd68ddf3f4f1df64656b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7e0f894d3a
commit
726a4a1e5e
@@ -501,15 +501,6 @@ RCT_EXPORT_METHOD(addMenuItem : (NSString *)title)
|
||||
}
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(openDebugger)
|
||||
{
|
||||
#if RCT_ENABLE_INSPECTOR
|
||||
[RCTInspectorDevServerHelper
|
||||
openDebugger:self.bundleManager.bundleURL
|
||||
withErrorMessage:@"Failed to open debugger. Please check that the dev server is running and reload the app."];
|
||||
#endif
|
||||
}
|
||||
|
||||
#pragma mark - Internal
|
||||
|
||||
/**
|
||||
@@ -617,9 +608,6 @@ RCT_EXPORT_METHOD(openDebugger)
|
||||
- (void)setupHMRClientWithAdditionalBundleURL:(NSURL *)bundleURL
|
||||
{
|
||||
}
|
||||
- (void)openDebugger
|
||||
{
|
||||
}
|
||||
- (void)addMenuItem:(NSString *)title
|
||||
{
|
||||
}
|
||||
|
||||
-4
@@ -61,10 +61,6 @@ public class DevSettingsModule(
|
||||
}
|
||||
}
|
||||
|
||||
override fun openDebugger() {
|
||||
devSupportManager.openDebugger()
|
||||
}
|
||||
|
||||
override fun setIsShakeToShowDevMenuEnabled(enabled: Boolean) {
|
||||
// iOS only
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ export interface Spec extends TurboModule {
|
||||
+setProfilingEnabled: (isProfilingEnabled: boolean) => void;
|
||||
+toggleElementInspector: () => void;
|
||||
+addMenuItem: (title: string) => void;
|
||||
+openDebugger?: () => void;
|
||||
|
||||
// Events
|
||||
+addListener: (eventName: string) => void;
|
||||
|
||||
Reference in New Issue
Block a user