feat(examples): add native-shell workout host path

Extend the workout exemplar with a native-shell haptic request and acknowledgment path that validates the host manifest and returns through app code without owning workout state.

req: host/001

req: host/002

req: host/004

req: host/005

req: examples/001
This commit is contained in:
slhx agent
2026-06-11 20:43:14 +02:00
parent 19bf47ec72
commit e76a564add
5 changed files with 88 additions and 9 deletions
+10 -2
View File
@@ -70,8 +70,16 @@ fn registry(state: AppState) -> HandlerRegistry {
let state = state.clone();
move |_| workout_app::export_log(&state)
})
.on(workout::record_share_result, move |_| {
workout_app::record_share_result(&state)
.on(workout::record_share_result, {
let state = state.clone();
move |_| workout_app::record_share_result(&state)
})
.on(workout::request_native_haptic, {
let state = state.clone();
move |_| workout_app::request_native_haptic(&state)
})
.on(workout::record_native_haptic_ack, move |_| {
workout_app::record_native_haptic_ack(&state)
})
}