Set minSdkVersion to 21

This commit is contained in:
topjohnwu
2021-04-09 20:01:32 -07:00
parent 2b9b019093
commit 1f0a35f073
33 changed files with 44 additions and 212 deletions
@@ -21,10 +21,6 @@ class NetworkService(
private val api: GithubApiServices
) {
suspend fun fetchUpdate() = safe {
// Pre SDK 21 no longer receives any major updates
if (Build.VERSION.SDK_INT < 21)
return fetchStableUpdate()
var info = when (Config.updateChannel) {
DEFAULT_CHANNEL, STABLE_CHANNEL -> fetchStableUpdate()
BETA_CHANNEL -> fetchBetaUpdate()