diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 71b7bdfb6b0..4e14ceccf7e 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -1775,14 +1775,6 @@ public final class com/facebook/react/common/SingleThreadAsserter { public final fun assertNow ()V } -public final class com/facebook/react/common/StandardCharsets { - public static final field INSTANCE Lcom/facebook/react/common/StandardCharsets; - public static final field UTF_16 Ljava/nio/charset/Charset; - public static final field UTF_16BE Ljava/nio/charset/Charset; - public static final field UTF_16LE Ljava/nio/charset/Charset; - public static final field UTF_8 Ljava/nio/charset/Charset; -} - public abstract interface class com/facebook/react/common/SurfaceDelegate { public abstract fun createContentView (Ljava/lang/String;)V public abstract fun destroyContentView ()V diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/StandardCharsets.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/StandardCharsets.kt deleted file mode 100644 index 2c538e5f14a..00000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/StandardCharsets.kt +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -package com.facebook.react.common - -import java.nio.charset.Charset -import kotlin.jvm.JvmField - -/** - * Not all versions of Android SDK have this class in nio package. This is the reason to have it - * around. - */ -@Deprecated( - message = - "Deprecated class since v0.73.0, please use java.nio.charset.StandardCharsets instead.", - replaceWith = ReplaceWith("java.nio.charset.StandardCharsets"), - level = DeprecationLevel.ERROR) -public object StandardCharsets { - /** Eight-bit UCS Transformation Format */ - @JvmField public val UTF_8: Charset = Charset.forName("UTF-8") - /** Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark */ - @JvmField public val UTF_16: Charset = Charset.forName("UTF-16") - /** Sixteen-bit UCS Transformation Format, big-endian byte order */ - @JvmField public val UTF_16BE: Charset = Charset.forName("UTF-16BE") - /** Sixteen-bit UCS Transformation Format, little-endian byte order */ - @JvmField public val UTF_16LE: Charset = Charset.forName("UTF-16LE") -}