Package com.quittle.setupandroidsdk
Class SetupAndroidSdkExtension
- java.lang.Object
-
- com.quittle.setupandroidsdk.SetupAndroidSdkExtension
-
public class SetupAndroidSdkExtension extends java.lang.ObjectProvides configuration forSetupAndroidSdkPlugin.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_SDK_TOOLS_VERSIONThe default version of Android SDK Tools to download and use.
-
Constructor Summary
Constructors Constructor Description SetupAndroidSdkExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetLicensesDirectory()Gets the directory where license files to use when installing the SDK are storedjava.util.Collection<java.lang.String>getPackages()Gets the packages to be installedjava.lang.StringgetSdkToolsVersion()Gets the SDK Tools version.voidlicensesDirectory(java.io.File licensesDirectory)Sets the directory where license files to use when installing the SDK are storedvoidpackages(java.lang.String... packages)Adds all the packages to the collection to install via the pluginvoidpackages(java.util.Collection<java.lang.String> packages)Adds all the packages to the collection to install via the pluginvoidsdkToolsVersion(java.lang.String sdkToolsVersion)Sets the SDK Tools version.voidsetLicensesDirectory(java.io.File licensesDirectory)Sets the directory where license files to use when installing the SDK are storedvoidsetSdkToolsVersion(java.lang.String sdkToolsVersion)Sets the SDK Tools version.
-
-
-
Field Detail
-
DEFAULT_SDK_TOOLS_VERSION
public static final java.lang.String DEFAULT_SDK_TOOLS_VERSION
The default version of Android SDK Tools to download and use. Currently isRevision 26.1.1 (September 2017)- See Also:
- Constant Field Values
-
-
Method Detail
-
getSdkToolsVersion
public java.lang.String getSdkToolsVersion()
Gets the SDK Tools version.- Returns:
- The currently set SDK Tools version.
-
setSdkToolsVersion
public void setSdkToolsVersion(java.lang.String sdkToolsVersion)
Sets the SDK Tools version.- Parameters:
sdkToolsVersion- The SDK Tools version to set.
-
sdkToolsVersion
public void sdkToolsVersion(java.lang.String sdkToolsVersion)
Sets the SDK Tools version.- Parameters:
sdkToolsVersion- The SDK Tools version to set.
-
packages
public void packages(java.util.Collection<java.lang.String> packages)
Adds all the packages to the collection to install via the plugin- Parameters:
packages- The package names used by the Android SDK Manager. e.g.add-ons;addon-google_apis-google-4orsystem-images;android-25;google_apis;x86.
-
packages
public void packages(java.lang.String... packages)
Adds all the packages to the collection to install via the plugin- Parameters:
packages- The package names used by the Android SDK Manager. e.g.add-ons;addon-google_apis-google-4orsystem-images;android-25;google_apis;x86.
-
getPackages
public java.util.Collection<java.lang.String> getPackages()
Gets the packages to be installed- Returns:
- A collection of Android SDK Manager packages to be installed by the plugin.
-
getLicensesDirectory
public java.io.File getLicensesDirectory()
Gets the directory where license files to use when installing the SDK are stored- Returns:
- The directory to copy licenses from or
nullif licenses should be automatically accepted.
-
setLicensesDirectory
public void setLicensesDirectory(java.io.File licensesDirectory)
Sets the directory where license files to use when installing the SDK are stored- Parameters:
licensesDirectory- The directory to copy licenses from ornullif licenses should be automatically accepted.
-
licensesDirectory
public void licensesDirectory(java.io.File licensesDirectory)
Sets the directory where license files to use when installing the SDK are stored- Parameters:
licensesDirectory- The directory to copy licenses from ornullif licenses should be automatically accepted.
-
-