boswelja / WatchConnectionLib

An Android library to provide a shared API for multiple smartwatch platforms
Apache License 2.0
3 stars 0 forks source link

Serialization improvements #59

Closed boswelja closed 2 years ago

boswelja commented 2 years ago

Serialization logic will be lifted out of MessageClient implementations, and into the single purpose MessageHandler. This enables a much more flexible implementation (singleton MessageClient with any number of handlers), improves type safety (no unchecked casts) and provides better support for messages with no data. As an extra bonus, this enables serialization logic to be shared across mobile and wear.