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:
parent
71b2f8bc32
commit
3e93dcfc4d
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user