Skip to content

Commit 3252855

Browse files
committed
Fix crash due to missing @JvmStatic to convertToCase
Summary: Users are reporting that RN 0.75 is crashing due to us attempting to accessing a static method on `AndroidUnicodeUtils.convertToCase` which is not static anymore due to Kotlin conversion. Static access is inside Hermes codebase here: https://github.com/facebook/hermes/blob/f5c867514c71b25212eb3039230e0c095518b532/lib/Platform/Unicode/PlatformUnicodeJava.cpp#L107-L109 Changelog: [Android] [Fixed] - Fix crash due to missing JvmStatic to `convertToCase` Reviewed By: javache Differential Revision: D59218291 fbshipit-source-id: ac121a8bcd5fd917ee134d257f967c8e3e338ca5
1 parent 89073d4 commit 3252855

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/unicode/AndroidUnicodeUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public object AndroidUnicodeUtils {
3939
}
4040

4141
@DoNotStrip
42+
@JvmStatic
4243
public fun convertToCase(input: String, targetCase: Int, useCurrentLocale: Boolean): String {
4344
// Note Java's case conversions use the user's locale. For example "I".toLowerCase()
4445
// will produce a dotless i. From Java's docs: "To obtain correct results for locale

0 commit comments

Comments
 (0)