public interface SdkLoader
getSdkInfo(com.android.utils.ILogger), or getRepositories()), or
target-specific information
(getTargetInfo(String, Revision, com.android.utils.ILogger, SdkLibData)).| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<java.io.File> |
getRepositories()
Returns the location of artifact repositories built-in the SDK.
|
SdkInfo |
getSdkInfo(com.android.utils.ILogger logger)
Returns generic SDK information.
|
TargetInfo |
getTargetInfo(java.lang.String targetHash,
com.android.repository.Revision buildToolRevision,
com.android.utils.ILogger logger,
SdkLibData sdkLibData)
Returns information about a build target.
|
java.io.File |
installSdkTool(SdkLibData sdkLibData,
java.lang.String packageId)
Installs an Android Sdk Tool if it's not already installed.
|
@NonNull TargetInfo getTargetInfo(@NonNull java.lang.String targetHash, @NonNull com.android.repository.Revision buildToolRevision, @NonNull com.android.utils.ILogger logger, @NonNull SdkLibData sdkLibData) throws LicenceNotAcceptedException, InstallFailedException
sdkLibData.useSdlDownload() is true. This requires loading/parsing the SDK.targetHash - the compilation target hash string.buildToolRevision - the build tools revision.logger - a logger to output messages.sdkLibData - a wrapper containing all the components for downloading.LicenceNotAcceptedExceptionInstallFailedException@NonNull SdkInfo getSdkInfo(@NonNull com.android.utils.ILogger logger)
logger - a logger to output messages.@NonNull com.google.common.collect.ImmutableList<java.io.File> getRepositories()
@Nullable
java.io.File installSdkTool(@NonNull
SdkLibData sdkLibData,
@NonNull
java.lang.String packageId)
throws LicenceNotAcceptedException,
InstallFailedException
sdkLibData - contains all the components for downloading.packageId - the package/id path of the required Tool component.File representing the locations to the directory where the Tool component
is installed or null if we haven't managed to find such a component.LicenceNotAcceptedExceptionInstallFailedException