Class SetupAndroidSdkExtension


  • public class SetupAndroidSdkExtension
    extends java.lang.Object
    Provides configuration for SetupAndroidSdkPlugin.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_SDK_TOOLS_VERSION
      The default version of Android SDK Tools to download and use.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.lang.String... packages)
      Adds all the packages to the collection to install via the plugin
      void packages​(java.util.Collection<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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 is Revision 26.1.1 (September 2017)
        See Also:
        Constant Field Values
    • Constructor Detail

      • SetupAndroidSdkExtension

        public SetupAndroidSdkExtension()
    • 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-4 or system-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-4 or system-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 null if 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 or null if 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 or null if licenses should be automatically accepted.