All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.pluginapi.UsesSdk Maven / Gradle / Ivy

There is a newer version: 4.13
Show newest version
package org.robolectric.pluginapi;

/**
 * Represents the contents of a `uses-sdk` element in an Android manifest file.
 */
public interface UsesSdk {
  /**
   * Returns the minimum Android SDK version that this package expects to be runnable on, as
   * specified in the manifest.
   *
   * @return the minimum SDK version
   */
  int getMinSdkVersion();

  /**
   * Returns the Android SDK version that this package prefers to be run on, as specified in the
   * manifest.
   *
   * Note that this value changes the behavior of some Android code (notably {@link
   * android.content.SharedPreferences}) to emulate old bugs.
   *
   * @return the target SDK version
   */
  int getTargetSdkVersion();

  /**
   * Returns the maximum Android SDK version that this package expects to be runnable on, as
   * specified in the manifest.
   *
   * If no maximum version is specified, `null` may be returned.
   *
   * @return the maximum SDK version, or `null`
   */
  Integer getMaxSdkVersion();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy