From 3e5dd5e2f2fd57cb4d74e36b5285d5e847cc179e Mon Sep 17 00:00:00 2001 From: Arushi Kesarwani Date: Fri, 1 Mar 2024 18:13:28 -0800 Subject: [PATCH] Fix CI by adding explicit visibility modifier to BridgelessCatalystInstance (#43296) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43296 Fix CI by adding explicit visibility modifier to the newly added `BridgelessCatalystInstance` class. In Kotlin, in explicit API mode, which is usually the default mode for Kotlin, we must explicitly specify one of the modifiers for every declaration to make it clear and explicit. Changelog: [Internal] internal Reviewed By: makovkastar Differential Revision: D54442485 fbshipit-source-id: 4409ff810a09cc4fadcd2ccf21f7fbac3015f413 --- .../com/facebook/react/runtime/BridgelessCatalystInstance.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessCatalystInstance.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessCatalystInstance.kt index f7388357f27..e2d87960b97 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessCatalystInstance.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessCatalystInstance.kt @@ -32,7 +32,7 @@ import com.facebook.react.turbomodule.core.interfaces.NativeMethodCallInvokerHol @DoNotStrip @DeprecatedInNewArchitecture -class BridgelessCatalystInstance : CatalystInstance { +public class BridgelessCatalystInstance : CatalystInstance { override fun handleMemoryPressure(level: Int) { throw UnsupportedOperationException("Unimplemented method 'handleMemoryPressure'") }