com.android.builder.sdk
Interface SdkLoader

All Known Implementing Classes:
DefaultSdkLoader, PlatformLoader

public interface SdkLoader

A loader for the SDK. It's able to provide general SDK information (getSdkInfo(com.android.utils.ILogger), or getRepositories()), or target-specific information (getTargetInfo(String, com.android.sdklib.repository.FullRevision, com.android.utils.ILogger)).


Method Summary
 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.sdklib.repository.FullRevision buildToolRevision, com.android.utils.ILogger logger)
          Returns information about a build target.
 

Method Detail

getTargetInfo

@NonNull
TargetInfo getTargetInfo(@NonNull
                                 java.lang.String targetHash,
                                 @NonNull
                                 com.android.sdklib.repository.FullRevision buildToolRevision,
                                 @NonNull
                                 com.android.utils.ILogger logger)
Returns information about a build target. This requires loading/parsing the SDK.

Parameters:
targetHash - the compilation target hash string.
buildToolRevision - the build tools revision.
logger - a logger to output messages.
Returns:
the target info.

getSdkInfo

@NonNull
SdkInfo getSdkInfo(@NonNull
                           com.android.utils.ILogger logger)
Returns generic SDK information. This requires loading/parsing the SDK.

Parameters:
logger - a logger to output messages.
Returns:
the sdk info.

getRepositories

@NonNull
com.google.common.collect.ImmutableList<java.io.File> getRepositories()
Returns the location of artifact repositories built-in the SDK.

Returns:
a non null list of repository folders.