From b1f82f3b0ece9996cff87677ad59aeba5fc12372 Mon Sep 17 00:00:00 2001 From: David Vacca <515103+mdvacca@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:09:20 -0800 Subject: [PATCH] Reduce visibility of ComponentNameResolver to internal Summary: ComponentNameResolver is meant to be used only internaly, we reduce its visbility to internal changelog: [Android][Breaking] Removed ComponentNameResolver from public API Reviewed By: javache Differential Revision: D66403218 --- packages/react-native/ReactAndroid/api/ReactAndroid.api | 4 ---- .../com/facebook/react/uimanager/ComponentNameResolver.kt | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 0a3d08f469836c..bfb7c6353ad3fe 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -4095,10 +4095,6 @@ public abstract class com/facebook/react/uimanager/BaseViewManagerDelegate : com public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/uimanager/ComponentNameResolver { - public abstract fun getComponentNames ()[Ljava/lang/String; -} - public final class com/facebook/react/uimanager/DisplayMetricsHolder { public static final field INSTANCE Lcom/facebook/react/uimanager/DisplayMetricsHolder; public static final fun getDisplayMetricsWritableMap (D)Lcom/facebook/react/bridge/WritableMap; diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.kt index df8bda2749927b..478a2e709ca82f 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.kt @@ -10,7 +10,7 @@ package com.facebook.react.uimanager import com.facebook.proguard.annotations.DoNotStripAny @DoNotStripAny -public interface ComponentNameResolver { +internal interface ComponentNameResolver { /* returns a list of all the component names that are registered in React Native. */ public val componentNames: Array? }