Skip to content

Commit

Permalink
IllegalArgumentException issue is fixed. release script is added
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzaitsev committed May 11, 2017
1 parent 2e7f47b commit 2132c65
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Binary file modified build/jar/apk-dependency-graph.jar
Binary file not shown.
8 changes: 8 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Please, specify release version";
exit 1;
fi
ant
echo "var dependencies = {links:[{\"source\":\"Class A\",\"dest\":\"Class B\"},{\"source\":\"Class C\",\"dest\":\"Class B\"},]};" > gui/analyzed.js
zip -u -x .DS_Store -r "apk-dependency-graph-scripts-$1.zip" build/jar/apk-dependency-graph.jar build.xml gui/* lib/* run.bat run.sh
7 changes: 6 additions & 1 deletion src/code/SmaliAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import code.io.Arguments;

Expand Down Expand Up @@ -36,7 +38,10 @@ public boolean run() {
System.err.println("Please check your filter!");
return false;
}
filterAsPath = filter.replaceAll("\\.", File.separator);

String replacement = Matcher.quoteReplacement(File.separator);
String searchString = Pattern.quote(".");
filterAsPath = filter.replaceAll(searchString, replacement);
File projectFolder = getProjectFolder();
if (projectFolder.exists()) {
traverseSmaliCode(projectFolder);
Expand Down

0 comments on commit 2132c65

Please sign in to comment.