Skip to content
Closed
41 changes: 21 additions & 20 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -1727,10 +1727,10 @@ public final class com/facebook/react/common/MapBuilder$Builder {
public fun put (Ljava/lang/Object;Ljava/lang/Object;)Lcom/facebook/react/common/MapBuilder$Builder;
}

public class com/facebook/react/common/ReactConstants {
public final class com/facebook/react/common/ReactConstants {
public static final field INSTANCE Lcom/facebook/react/common/ReactConstants;
public static final field TAG Ljava/lang/String;
public static final field UNSET I
public fun <init> ()V
}

public class com/facebook/react/common/ShakeDetector : android/hardware/SensorEventListener {
Expand All @@ -1746,9 +1746,9 @@ public abstract interface class com/facebook/react/common/ShakeDetector$ShakeLis
public abstract fun onShake ()V
}

public class com/facebook/react/common/SingleThreadAsserter {
public final class com/facebook/react/common/SingleThreadAsserter {
public fun <init> ()V
public fun assertNow ()V
public final fun assertNow ()V
}

public final class com/facebook/react/common/StandardCharsets {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -2487,7 +2488,7 @@ public class com/facebook/react/fabric/BindingImpl : com/facebook/react/fabric/B
public fun unregisterSurface (Lcom/facebook/react/fabric/SurfaceHandlerBinding;)V
}

public class com/facebook/react/fabric/ComponentFactory {
public final class com/facebook/react/fabric/ComponentFactory {
public fun <init> ()V
}

Expand Down Expand Up @@ -2776,8 +2777,8 @@ public abstract interface class com/facebook/react/fabric/mounting/mountitems/Ba

public abstract class com/facebook/react/fabric/mounting/mountitems/DispatchCommandMountItem : com/facebook/react/fabric/mounting/mountitems/MountItem {
public fun <init> ()V
public fun getRetries ()I
public fun incrementRetries ()V
public final fun getRetries ()I
public final fun incrementRetries ()V
}

public abstract interface class com/facebook/react/fabric/mounting/mountitems/MountItem {
Expand Down Expand Up @@ -4417,7 +4418,7 @@ public abstract interface class com/facebook/react/uimanager/ReactCompoundViewGr
public abstract fun interceptsTouchEvent (FF)Z
}

public class com/facebook/react/uimanager/ReactInvalidPropertyException : java/lang/RuntimeException {
public final class com/facebook/react/uimanager/ReactInvalidPropertyException : java/lang/RuntimeException {
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
}

Expand Down Expand Up @@ -4452,9 +4453,9 @@ public abstract interface class com/facebook/react/uimanager/ReactRoot {
public abstract fun setShouldLogContentAppeared (Z)V
}

public class com/facebook/react/uimanager/ReactRootViewTagGenerator {
public fun <init> ()V
public static fun getNextRootViewTag ()I
public final class com/facebook/react/uimanager/ReactRootViewTagGenerator {
public static final field INSTANCE Lcom/facebook/react/uimanager/ReactRootViewTagGenerator;
public static final fun getNextRootViewTag ()I
}

public abstract interface class com/facebook/react/uimanager/ReactShadowNode {
Expand Down Expand Up @@ -4749,9 +4750,9 @@ public class com/facebook/react/uimanager/ReactStylesDiffMap {
public fun toString ()Ljava/lang/String;
}

public class com/facebook/react/uimanager/ReactYogaConfigProvider {
public fun <init> ()V
public static fun get ()Lcom/facebook/yoga/YogaConfig;
public final class com/facebook/react/uimanager/ReactYogaConfigProvider {
public static final field INSTANCE Lcom/facebook/react/uimanager/ReactYogaConfigProvider;
public static final fun get ()Lcom/facebook/yoga/YogaConfig;
}

public abstract interface class com/facebook/react/uimanager/ReactZIndexedViewGroup {
Expand Down Expand Up @@ -7512,9 +7513,9 @@ public class com/facebook/react/views/view/ColorUtil {
public static fun normalize (DDDD)I
}

public class com/facebook/react/views/view/MeasureUtil {
public fun <init> ()V
public static fun getMeasureSpec (FLcom/facebook/yoga/YogaMeasureMode;)I
public final class com/facebook/react/views/view/MeasureUtil {
public static final field INSTANCE Lcom/facebook/react/views/view/MeasureUtil;
public static final fun getMeasureSpec (FLcom/facebook/yoga/YogaMeasureMode;)I
}

public abstract class com/facebook/react/views/view/ReactClippingViewManager : com/facebook/react/uimanager/ViewGroupManager {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.common;

import com.facebook.infer.annotation.Nullsafe;
package com.facebook.react.common

/**
* Lifecycle state for an Activity. The state right after pause and right before resume are the
Expand All @@ -23,8 +21,7 @@
* <p>RESUMED is used when a ReactRootView is rendered on the screen and the user can interact with
* it.
*/
@Nullsafe(Nullsafe.Mode.LOCAL)
public enum LifecycleState {
public enum class LifecycleState {
BEFORE_CREATE,
BEFORE_RESUME,
RESUMED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,17 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.common;
package com.facebook.react.common

import com.facebook.infer.annotation.Nullsafe;
public object ReactConstants {

@Nullsafe(Nullsafe.Mode.LOCAL)
public class ReactConstants {

public static final String TAG = "ReactNative";
public const val TAG: String = "ReactNative"

/**
* Some types have built-in support for representing a "missing" or "unset" value, for example NaN
* in the case of floating point numbers or null in the case of object references. Integers don't
* have such a special value. When an integer represent an inherently non-negative value, we use a
* special negative value to mark it as "unset".
*/
public static final int UNSET = -1;
public const val UNSET: Int = -1
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* 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.common

import com.facebook.infer.annotation.Assertions

/** Simple class for asserting that operations only run on a single thread. */
public class SingleThreadAsserter {
private var thread: Thread? = null

public fun assertNow() {
val currentThread = Thread.currentThread()
if (thread == null) {
thread = currentThread
}
Assertions.assertCondition(thread == currentThread)
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* 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.fabric

import com.facebook.jni.HybridData
import com.facebook.proguard.annotations.DoNotStripAny

@DoNotStripAny
public class ComponentFactory {

@Suppress("NoHungarianNotation") private val mHybridData: HybridData = initHybrid()

private companion object {
init {
FabricSoLoader.staticInit()
}

@JvmStatic private external fun initHybrid(): HybridData
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,25 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.fabric.mounting.mountitems;
package com.facebook.react.fabric.mounting.mountitems

import androidx.annotation.UiThread;
import com.facebook.infer.annotation.Nullsafe;
import androidx.annotation.UiThread

/**
* This is a common interface for View Command operations. Once we delete the deprecated {@link
* DispatchIntCommandMountItem}, we can delete this interface too. It provides a set of common
* operations to simplify generic operations on all types of ViewCommands.
*/
@Nullsafe(Nullsafe.Mode.LOCAL)
public abstract class DispatchCommandMountItem implements MountItem {
private int mNumRetries = 0;
public abstract class DispatchCommandMountItem : MountItem {
private var numRetries: Int = 0

@UiThread
public void incrementRetries() {
mNumRetries++;
public fun incrementRetries() {
numRetries++
}

@UiThread
public int getRetries() {
return mNumRetries;
public fun getRetries(): Int {
return numRetries
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* 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.packagerconnection

import com.facebook.common.logging.FLog

public abstract class NotificationOnlyHandler : RequestHandler {

override final fun onRequest(params: Any?, responder: Responder) {
responder.error("Request is not supported")
FLog.e(JSPackagerClient::class.java.simpleName, "Request is not supported")
}

override abstract fun onNotification(params: Any?)
}
Loading