Class EspressoBuildConfig
java.lang.Object
io.appium.java_client.remote.options.BaseMapOptionData<EspressoBuildConfig>
io.appium.java_client.android.options.server.EspressoBuildConfig
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the array of dependent Android test module names with their versions.Get the array of dependent application module names with their versions.Get Gradle plugin version.Get Android build tools version.Get the target Android SDK version.Get the version of included androidx.compose.ui components.Get Gradle version.Get the target version of the generated JVM bytecode as a string.Get the target Kotlin version.Get the minimum Android SDK version.Get the minimum version of JVM the project sources are compatible with.Get the target version of JVM the project sources are compatible with.Get the target Android SDK version.withAdditionalAndroidTestDependencies(List<String> dependencies) Set a non-empty array of dependent module names with their versions.withAdditionalAppDependencies(List<String> dependencies) Set a non-empty array of dependent module names with their versions.withAndroidGradlePluginVersion(String version) Set Gradle plugin version.withBuildToolsVersion(String version) Set Android build tools version to compile the server with.withCompileSdkVersion(String version) Set Android SDK version to compile the server for.withComposeVersion(String composeVersion) Set the version of the included androidx.compose.ui components to compile the server for.withGradleVersion(String version) Set Gradle version.withJvmTarget(String jvmTarget) Set the target version of the generated JVM bytecode as a string.withKotlinVersion(String version) Kotlin version to compile the server for.withMinSdk(int apiLevel) Set the minimum Android SDK version to compile the server for.withSourceCompatibility(String sourceCompatibility) Set the minimum version of JVM the project sources are compatible with.withTargetCompatibility(String targetCompatibility) Set the target version of JVM the project sources are compatible with.withTargetSdk(int apiLevel) Set the target Android SDK version to compile the server for.Methods inherited from class io.appium.java_client.remote.options.BaseMapOptionData
assignOptionValue, getOptionValue, toJson, toMap, toString
-
Field Details
-
TOOLS_VERSION
- See Also:
-
ADDITIONAL_APP_DEPENDENCIES
- See Also:
-
ADDITIONAL_ANDROID_TEST_DEPENDENCIES
- See Also:
-
-
Constructor Details
-
EspressoBuildConfig
public EspressoBuildConfig() -
EspressoBuildConfig
-
-
Method Details
-
withGradleVersion
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
Get Gradle version.- Returns:
- Gradle version.
-
withAndroidGradlePluginVersion
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
Get Gradle plugin version.- Returns:
- Gradle plugin version.
-
withBuildToolsVersion
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
Get Android build tools version.- Returns:
- Android build tools version.
-
withCompileSdkVersion
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
Get the target Android SDK version.- Returns:
- Android SDK version.
-
withComposeVersion
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
Get the version of included androidx.compose.ui components.- Returns:
- Version of androidx.compose.ui components.
-
withSourceCompatibility
Set the minimum version of JVM the project sources are compatible with.- Parameters:
sourceCompatibility- E.g. "VERSION_12"- Returns:
- self instance for chaining.
-
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
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
Get the target version of the generated JVM bytecode as a string.- Returns:
- Target version of the generated JVM bytecode as a string.
-
withTargetCompatibility
Set the target version of JVM the project sources are compatible with.- Parameters:
targetCompatibility- E.g. "VERSION_12"- Returns:
- self instance for chaining.
-
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
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
Get the minimum Android SDK version.- Returns:
- Minimum Android SDK version.
-
withTargetSdk
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
Get the target Android SDK version.- Returns:
- Target Android SDK version.
-
withKotlinVersion
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
Get the target Kotlin version.- Returns:
- Kotlin version.
-
withAdditionalAppDependencies
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
Get the array of dependent application module names with their versions.- Returns:
- Dependent module names with their versions.
-
withAdditionalAndroidTestDependencies
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
Get the array of dependent Android test module names with their versions.- Returns:
- Dependent module names with their versions.
-