mirror of
https://github.com/yuga-hashimoto/openclaw-assistant.git
synced 2026-08-14 08:47:12 +00:00
Adds a self-contained :wear module that registers OpenClaw as a Wear OS assistant. Fixes the root cause from PR #63 where the app did not appear in the Wear OS assistant picker. Root cause fix: - PR #63 placed android.intent.action.ASSIST on the VoiceInteractionService intent-filter (incorrect). Wear OS populates the assistant picker by enumerating Activities, not Services. - This PR adds WearAssistActivity with the ASSIST intent-filter, which makes OpenClaw visible in Settings > Apps > Default Apps > Assist app. Architecture: - :wear is fully self-contained (no :shared library extraction needed) - Zero changes to :app — phone app is unaffected - Avoids the 106-file conflict storm from PR #63's :shared approach Components: - WearAssistActivity: handles ASSIST intent, full voice pipeline (listen → API → TTS), critical for assistant picker visibility - WearMainActivity: settings screen (URL, token, TTS toggle) on watch - WearVoiceInteractionService / WearSessionService / WearSession: VIS path for when OpenClaw is set as default assistant - WearSettingsRepository: encrypted SharedPreferences (5 keys only) - WearApiClient: OkHttp client, OpenAI-compatible chat/completions format - WearRecognitionService: required stub for VoiceInteraction framework - WearSessionForegroundService: keeps process alive during conversation Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
223 B
Prolog
12 lines
223 B
Prolog
-keepattributes *Annotation*
|
|
-keepattributes SourceFile,LineNumberTable
|
|
|
|
# OkHttp
|
|
-dontwarn okhttp3.**
|
|
-dontwarn okio.**
|
|
-keep class okhttp3.** { *; }
|
|
|
|
# Gson
|
|
-keepattributes Signature
|
|
-keep class com.google.gson.** { *; }
|