use of com.android.builder.dependency.LibraryDependency in project atlas by alibaba.
the class DependencyConvertUtils method toAwbBundle.
public static AwbBundle toAwbBundle(ResolvedDependencyInfo resolvedDependencyInfo) {
assertType(Type.AWB, resolvedDependencyInfo);
List<LibraryDependency> dependencies = Lists.newArrayList();
Collection<JarDependency> jarDependencies = Lists.newArrayList();
List<SoLibrary> soLibraries = Lists.newArrayList();
collectChildren(resolvedDependencyInfo, dependencies, jarDependencies, soLibraries);
AwbBundle awbBundle = new AwbBundle(resolvedDependencyInfo.getResolvedArtifact().getFile(), resolvedDependencyInfo.getExplodedDir(), dependencies, jarDependencies, resolvedDependencyInfo.getGroup() + "-" + resolvedDependencyInfo.getName(), resolvedDependencyInfo.getVariantName(), resolvedDependencyInfo.getGradlePath(), null, convert(resolvedDependencyInfo.getResolvedArtifact()));
awbBundle.setSoLibraries(soLibraries);
return awbBundle;
}
use of com.android.builder.dependency.LibraryDependency in project atlas by alibaba.
the class TDependencyManager method recursiveLibSkip.
private static void recursiveLibSkip(@NonNull List<LibraryDependency> libs) {
for (LibraryDependency lib : libs) {
lib.skip();
//noinspection unchecked
recursiveLibSkip((List<LibraryDependency>) lib.getLibraryDependencies());
//noinspection unchecked
recursiveJavaSkip((List<JarDependency>) lib.getJavaDependencies());
}
}
Aggregations