use of com.android.builder.dependency.JarDependency 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.JarDependency in project atlas by alibaba.
the class DependencyConvertUtils method toJarDependency.
/**
* 转换为jar依赖
*
* @param resolvedDependencyInfo
* @return
*/
private static JarDependency toJarDependency(ResolvedDependencyInfo resolvedDependencyInfo, boolean containChild) {
assertType(Type.JAR, resolvedDependencyInfo);
ResolvedArtifact artifact = resolvedDependencyInfo.getResolvedArtifact();
List<JarDependency> dependencies = Lists.newArrayList();
if (containChild) {
collectChildren(resolvedDependencyInfo, Lists.<LibraryDependency>newArrayList(), dependencies, Lists.<SoLibrary>newArrayList());
}
JarDependency jarInfo = new JarDependency(artifact.getFile(), dependencies, convert(artifact), resolvedDependencyInfo.getGradlePath(), false);
return jarInfo;
}
use of com.android.builder.dependency.JarDependency in project atlas by alibaba.
the class TDependencyManager method recursiveJavaSkip.
private static void recursiveJavaSkip(@NonNull List<JarDependency> libs) {
for (JarDependency lib : libs) {
lib.skip();
//noinspection unchecked
recursiveJavaSkip((List<JarDependency>) lib.getDependencies());
}
}
use of com.android.builder.dependency.JarDependency 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