use of com.google.devtools.build.lib.bazel.rules.android.AndroidSdkRepositoryFunction in project bazel by bazelbuild.
the class AnalysisMock method getSkyFunctions.
public ImmutableMap<SkyFunctionName, SkyFunction> getSkyFunctions() {
// Some tests require the local_repository rule so we need the appropriate SkyFunctions.
RepositoryFunction localRepositoryFunction = new LocalRepositoryFunction();
ImmutableMap<String, RepositoryFunction> repositoryHandlers = ImmutableMap.of(LocalRepositoryRule.NAME, localRepositoryFunction, AndroidSdkRepositoryRule.NAME, new AndroidSdkRepositoryFunction(), AndroidNdkRepositoryRule.NAME, new AndroidNdkRepositoryFunction());
return ImmutableMap.of(SkyFunctions.REPOSITORY_DIRECTORY, new RepositoryDelegatorFunction(repositoryHandlers, null, new AtomicBoolean(true)), SkyFunctions.REPOSITORY, new RepositoryLoaderFunction());
}
Aggregations