code: public boolean validateMinimumVersion(
              @NonNull Context context, @NonNull PackageInfo packageInfo, int minimumVersion) {
          if (isDebug(context)) {
              return true;
          }
  
          return packageInfo.versionCode >= minimumVersion;
      }
docs: Validates minimum version of app required or returns true if in debug.