mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
WordChecker, SwipeTyped and the swipeWords/swipeRank/swipeTyped/ swipeNeedsSpace/swipeIsSlidTap natives, as crates/keyboard's jni.rs expects them. R8 keeps SwipeTyped's constructor and WordChecker.isWordValid, which the native code calls by name.
31 lines
1.1 KiB
Prolog
31 lines
1.1 KiB
Prolog
# libhexspeech resolves this class and method by their JNI names.
|
|
-keep class ly.anoma.hex.speech.Whisper {
|
|
native <methods>;
|
|
}
|
|
|
|
# libhex_keyboard (crates/keyboard/ffi/src/jni.rs) resolves KeyboardCore's natives by their JNI
|
|
# names, makes SwipeReading and SwipeTyped through these constructors, and calls WordChecker.
|
|
-keep class ly.anoma.hex.typing.KeyboardCore {
|
|
native <methods>;
|
|
}
|
|
-keep class ly.anoma.hex.typing.SwipeReading {
|
|
<init>(java.lang.String[], double[], int);
|
|
}
|
|
-keep class ly.anoma.hex.typing.SwipeTyped {
|
|
<init>(boolean, java.lang.String, java.lang.String[]);
|
|
}
|
|
-keep interface ly.anoma.hex.typing.WordChecker {
|
|
boolean isWordValid(java.lang.String);
|
|
}
|
|
|
|
# Drop diagnostic calls from managed release code, including dependencies.
|
|
-assumenosideeffects class android.util.Log {
|
|
public static boolean isLoggable(java.lang.String, int) return false;
|
|
public static int v(...);
|
|
public static int d(...);
|
|
public static int i(...);
|
|
public static int w(...);
|
|
public static int e(...);
|
|
public static int wtf(...);
|
|
public static int println(...);
|
|
}
|