From 85f993903158164f42c0fa6eae78895fe6c07ebc Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Tue, 14 Jan 2025 06:12:00 -0800 Subject: [PATCH] Fix crash for Hermes Release due to HermesExecutor migration (#48660) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48660 RN-Tester is currently instacrashing on release due to a migration to Kotlin for HermesExecutor This fixes it. Changelog: [Internal] [Changed] - Fix crash for Hermes Release due to HermesExecutor migration Reviewed By: javache Differential Revision: D68151666 fbshipit-source-id: 31f404ec518831cf2151dc670cdf8553427ae8ab --- .../java/com/facebook/hermes/reactexecutor/HermesExecutor.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.kt index a71d0ed9188ff6..4fff48f23a2879 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.kt @@ -8,6 +8,7 @@ package com.facebook.hermes.reactexecutor import com.facebook.jni.HybridData +import com.facebook.jni.annotations.DoNotStrip import com.facebook.react.bridge.JavaScriptExecutor import com.facebook.react.common.build.ReactBuildConfig import com.facebook.soloader.SoLoader @@ -39,11 +40,15 @@ internal constructor(config: RuntimeConfig?, enableDebugger: Boolean, debuggerNa } } + @DoNotStrip + @JvmStatic private external fun initHybridDefaultConfig( enableDebugger: Boolean, debuggerName: String ): HybridData? + @DoNotStrip + @JvmStatic private external fun initHybrid( enableDebugger: Boolean, debuggerName: String,