Class EspressoBuildConfig

java.lang.Object
io.appium.java_client.remote.options.BaseMapOptionData<EspressoBuildConfig>
io.appium.java_client.android.options.server.EspressoBuildConfig

public class EspressoBuildConfig extends BaseMapOptionData<EspressoBuildConfig>
  • Field Details

  • Constructor Details

    • EspressoBuildConfig

      public EspressoBuildConfig()
    • EspressoBuildConfig

      public EspressoBuildConfig(String json)
  • Method Details

    • withGradleVersion

      public EspressoBuildConfig withGradleVersion(String version)
      Set Gradle version. By default, the version from the build.gradle is used.
      Parameters:
      version - E.g. "6.3".
      Returns:
      self instance for chaining.
    • getGradleVersion

      public Optional<String> getGradleVersion()
      Get Gradle version.
      Returns:
      Gradle version.
    • withAndroidGradlePluginVersion

      public EspressoBuildConfig withAndroidGradlePluginVersion(String version)
      Set Gradle plugin version. It must correspond to the Gradle version (if provided). By default, the version from the build.gradle is used.
      Parameters:
      version - E.g. "4.1.1"
      Returns:
      self instance for chaining.
    • getAndroidGradlePluginVersion

      public Optional<String> getAndroidGradlePluginVersion()
      Get Gradle plugin version.
      Returns:
      Gradle plugin version.
    • withBuildToolsVersion

      public EspressoBuildConfig withBuildToolsVersion(String version)
      Set Android build tools version to compile the server with. By default, the version from the build.gradle is used.
      Parameters:
      version - E.g. "28.0.3".
      Returns:
      self instance for chaining.
    • getBuildToolsVersion

      public Optional<String> getBuildToolsVersion()
      Get Android build tools version.
      Returns:
      Android build tools version.
    • withCompileSdkVersion

      public EspressoBuildConfig withCompileSdkVersion(String version)
      Set Android SDK version to compile the server for. By default, the version from the app build.gradle is used.
      Parameters:
      version - E.g. "28"
      Returns:
      self instance for chaining.
    • getCompileSdkVersion

      public Optional<String> getCompileSdkVersion()
      Get the target Android SDK version.
      Returns:
      Android SDK version.
    • withComposeVersion

      public EspressoBuildConfig withComposeVersion(String composeVersion)
      Set the version of the included androidx.compose.ui components to compile the server for. By default, the version from app's build.gradle is used.
      Parameters:
      composeVersion - E.g. "1.0.5"
      Returns:
      self instance for chaining.
    • getComposeVersion

      public Optional<String> getComposeVersion()
      Get the version of included androidx.compose.ui components.
      Returns:
      Version of androidx.compose.ui components.
    • withSourceCompatibility

      public EspressoBuildConfig withSourceCompatibility(String sourceCompatibility)
      Set the minimum version of JVM the project sources are compatible with.
      Parameters:
      sourceCompatibility - E.g. "VERSION_12"
      Returns:
      self instance for chaining.
    • getSourceCompatibility

      public Optional<String> getSourceCompatibility()
      Get the minimum version of JVM the project sources are compatible with.
      Returns:
      Minimum version of JVM the project sources are compatible with.
    • withJvmTarget

      public EspressoBuildConfig withJvmTarget(String jvmTarget)
      Set the target version of the generated JVM bytecode as a string.
      Parameters:
      jvmTarget - E.g. "1_10" or `1_8`
      Returns:
      self instance for chaining.
    • getJvmTarget

      public Optional<String> getJvmTarget()
      Get the target version of the generated JVM bytecode as a string.
      Returns:
      Target version of the generated JVM bytecode as a string.
    • withTargetCompatibility

      public EspressoBuildConfig withTargetCompatibility(String targetCompatibility)
      Set the target version of JVM the project sources are compatible with.
      Parameters:
      targetCompatibility - E.g. "VERSION_12"
      Returns:
      self instance for chaining.
    • getTargetCompatibility

      public Optional<String> getTargetCompatibility()
      Get the target version of JVM the project sources are compatible with.
      Returns:
      Target version of JVM the project sources are compatible with.
    • withMinSdk

      public EspressoBuildConfig withMinSdk(int apiLevel)
      Set the minimum Android SDK version to compile the server for. By default, the version from the app build.gradle is used.
      Parameters:
      apiLevel - E.g. 18.
      Returns:
      self instance for chaining.
    • getMinSdkVersion

      public Optional<Integer> getMinSdkVersion()
      Get the minimum Android SDK version.
      Returns:
      Minimum Android SDK version.
    • withTargetSdk

      public EspressoBuildConfig withTargetSdk(int apiLevel)
      Set the target Android SDK version to compile the server for. By default, the version from the app build.gradle is used.
      Parameters:
      apiLevel - E.g. 28.
      Returns:
      self instance for chaining.
    • getTargetSdkVersion

      public Optional<Integer> getTargetSdkVersion()
      Get the target Android SDK version.
      Returns:
      Target Android SDK version.
    • withKotlinVersion

      public EspressoBuildConfig withKotlinVersion(String version)
      Kotlin version to compile the server for. By default, the version from the build.gradle is used.
      Parameters:
      version - E.g. "1.5.10".
      Returns:
      self instance for chaining.
    • getKotlinVersion

      public Optional<String> getKotlinVersion()
      Get the target Kotlin version.
      Returns:
      Kotlin version.
    • withAdditionalAppDependencies

      public EspressoBuildConfig withAdditionalAppDependencies(List<String> dependencies)
      Set a non-empty array of dependent module names with their versions. The scripts add all these items as "implementation" lines of dependencies category in the app build.gradle script.
      Parameters:
      dependencies - E.g. ["xerces.xercesImpl:2.8.0", "xerces.xmlParserAPIs:2.6.2"].
      Returns:
      self instance for chaining.
    • getAdditionalAppDependencies

      public Optional<List<String>> getAdditionalAppDependencies()
      Get the array of dependent application module names with their versions.
      Returns:
      Dependent module names with their versions.
    • withAdditionalAndroidTestDependencies

      public EspressoBuildConfig withAdditionalAndroidTestDependencies(List<String> dependencies)
      Set a non-empty array of dependent module names with their versions. The scripts add all these items as "androidTestImplementation" lines of dependencies category in the app build.gradle script.
      Parameters:
      dependencies - E.g. ["xerces.xercesImpl:2.8.0", "xerces.xmlParserAPIs:2.6.2"].
      Returns:
      self instance for chaining.
    • getAdditionalAndroidTestDependencies

      public Optional<List<String>> getAdditionalAndroidTestDependencies()
      Get the array of dependent Android test module names with their versions.
      Returns:
      Dependent module names with their versions.