use of com.android.repository.api.ConstantSourceProvider in project android by JetBrains.
the class AndroidSdkUpdaterPlugin method initComponent.
@Override
public void initComponent() {
if (isAndroidSdkManagerEnabled()) {
ExternalComponentManager.getInstance().registerComponentSource(new SdkComponentSource());
URL offlineRepo = getOfflineRepoDir();
if (offlineRepo != null) {
// We don't have an actual RepoManager yet, so just get all the modules statically.
RepositorySourceProvider provider = new ConstantSourceProvider(offlineRepo.toString(), "Offline Repo", AndroidSdkHandler.getAllModules());
AndroidSdkHandler.addCustomSourceProvider(provider, new StudioLoggerProgressIndicator(getClass()));
}
}
}
Aggregations