Skip to content

Commit

Permalink
再次修改app结构图绘制逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingForMoney committed May 2, 2018
1 parent 8c59cef commit 66439da
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,15 @@ def axe_dependency_analyse
end
end
moduleName = "#{$axeConfig.name}(#{$axeConfig.version})"
# 对于app类型,不需要绘制APP指向依赖。
unless $axeConfig.type.eql?('app')
podInfo['DEPENDENCIES'].each do |dependency|
split = dependency.split('(')
dependencyName = split[0].split(' ')[0].split('/')[0]
# 使用 graphviz 绘图
dependencies_graph = "digraph G {\n"
podInfo['DEPENDENCIES'].each do |dependency|
split = dependency.split('(')
dependencyName = split[0].split(' ')[0].split('/')[0]
if $axeConfig.type.eql?('app')
#对于app类型,单独绘制DEPENDENCIES 圆,而不是连线
dependencies_graph += " \"" + dependencyVersions[dependencyName] + "\";\n"
else
# 过滤模块自身依赖.
unless dependencyName.eql?($axeConfig.name)
dependencySetting = split.length != 1 ? '(' + split[1]: ''
Expand All @@ -323,8 +327,7 @@ def axe_dependency_analyse
end
end
end
# 使用 graphviz 绘图
dependencies_graph = "digraph G {\n"

dependencies.each do |dependency,dependencySetting|
split = dependency.split('|')
lib = split[0]
Expand Down

0 comments on commit 66439da

Please sign in to comment.