mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Kotlinify InspectorFlags (#43772)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43772 Changelog: [Internal] As part of the Sustainability Week (see [post](https://fb.workplace.com/groups/251759413609061/permalink/742797531171911/)). Reviewed By: rshest Differential Revision: D55637558 fbshipit-source-id: b0bcbed4790940e52af6ca82c0ee50e6a4fd510c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9bebab5ab1
commit
477611c8db
@@ -2164,9 +2164,10 @@ public abstract interface class com/facebook/react/devsupport/HMRClient : com/fa
|
||||
public abstract fun setup (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZ)V
|
||||
}
|
||||
|
||||
public class com/facebook/react/devsupport/InspectorFlags {
|
||||
public static fun getEnableCxxInspectorPackagerConnection ()Z
|
||||
public static fun getEnableModernCDPRegistry ()Z
|
||||
public final class com/facebook/react/devsupport/InspectorFlags {
|
||||
public static final field INSTANCE Lcom/facebook/react/devsupport/InspectorFlags;
|
||||
public static final fun getEnableCxxInspectorPackagerConnection ()Z
|
||||
public static final fun getEnableModernCDPRegistry ()Z
|
||||
}
|
||||
|
||||
public class com/facebook/react/devsupport/InspectorPackagerConnection : com/facebook/react/devsupport/IInspectorPackagerConnection {
|
||||
|
||||
-28
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.devsupport;
|
||||
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
|
||||
/** JNI wrapper for `jsinspector_modern::InspectorFlags`. */
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
@DoNotStrip
|
||||
public class InspectorFlags {
|
||||
static {
|
||||
DevSupportSoLoader.staticInit();
|
||||
}
|
||||
|
||||
@DoNotStrip
|
||||
public static native boolean getEnableModernCDPRegistry();
|
||||
|
||||
@DoNotStrip
|
||||
public static native boolean getEnableCxxInspectorPackagerConnection();
|
||||
|
||||
private InspectorFlags() {}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.devsupport
|
||||
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
|
||||
/** JNI wrapper for `jsinspector_modern::InspectorFlags`. */
|
||||
@DoNotStrip
|
||||
public object InspectorFlags {
|
||||
init {
|
||||
DevSupportSoLoader.staticInit()
|
||||
}
|
||||
|
||||
@DoNotStrip @JvmStatic public external fun getEnableModernCDPRegistry(): Boolean
|
||||
|
||||
@DoNotStrip @JvmStatic public external fun getEnableCxxInspectorPackagerConnection(): Boolean
|
||||
}
|
||||
Reference in New Issue
Block a user