You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: #53502
Follows D81138169.
- This simplifies the total changes needed on implementing DevSupport classes.
- Widen outer API to accept any `String` panel name (futureproofing).
- Also add a complete set of supported values `DebuggerFrontendPanelName`.
Changelog:
[Android][Changed] - DevSupport `openDebugger()` methods now accept a `panel: String?` param. Frameworks directly implementing `DevSupportManager` will need to adjust call signatures.
Reviewed By: hoxyq, cortinico
Differential Revision: D81227870
fbshipit-source-id: 57b73703557971332e05076fb4ccac218079652a
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/api/ReactAndroid.api
+5-16Lines changed: 5 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1914,7 +1914,7 @@ public class com/facebook/react/devsupport/DevServerHelper {
1914
1914
public fun getSourceUrl (Ljava/lang/String;)Ljava/lang/String;
1915
1915
public final fun getWebsocketProxyURL ()Ljava/lang/String;
1916
1916
public fun isPackagerRunning (Lcom/facebook/react/devsupport/interfaces/PackagerStatusCallback;)V
1917
-
public final fun openDebugger (Lcom/facebook/react/bridge/ReactContext;Ljava/lang/String;Lcom/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName;)V
1917
+
public final fun openDebugger (Lcom/facebook/react/bridge/ReactContext;Ljava/lang/String;Ljava/lang/String;)V
1918
1918
public final fun openInspectorConnection ()V
1919
1919
public final fun openPackagerConnection (Ljava/lang/String;Lcom/facebook/react/devsupport/DevServerHelper$PackagerCommandListener;)V
1920
1920
}
@@ -1962,8 +1962,7 @@ public abstract class com/facebook/react/devsupport/DevSupportManagerBase : com/
1962
1962
public fun isPackagerRunning (Lcom/facebook/react/devsupport/interfaces/PackagerStatusCallback;)V
1963
1963
public fun onNewReactContextCreated (Lcom/facebook/react/bridge/ReactContext;)V
1964
1964
public fun onReactInstanceDestroyed (Lcom/facebook/react/bridge/ReactContext;)V
1965
-
public fun openDebugger ()V
1966
-
public fun openDebugger (Lcom/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName;)V
1965
+
public fun openDebugger (Ljava/lang/String;)V
1967
1966
public fun processErrorCustomizers (Landroid/util/Pair;)Landroid/util/Pair;
1968
1967
public fun registerErrorCustomizer (Lcom/facebook/react/devsupport/interfaces/ErrorCustomizer;)V
1969
1968
public fun reloadJSFromServer (Ljava/lang/String;Lcom/facebook/react/devsupport/interfaces/BundleLoadCallback;)V
@@ -2052,8 +2051,7 @@ public class com/facebook/react/devsupport/ReleaseDevSupportManager : com/facebo
2052
2051
public fun isPackagerRunning (Lcom/facebook/react/devsupport/interfaces/PackagerStatusCallback;)V
2053
2052
public fun onNewReactContextCreated (Lcom/facebook/react/bridge/ReactContext;)V
2054
2053
public fun onReactInstanceDestroyed (Lcom/facebook/react/bridge/ReactContext;)V
2055
-
public fun openDebugger ()V
2056
-
public fun openDebugger (Lcom/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName;)V
2054
+
public fun openDebugger (Ljava/lang/String;)V
2057
2055
public fun processErrorCustomizers (Landroid/util/Pair;)Landroid/util/Pair;
2058
2056
public fun registerErrorCustomizer (Lcom/facebook/react/devsupport/interfaces/ErrorCustomizer;)V
2059
2057
public fun reloadJSFromServer (Ljava/lang/String;Lcom/facebook/react/devsupport/interfaces/BundleLoadCallback;)V
@@ -2112,15 +2110,6 @@ public abstract interface class com/facebook/react/devsupport/interfaces/BundleL
2112
2110
public abstract fun onSuccess ()V
2113
2111
}
2114
2112
2115
-
public final class com/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName : java/lang/Enum {
2116
-
public static final field PERFORMANCE Lcom/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName;
2117
-
public static fun getEntries ()Lkotlin/enums/EnumEntries;
2118
-
public final fun getInternalName ()Ljava/lang/String;
2119
-
public fun toString ()Ljava/lang/String;
2120
-
public static fun valueOf (Ljava/lang/String;)Lcom/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName;
2121
-
public static fun values ()[Lcom/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName;
2122
-
}
2123
-
2124
2113
public abstract interface class com/facebook/react/devsupport/interfaces/DevBundleDownloadListener {
2125
2114
public abstract fun onFailure (Ljava/lang/Exception;)V
2126
2115
public abstract fun onProgress (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;)V
@@ -2162,8 +2151,8 @@ public abstract interface class com/facebook/react/devsupport/interfaces/DevSupp
2162
2151
public abstract fun isPackagerRunning (Lcom/facebook/react/devsupport/interfaces/PackagerStatusCallback;)V
2163
2152
public abstract fun onNewReactContextCreated (Lcom/facebook/react/bridge/ReactContext;)V
2164
2153
public abstract fun onReactInstanceDestroyed (Lcom/facebook/react/bridge/ReactContext;)V
2165
-
public abstract fun openDebugger ()V
2166
-
public abstract fun openDebugger (Lcom/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName;)V
2154
+
public abstract fun openDebugger (Ljava/lang/String;)V
2155
+
public static synthetic fun openDebugger$default (Lcom/facebook/react/devsupport/interfaces/DevSupportManager;Ljava/lang/String;ILjava/lang/Object;)V
2167
2156
public abstract fun processErrorCustomizers (Landroid/util/Pair;)Landroid/util/Pair;
2168
2157
public abstract fun registerErrorCustomizer (Lcom/facebook/react/devsupport/interfaces/ErrorCustomizer;)V
2169
2158
public abstract fun reloadJSFromServer (Ljava/lang/String;Lcom/facebook/react/devsupport/interfaces/BundleLoadCallback;)V
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReleaseDevSupportManager.kt
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName.kt
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.kt
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -94,11 +94,14 @@ public interface DevSupportManager : JSExceptionHandler {
0 commit comments