diff --git a/android/src/main/java/org/lichess/mobileapp/stockfish/Stockfish.java b/android/src/main/java/org/lichess/mobileapp/stockfish/Stockfish.java index 0702a6b..96e43cd 100644 --- a/android/src/main/java/org/lichess/mobileapp/stockfish/Stockfish.java +++ b/android/src/main/java/org/lichess/mobileapp/stockfish/Stockfish.java @@ -85,6 +85,11 @@ public void start(PluginCall call) { @PluginMethod public void cmd(PluginCall call) { + if (!supportedArch){ + call.error("Arch not supported."); + return; + } + if (isInit) { String cmd = call.getString("cmd"); if (cmd == null) {