use of com.taobao.android.builder.dependency.output.DependencyJson in project atlas by alibaba.
the class AndroidDependencyTree method getDependencyJson.
/**
* 转换为ependencyJSon对象
*
* @return
*/
public DependencyJson getDependencyJson() {
DependencyJson dependencyJson = new DependencyJson();
for (ResolvedDependencyInfo dep : mResolvedDependencies) {
String value = getDependencyString(dep);
if ("awb".equalsIgnoreCase(dep.getType())) {
ArrayList<String> awbDeps = dependencyJson.getAwbs().get(value);
if (null == awbDeps) {
awbDeps = new ArrayList<String>();
}
addChildDependency(awbDeps, dep);
dependencyJson.getAwbs().put(value, awbDeps);
} else {
dependencyJson.getMainDex().add(value);
addChildDependency(dependencyJson.getMainDex(), dep);
}
}
return dependencyJson;
}
use of com.taobao.android.builder.dependency.output.DependencyJson in project atlas by alibaba.
the class AndroidDependencyTree method getFlatDependencies.
public Set<String> getFlatDependencies() {
DependencyJson dependencyJson = getDependencyJson();
Set<String> depenSets = new HashSet<String>();
if (null != dependencyJson.getAwbs()) {
for (String key : dependencyJson.getAwbs().keySet()) {
depenSets.add(key);
depenSets.addAll(dependencyJson.getAwbs().get(key));
}
}
depenSets.addAll(dependencyJson.getMainDex());
return depenSets;
}
use of com.taobao.android.builder.dependency.output.DependencyJson in project atlas by alibaba.
the class AtlasDependencyTree method getFlatDependencies.
public Set<String> getFlatDependencies() {
DependencyJson dependencyJson = getDependencyJson();
Set<String> depenSets = new HashSet<String>();
if (null != dependencyJson.getAwbs()) {
for (String key : dependencyJson.getAwbs().keySet()) {
depenSets.add(key);
depenSets.addAll(dependencyJson.getAwbs().get(key));
}
}
depenSets.addAll(dependencyJson.getMainDex());
return depenSets;
}
Aggregations