public boolean apiIsSupported(int apiLevel) {
    // TODO: the naming here is awkward. Tooling may rely on the minSdkVersion,
    // but it is referred to as API in DexFormat. Currently indistinguishable.
    return minSdkVersion >= apiLevel;
  }
Checks whether an API feature is supported.

@param apiLevel the API level to test
@return returns true if the current API level is at least sdkVersion
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/DexOptions.java