getditto / DittoAndroidTools

Diagnostic and Debugging Tools for Ditto Android SDK
MIT License
6 stars 1 forks source link

Add Wifi Aware as a section in the health tool #130

Closed rajramsaroop closed 3 weeks ago

rajramsaroop commented 4 weeks ago

Fixes https://github.com/orgs/getditto/projects/32/views/1?pane=issue&itemId=74940891&issue=getditto%7CDittoAndroidTools%7C112

Adds Wifi Aware checking capability to the Health tool. The tool returns one of 3 statuses:

SUPPORTED - Wifi Aware is available for the device UNSUPPORTED - Wifi Aware is not available for the device UNSUPPORTED_ANDROID_VERSION - Using a version of Android older than 8.0/sdk 26 which is when Wifi Aware support was added

I have also updated the device details display the Android version and SDK version more clearly.

As for changes to the Health tool in general I have updated the HealthScreen() with an optional parameter to determine which tools are displayed (and the order is preserved). By default it displays all health items (Permissions and Wifi Aware capability).

Finally I found an issue with the dependency constraints for the Ditto SDK and those are fixed in this PR.

Below are some screenshots of the different states on different form factors (phone vs. tablet):