diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 4a69f66236b..675844aadfb 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -1442,13 +1442,6 @@ public final class com/facebook/react/bridge/RuntimeExecutor : com/facebook/jni/ public final class com/facebook/react/bridge/RuntimeScheduler : com/facebook/jni/HybridClassBase { } -public final class com/facebook/react/bridge/SoftAssertions { - public static final field INSTANCE Lcom/facebook/react/bridge/SoftAssertions; - public static final fun assertCondition (ZLjava/lang/String;)V - public static final fun assertNotNull (Ljava/lang/Object;)Ljava/lang/Object; - public static final fun assertUnreachable (Ljava/lang/String;)V -} - public abstract interface class com/facebook/react/bridge/UIManager : com/facebook/react/bridge/PerformanceCounter { public abstract fun addRootView (Landroid/view/View;Lcom/facebook/react/bridge/WritableMap;)I public abstract fun addUIManagerEventListener (Lcom/facebook/react/bridge/UIManagerListener;)V diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.kt index 39f6195365d..2292801bf44 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.kt @@ -15,7 +15,7 @@ import com.facebook.react.bridge.ReactSoftExceptionLogger.Categories.SOFT_ASSERT * opinion on when these assertions should be used as opposed to assertions that might throw * AssertionError Throwables that will cause the app to hard crash. */ -public object SoftAssertions { +internal object SoftAssertions { /** * Throw [AssertionException] with a given message. Use this method surrounded with `if` block @@ -24,7 +24,7 @@ public object SoftAssertions { * throw. */ @JvmStatic - public fun assertUnreachable(message: String): Unit { + fun assertUnreachable(message: String): Unit { ReactSoftExceptionLogger.logSoftException(SOFT_ASSERTIONS, AssertionException(message)) } @@ -34,7 +34,7 @@ public object SoftAssertions { * throw. */ @JvmStatic - public fun assertCondition(condition: Boolean, message: String): Unit { + fun assertCondition(condition: Boolean, message: String): Unit { if (!condition) { ReactSoftExceptionLogger.logSoftException(SOFT_ASSERTIONS, AssertionException(message)) } @@ -45,7 +45,7 @@ public object SoftAssertions { * an assertion with ReactSoftExceptionLogger, which decides whether or not to actually throw. */ @JvmStatic - public fun assertNotNull(instance: T?): T? { + fun assertNotNull(instance: T?): T? { if (instance == null) { ReactSoftExceptionLogger.logSoftException( SOFT_ASSERTIONS, AssertionException("Expected object to not be null!"))