Merge "Import updated Android SetupCompat Library 631661920" into main
diff --git a/main/java/com/google/android/setupcompat/util/BuildCompatUtils.java b/main/java/com/google/android/setupcompat/util/BuildCompatUtils.java
index 55f3ad6..ef14d04 100644
--- a/main/java/com/google/android/setupcompat/util/BuildCompatUtils.java
+++ b/main/java/com/google/android/setupcompat/util/BuildCompatUtils.java
@@ -87,6 +87,16 @@
         || isAtLeastPreReleaseCodename("UpsideDownCake");
   }
 
+  /**
+   * Implementation of BuildCompat.isAtLeastV() suitable for use in Setup
+   *
+   * @return Whether the current OS version is higher or equal to V.
+   */
+  @ChecksSdkIntAtLeast(api = Build.VERSION_CODES.VANILLA_ICE_CREAM)
+  public static boolean isAtLeastV() {
+    return Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM;
+  }
+
   private static boolean isAtLeastPreReleaseCodename(String codename) {
     // Special case "REL", which means the build is not a pre-release build.
     if (Build.VERSION.CODENAME.equals("REL")) {