theappbusiness / android-proxy-toggle

Small application to help android developers to quickly enable and disable proxy settings
MIT License
425 stars 59 forks source link

Add device settings manager #4

Closed fmontesino closed 4 years ago

fmontesino commented 4 years ago

Why?

Modifying the proxy setting involves tampering with device settings, so we want to encapsulate that into its own class and never see it again 🙈

What?

Added a DeviceSettingsManager that exposes a couple of functions to enable/disable a Proxy, and a LiveData that will update with any changes the user makes.

Bonus

This PR will be the first to integrate Github Actions to run the unit tests 😬 Will update the PR accordingly, also will add documentation around this solution.