From 12f2c3cd2bbf186afe1b4052ebf377d8030c7a73 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Sun, 25 Feb 2024 03:40:11 -0800 Subject: [PATCH] Fix Build of RNLog in CI Summary: Fix Build of RNLog in CI changelog: [internal] internal Reviewed By: bvanderhoof Differential Revision: D54167011 fbshipit-source-id: 7e1ea21860b479e9fe00df5951fe266f2e342eda --- .../java/com/facebook/react/util/RNLog.kt | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/util/RNLog.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/util/RNLog.kt index aa746249e391e5..481ed8969c13fe 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/util/RNLog.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/util/RNLog.kt @@ -13,14 +13,14 @@ import com.facebook.react.bridge.ReactContext import com.facebook.react.common.ReactConstants /** Logging wrapper for FLog with LogBox support. */ -object RNLog { +public object RNLog { - const val MINIMUM_LEVEL_FOR_UI = Log.WARN - const val LOG = Log.VERBOSE - const val TRACE = Log.DEBUG - const val ADVICE = Log.INFO - const val WARN = Log.WARN - const val ERROR = Log.ERROR + public const val MINIMUM_LEVEL_FOR_UI: Int = Log.WARN + public const val LOG: Int = Log.VERBOSE + public const val TRACE: Int = Log.DEBUG + public const val ADVICE: Int = Log.INFO + public const val WARN: Int = Log.WARN + public const val ERROR: Int = Log.ERROR /** * Log a log level message tagged as React Native to the console. @@ -28,7 +28,7 @@ object RNLog { * @param message The message to log. */ @JvmStatic - fun l(message: String) { + public fun l(message: String) { FLog.i(ReactConstants.TAG, message) } @@ -38,7 +38,7 @@ object RNLog { * @param message The message to log. */ @JvmStatic - fun t(message: String) { + public fun t(message: String) { FLog.i(ReactConstants.TAG, message) } @@ -49,7 +49,7 @@ object RNLog { * @param message The message to log. */ @JvmStatic - fun a(message: String) { + public fun a(message: String) { FLog.w(ReactConstants.TAG, "(ADVICE)$message") } @@ -60,7 +60,7 @@ object RNLog { * @param message The message to log. */ @JvmStatic - fun w(context: ReactContext?, message: String) { + public fun w(context: ReactContext?, message: String) { logInternal(context, message, WARN) FLog.w(ReactConstants.TAG, message) } @@ -72,7 +72,7 @@ object RNLog { * @param message The message to log. */ @JvmStatic - fun e(context: ReactContext?, message: String) { + public fun e(context: ReactContext?, message: String) { logInternal(context, message, ERROR) FLog.e(ReactConstants.TAG, message) } @@ -84,7 +84,7 @@ object RNLog { * @param message The message to log. */ @JvmStatic - fun e(message: String) { + public fun e(message: String) { FLog.e(ReactConstants.TAG, message) }