Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ android {
applicationId = "xyz.leinss.TobiBoard"
minSdk = 21
targetSdk = 35
versionCode = 6812
versionName = "6.8.12"
versionCode = 6813
versionName = "6.8.13"
buildConfigField("boolean", "ALLOW_USER_SUPPLIED_JNI", "false")
buildConfigField("boolean", "ENABLE_GESTURE_DATA_GATHERING", "false")
manifestPlaceholders["gestureDataProviderEnabled"] = "false"
Expand Down
8 changes: 8 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
native <methods>;
}

# sherpa-onnx: the native library (libsherpa-onnx-jni.so) reads the *fields* of these config
# classes by name via JNI GetFieldID (e.g. "decodingMethod" on OfflineRecognizerConfig) and calls
# their constructors/getters reflectively. R8 renames fields/classes by default, so without this the
# native OfflineRecognizer fails to construct in minified release builds with
# "Failed to get field ID for decodingMethod" — on-device voice input silently never runs (works in
# unminified debug only). Keep the whole API surface so JNI name lookups resolve.
-keep class com.k2fsa.sherpa.onnx.** { *; }

# Keep classes that are used as a parameter type of methods that are also marked as keep
# to preserve changing those methods' signature.
-keep class helium314.keyboard.latin.dictionary.Dictionary
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/6813.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed on-device voice typing: the speech recognizer failed to load in release builds, so dictation never produced text. It now loads and transcribes correctly.
Loading