05nelsonm / kmp-tor

Kotlin Multiplatform Library for embedding Tor into your applications
Apache License 2.0
33 stars 5 forks source link

Add notification state abstraction for `runtime-service` #456

Closed 05nelsonm closed 4 weeks ago

05nelsonm commented 1 month ago

For commonMain, there needs to be an abstraction for managing the notification state based on observers that are subscribed with TorRuntime, much like with 1.x.x, updates to the state should be passed to the implementation's render function, which updates the view.

The abstraction should be testable without needing to reference any platform specific things.

Part of #423

05nelsonm commented 1 month ago

In order to test with Android, need a bare minimum implementation for a Foreground Service that posts up a notification. Need to see functionality of the abstraction and how it reacts given different scenario of when the application is killed.