Package com.android.builder.sdk
Class SdkLibData
java.lang.Object
com.android.builder.sdk.SdkLibData
Handles the components needed to download missing SDK components.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SdkLibDatastatic SdkLibDatadownload(com.android.repository.api.Downloader downloader, com.android.repository.api.SettingsController settings) com.android.repository.api.DownloaderReturns the downloader used to download the missing SDK components.com.android.repository.api.SettingsControllerReturns the settings used to download the missing SDK components.booleanvoidsetNeedsCacheReset(boolean needsCacheReset) Sets the flag for resetting the local and remote repository cache.boolean
-
Method Details
-
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, theneedsCacheResetflag should be set to false.- Parameters:
needsCacheReset-
-
needsCacheReset
public boolean needsCacheReset()
-