CI / check (push) Canceled after 0s
- Engine: sherpa-onnx 2.0.1 keyword spotter (Apache-2.0) with the English zipformer-gigaspeech-3.3M KWS model (Apache-2.0, int8), fetched hash-pinned by scripts/fetch-wakeword.py into app/libs and src/full/assets (gitignored); CI and release run it. `full` flavour only (abiFilters arm64-v8a, armeabi-v7a, x86_64); `fdroid` has a stub engine and Settings says why. ProGuard keeps com.k2fsa.sherpa.onnx (JNI reads fields by name). - WakeWordService (foregroundServiceType microphone): persistent notification with Stop; audio only to the engine in memory; pauses while the sheet is up (AssistPresence), in battery saver, and with the screen off unless Settings says otherwise. On the word: the sheet opens listening through LembasAssistService.showSession when LLeMbas is the assistant, else the activity, else a "tap to ask" notification. - No microphone service at boot: WakeBootReceiver posts "tap to listen again"; MainActivity restarts a service the phone stopped. - Settings › Assistant › Wake word: switch (off), four built-in English phrases (BPE-tokenized with the model's bpe.model), screen-on only, battery-optimisation page; privacy and cost text. - The sheet's "no wake word" line now points at the setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
801 B
Prolog
23 lines
801 B
Prolog
# kotlinx.serialization: keep the generated serializers of the API models.
|
|
-keepattributes *Annotation*, InnerClasses
|
|
-dontnote kotlinx.serialization.**
|
|
-keepclassmembers class eu.llembas.android.api.** {
|
|
*** Companion;
|
|
}
|
|
-keepclasseswithmembers class eu.llembas.android.api.** {
|
|
kotlinx.serialization.KSerializer serializer(...);
|
|
}
|
|
-keep,includedescriptorclasses class eu.llembas.android.api.**$$serializer { *; }
|
|
|
|
# Markwon references optional classes it does not need here.
|
|
-dontwarn org.commonmark.ext.gfm.strikethrough.**
|
|
-dontwarn io.noties.markwon.**
|
|
|
|
# OkHttp's optional TLS providers.
|
|
-dontwarn org.conscrypt.**
|
|
-dontwarn org.bouncycastle.**
|
|
-dontwarn org.openjsse.**
|
|
|
|
# The wake-word engine's JNI reads its config classes' fields by name.
|
|
-keep class com.k2fsa.sherpa.onnx.** { *; }
|