Class SdkLibData

java.lang.Object
com.android.builder.sdk.SdkLibData

public class SdkLibData extends Object
Handles the components needed to download missing SDK components.
  • Method Details

    • dontDownload

      public static SdkLibData dontDownload()
    • download

      public static SdkLibData download(@NonNull com.android.repository.api.Downloader downloader, @NonNull com.android.repository.api.SettingsController settings)
    • useSdkDownload

      public boolean useSdkDownload()
    • getDownloader

      @NonNull public com.android.repository.api.Downloader getDownloader()
      Returns the downloader used to download the missing SDK components. The downloader should be used only when the mUseSdkDownload flag is set, therefore enabling this feature.
    • getSettings

      @NonNull public com.android.repository.api.SettingsController getSettings()
      Returns the settings used to download the missing SDK components. The settings should be used only when the mUseSdkDownload flag is set, therefore enabling this feature.
    • setNeedsCacheReset

      public void setNeedsCacheReset(boolean needsCacheReset)
      Sets the flag for resetting the local and remote repository cache. The cache should be refreshed at least one per build. Once it is reset, the needsCacheReset flag should be set to false.
      Parameters:
      needsCacheReset -
    • needsCacheReset

      public boolean needsCacheReset()