0
0
mirror of https://github.com/MuntashirAkon/Metro.git synced 2024-09-19 19:42:21 +02:00

feat: Add a function to check for Android 13

This commit is contained in:
Prathamesh More 2023-03-14 18:50:18 +05:30
parent 71b2f8bc32
commit 3e93dcfc4d

View File

@ -82,4 +82,13 @@ object VersionUtils {
fun hasS(): Boolean {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
}
/**
* @return true if device is running API >= 33
*/
@ChecksSdkIntAtLeast(api = Build.VERSION_CODES.TIRAMISU)
@JvmStatic
fun hasT(): Boolean {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU
}
}