fix: annotate isAtLeast(int) with @ChecksSdkIntAtLeast

This commit is contained in:
Akash Yadav
2023-12-21 16:16:08 +05:30
parent 403092ac2e
commit 5f11cd5cac
@@ -42,4 +42,5 @@ fun isAtLeastT() = isAtLeast(Build.VERSION_CODES.TIRAMISU)
@ChecksSdkIntAtLeast(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
fun isAtLeastU() = isAtLeast(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
@ChecksSdkIntAtLeast(parameter = 0)
fun isAtLeast(version: Int) : Boolean = Build.VERSION.SDK_INT >= version