Skip to content

Commit

Permalink
Fix crash for Hermes Release due to HermesExecutor migration (faceboo…
Browse files Browse the repository at this point in the history
…k#48660)

Summary:
Pull Request resolved: facebook#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
  • Loading branch information
cortinico authored and facebook-github-bot committed Jan 14, 2025
1 parent e4d969a commit 85f9939
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 85f9939

Please sign in to comment.