Delete Deprecated classs StandardCharsets (#49762)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49762

Delete Deprecated classs StandardCharsets

changelog: [Android][Breaking] Delete Deprecated classs StandardCharsets

Reviewed By: rshest

Differential Revision: D70441496

fbshipit-source-id: f8f9cf9fc5a90d73d79a6493c7343a80f683c237
This commit is contained in:
David Vacca authored and Facebook GitHub Bot committed 2025-03-03 17:08:21 -08:00
1 parent c4c3d3bfbe
commit 40b38d0a44
2 files changed
-39

No files matched your search

@@ -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
@@ -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")
}