Skip to content

Commit

Permalink
SoLoader loads library only once
Browse files Browse the repository at this point in the history
  • Loading branch information
iqqmuT committed Sep 3, 2021
1 parent acab328 commit a0bca30
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,12 @@

@DoNotStrip
/* package */ public class JSCExecutor extends JavaScriptExecutor {
private static boolean loaded = false;

static {
loadLibrary();
}

public static void loadLibrary() throws UnsatisfiedLinkError {
if (!loaded) {
SoLoader.loadLibrary("jscexecutor");
}
loaded = true;
SoLoader.loadLibrary("jscexecutor");
}

/* package */ JSCExecutor(ReadableNativeMap jscConfig) {
Expand Down

0 comments on commit a0bca30

Please sign in to comment.