infinum / android_connectionbuddy

Utility library for handling connectivity change events.
Apache License 2.0
94 stars 17 forks source link

Update dependencies, min/target API and version on refactor/maintenance #97

Open JonatanPlesko opened 2 years ago

JonatanPlesko commented 2 years ago

Related to #95 - the branch needs some refreshing. We should also determine the minimum API version that makes sense for this round of updates - we could stay conservative and move it to 21 (bare minimum IMO) or raise it to 24 unless there are some counter-arguments for it.

mtrezza commented 2 years ago

Maybe this can be a guidance: https://developer.android.com/google/play/requirements/target-sdk; you could also look at the API adoption chart and define a threshold for on how many devices this library should be usable.

If you say minSdk is API 24, that means it will be usable on 91.7% of devices, which is really not much. In other words, the lib won't work in 1 of 10 devices. I would set minSdk 21. Android 5.x introduced many security features that were missing in 4.x, and it supports 98.6% of devices.

image (copyright Google)