Skip to content
Browse files
Try the debug executor before the release executor
We are currently unintentionally including both
and in all OSS RN builds.

RN tries both in turn, but since they both exist and the release executor is compatible
with the debug build, we always get the release executor without debug functionality.

While we sort this out, switch the load order. Since the debug executor is not compatible
with the release build, so it'll fail to load and try the next one.

ChangeLog: [Android] Fix Hermes debugger being disabled by default

Reviewed By: mhorowitz

Differential Revision: D20163828

fbshipit-source-id: ee4d87f40e42a7c8eedfdb7e1fc17eb3e5966ba5
  • Loading branch information
willholen authored and facebook-github-bot committed Feb 28, 2020
1 parent 06b8b15 commit b8621f5d303442ab78dc5d745cfc86a941d4737c
Showing 1 changed file with 3 additions and 3 deletions.
@@ -19,11 +19,11 @@ public class HermesExecutor extends JavaScriptExecutor {
// libhermes must be loaded explicitly to invoke its JNI_OnLoad.
try {
mode_ = "Release";
} catch (UnsatisfiedLinkError e) {
mode_ = "Debug";
} catch (UnsatisfiedLinkError e) {
mode_ = "Release";

0 comments on commit b8621f5

Please sign in to comment.