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.
|
java.util.List<java.io.File> |
updateRepositories(java.util.List<java.lang.String> repositoryPaths,
SdkLibData sdkLibData,
com.android.utils.ILogger logger)
Tries to update (or install) all local maven repositories and returns a list of directories
that were modified.
|
@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()
@NonNull
java.util.List<java.io.File> updateRepositories(@NonNull
java.util.List<java.lang.String> repositoryPaths,
@NonNull
SdkLibData sdkLibData,
@NonNull
com.android.utils.ILogger logger)
throws LicenceNotAcceptedException,
InstallFailedException
repositoryPaths - a list of all install paths as described in RepoPackage of the
remote packages for the maven repositories. Eg.: extras;google;m2repositorysdkLibData - contains all the components for downloading.logger - a logger for messages.List of locations to the directories that contain the maven repositories.LicenceNotAcceptedExceptionInstallFailedException@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