Search in sources :

Example 1 with ProgressIndicatorAdapter

use of com.android.repository.api.ProgressIndicatorAdapter in project android by JetBrains.

the class AndroidSdk method getLatestCompatibleBuildToolsPath.

/**
   * Find latest build tools revision. Versions compatible with the selected platforms will be installed by the platform components.
   * @return The Revision of the latest build tools package, or null if no remote build tools packages are available.
   */
@Nullable
private String getLatestCompatibleBuildToolsPath() {
    ProgressIndicator progress = new ProgressIndicatorAdapter() {
    };
    RemotePackage latest = mySdkHandler.getLatestRemotePackageForPrefix(SdkConstants.FD_BUILD_TOOLS, false, progress);
    return latest != null ? latest.getPath() : null;
}
Also used : ProgressIndicator(com.android.repository.api.ProgressIndicator) ProgressIndicatorAdapter(com.android.repository.api.ProgressIndicatorAdapter) RemotePackage(com.android.repository.api.RemotePackage) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

ProgressIndicator (com.android.repository.api.ProgressIndicator)1 ProgressIndicatorAdapter (com.android.repository.api.ProgressIndicatorAdapter)1 RemotePackage (com.android.repository.api.RemotePackage)1 Nullable (org.jetbrains.annotations.Nullable)1