Refactor(minSdk): Upgrade minSdk from 21 to 24

This commit is contained in:
2024-10-11 09:43:54 +08:00
parent 3979027471
commit cd97f6156f
9 changed files with 17 additions and 43 deletions

View File

@@ -30,7 +30,7 @@ class NativeWebApi(
return clipboardManager?.let {
it.setPrimaryClip(ClipData.newPlainText("copy", text))
true
} ?: false
} == true
}
@JavascriptInterface
@@ -95,7 +95,7 @@ class NativeWebApi(
}
true
} catch (e: IOException) {
Timber.e("Could not save file $fileName to ${file.absolutePath}", e)
Timber.e(e, "Could not save file $fileName to ${file.absolutePath}")
false
}
}

View File

@@ -17,7 +17,7 @@ object Permissions {
context: Context,
permissionLauncher: ManagedActivityResultLauncher<String, Boolean>
): Boolean {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
return true
}