public class SetupAndroidSdkExtension
extends java.lang.Object
SetupAndroidSdkPlugin.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_SDK_TOOLS_VERSION
The default version of Android SDK Tools to download and use.
|
| Constructor and Description |
|---|
SetupAndroidSdkExtension() |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getLicensesDirectory()
Gets the directory where license files to use when installing the SDK are stored
|
java.util.Collection<java.lang.String> |
getPackages()
Gets the packages to be installed
|
java.lang.String |
getSdkToolsVersion()
Gets the SDK Tools version.
|
void |
licensesDirectory(java.io.File licensesDirectory)
Sets the directory where license files to use when installing the SDK are stored
|
void |
packages(java.util.Collection<java.lang.String> packages)
Adds all the packages to the collection to install via the plugin
|
void |
packages(java.lang.String... packages)
Adds all the packages to the collection to install via the plugin
|
void |
sdkToolsVersion(java.lang.String sdkToolsVersion)
Sets the SDK Tools version.
|
void |
setLicensesDirectory(java.io.File licensesDirectory)
Sets the directory where license files to use when installing the SDK are stored
|
void |
setSdkToolsVersion(java.lang.String sdkToolsVersion)
Sets the SDK Tools version.
|
public static final java.lang.String DEFAULT_SDK_TOOLS_VERSION
Revision 26.1.1 (September 2017)public java.lang.String getSdkToolsVersion()
public void setSdkToolsVersion(java.lang.String sdkToolsVersion)
sdkToolsVersion - The SDK Tools version to set.public void sdkToolsVersion(java.lang.String sdkToolsVersion)
sdkToolsVersion - The SDK Tools version to set.public void packages(java.util.Collection<java.lang.String> packages)
packages - The package names used by the Android SDK Manager. e.g.
add-ons;addon-google_apis-google-4 or
system-images;android-25;google_apis;x86.public void packages(java.lang.String... packages)
packages - The package names used by the Android SDK Manager. e.g.
add-ons;addon-google_apis-google-4 or
system-images;android-25;google_apis;x86.public java.util.Collection<java.lang.String> getPackages()
public java.io.File getLicensesDirectory()
null if licenses should be
automatically accepted.public void setLicensesDirectory(java.io.File licensesDirectory)
licensesDirectory - The directory to copy licenses from or null if licenses
should be automatically accepted.public void licensesDirectory(java.io.File licensesDirectory)
licensesDirectory - The directory to copy licenses from or null if licenses
should be automatically accepted.