From 4ca09c3e28ee703662e75e49c5ac80d570c059c0 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 4 Nov 2024 06:19:43 -0800 Subject: [PATCH] Make ReactDebugOverlayTags and DebugOverlayTags internal Summary: Those 2 classes are not supposed to be exposed externally, so I'm making them internal. The were never part of the public API so I'm not marking this commit as [BREAKING] Changelog: [Android] [Changed] - Make ReactDebugOverlayTags and DebugOverlayTags internal Reviewed By: fabriziocucci Differential Revision: D65420257 --- .../debugoverlay/model/DebugOverlayTag.kt | 2 +- .../debug/tags/ReactDebugOverlayTags.kt | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/DebugOverlayTag.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/DebugOverlayTag.kt index 7aa4c8d645b137..758da83b4ec9c7 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/DebugOverlayTag.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/DebugOverlayTag.kt @@ -14,7 +14,7 @@ package com.facebook.debug.debugoverlay.model * @param description Description to display in settings. * @param color Color for tag display. */ -public class DebugOverlayTag( +internal class DebugOverlayTag( public val name: String, public val description: String, public val color: Int, diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/tags/ReactDebugOverlayTags.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/tags/ReactDebugOverlayTags.kt index 4a9b33bae4a5e2..49bbc5f8632ae2 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/tags/ReactDebugOverlayTags.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/tags/ReactDebugOverlayTags.kt @@ -11,35 +11,35 @@ import android.graphics.Color import com.facebook.debug.debugoverlay.model.DebugOverlayTag /** Category for debug overlays. */ -public object ReactDebugOverlayTags { +internal object ReactDebugOverlayTags { @JvmField - public val PERFORMANCE: DebugOverlayTag = + val PERFORMANCE: DebugOverlayTag = DebugOverlayTag("Performance", "Markers for Performance", Color.GREEN) @JvmField - public val NAVIGATION: DebugOverlayTag = + val NAVIGATION: DebugOverlayTag = DebugOverlayTag("Navigation", "Tag for navigation", Color.rgb(0x9C, 0x27, 0xB0)) @JvmField - public val RN_CORE: DebugOverlayTag = + val RN_CORE: DebugOverlayTag = DebugOverlayTag("RN Core", "Tag for React Native Core", Color.BLACK) @JvmField - public val BRIDGE_CALLS: DebugOverlayTag = + val BRIDGE_CALLS: DebugOverlayTag = DebugOverlayTag("Bridge Calls", "JS to Java calls (warning: this is spammy)", Color.MAGENTA) @JvmField - public val NATIVE_MODULE: DebugOverlayTag = + val NATIVE_MODULE: DebugOverlayTag = DebugOverlayTag("Native Module", "Native Module init", Color.rgb(0x80, 0x00, 0x80)) @JvmField - public val UI_MANAGER: DebugOverlayTag = + val UI_MANAGER: DebugOverlayTag = DebugOverlayTag( "UI Manager", "UI Manager View Operations (requires restart\nwarning: this is spammy)", Color.CYAN) @JvmField - public val FABRIC_UI_MANAGER: DebugOverlayTag = + val FABRIC_UI_MANAGER: DebugOverlayTag = DebugOverlayTag("FabricUIManager", "Fabric UI Manager View Operations", Color.CYAN) @JvmField - public val FABRIC_RECONCILER: DebugOverlayTag = + val FABRIC_RECONCILER: DebugOverlayTag = DebugOverlayTag("FabricReconciler", "Reconciler for Fabric", Color.CYAN) @JvmField - public val RELAY: DebugOverlayTag = + val RELAY: DebugOverlayTag = DebugOverlayTag("Relay", "including prefetching", Color.rgb(0xFF, 0x99, 0x00)) }