diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 115db25c0c0076..12cd26ec4bad92 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -3798,13 +3798,13 @@ public abstract class com/facebook/react/packagerconnection/NotificationOnlyHand public final fun onRequest (Ljava/lang/Object;Lcom/facebook/react/packagerconnection/Responder;)V } -public final class com/facebook/react/packagerconnection/PackagerConnectionSettings { +public class com/facebook/react/packagerconnection/PackagerConnectionSettings { public fun (Landroid/content/Context;)V public final fun getAdditionalOptionsForPackager ()Ljava/util/Map; - public final fun getDebugServerHost ()Ljava/lang/String; + public fun getDebugServerHost ()Ljava/lang/String; public final fun getPackageName ()Ljava/lang/String; public final fun setAdditionalOptionForPackager (Ljava/lang/String;Ljava/lang/String;)V - public final fun setDebugServerHost (Ljava/lang/String;)V + public fun setDebugServerHost (Ljava/lang/String;)V } public final class com/facebook/react/packagerconnection/ReconnectingWebSocket : okhttp3/WebSocketListener { diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.kt index d6c9a1ddd5979e..d31b85aa912d7b 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.kt @@ -15,13 +15,13 @@ import android.preference.PreferenceManager import com.facebook.common.logging.FLog import com.facebook.react.modules.systeminfo.AndroidInfoHelpers -public class PackagerConnectionSettings(private val appContext: Context) { +public open class PackagerConnectionSettings(private val appContext: Context) { private val preferences: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext) public val packageName: String = appContext.packageName private val _additionalOptionsForPackager: MutableMap = mutableMapOf() - public var debugServerHost: String + public open var debugServerHost: String get() { // Check host setting first. If empty try to detect emulator type and use default // hostname for those