Make "Debug JS" dev menu option persist across app restarts on RN Android

Summary:
1. Make "Remote JS Debug" and "Start/Stop Profile" options persist across app restarts.
2. Check and confirm:
       - All options in the Android dev menu are persisted now.
       - The behavior is the same on Android and iOS now.

Reviewed By: mkonicek

Differential Revision: D3340097

fbshipit-source-id: 4087b6605031c650e164282244cedb006f8f6fd3
This commit is contained in:
Siqi Liu
2016-05-27 09:45:02 -07:00
committed by Facebook Github Bot 8
parent 8d4b15d253
commit 60e0d2c676
5 changed files with 50 additions and 11 deletions

View File

@@ -38,4 +38,15 @@ public interface DeveloperSettings {
* @return Whether element inspector is enabled.
*/
boolean isElementInspectorEnabled();
/**
* @return Whether remote JS debugging is enabled.
*/
boolean isRemoteJSDebugEnabled();
/**
* Enable/Disable remote JS debugging.
*/
void setRemoteJSDebugEnabled(boolean remoteJSDebugEnabled);
}