Releases: ostrya/PresencePublisher
v2.7.0
The main reason for this release was a bug I encountered in my own setup, where I have multiple Wi-Fi networks all connected to the same home network. I sometimes saw disconnect events and then the devices reported being disconnected for hours, even though it was clearly connected. It took some time (and debug logs) to figure out that a new Android feature was to blame.
More recent Android devices can be connected to several Wi-Fi networks at the same time. What happened was that one network got connected, the previous network got disconnected, and since I only tracked "connected" or "not connected", I got stuck on being disconnected. The solution is that devices with SDK 31+ (i.e. Android 12) now track all connected networks at once.
This leads to a connectedWifi message now returns a list instead of a string.
Otherwise only minor changes:
- update to target SDK 36
- support for insets in the UI
- (expected) better logging performance by formatting strings only if the log level is active
- changes in message context providers to avoid SecurityException due to missing permissions