From 8b8c64ee1dadd8d977080b920873df5ed62c2b9d Mon Sep 17 00:00:00 2001 From: Alex Zaitsev Date: Tue, 26 Nov 2019 08:22:59 +0200 Subject: [PATCH] removed Ant support --- build.gradle | 7 +- build.xml | 107 ------------------- ivy.xml | 14 --- release.sh | 2 +- run.bat | 2 +- run.sh | 2 +- src/main/java/com/alex_zaitsev/adg/Main.java | 2 +- 7 files changed, 5 insertions(+), 131 deletions(-) delete mode 100644 build.xml delete mode 100644 ivy.xml diff --git a/build.gradle b/build.gradle index f640839..6b11e29 100644 --- a/build.gradle +++ b/build.gradle @@ -20,12 +20,7 @@ testlogger { slowThreshold 0 // show time } clean { - delete = [ // delete anything excluding compiled jar - 'build/classes', - 'build/generated', - 'build/tmp', - 'build/test-results', - 'build/reports'] + delete = ['build'] } dependencies { implementation 'org.smali:baksmali:2.2.5' // runtime dependency diff --git a/build.xml b/build.xml deleted file mode 100644 index 8734130..0000000 --- a/build.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ivy.xml b/ivy.xml deleted file mode 100644 index 5df0056..0000000 --- a/ivy.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/release.sh b/release.sh index 80f5a69..fb74679 100755 --- a/release.sh +++ b/release.sh @@ -5,4 +5,4 @@ if [ $# -ne 1 ]; then fi gradle build 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 gui/* filters/default.json filters/instructions.txt run.bat run.sh +zip -u -x .DS_Store -r "apk-dependency-graph-scripts-$1.zip" build/libs/apk-dependency-graph.jar gui/* filters/default.json filters/instructions.txt run.bat run.sh diff --git a/run.bat b/run.bat index eeb4040..363c6b3 100644 --- a/run.bat +++ b/run.bat @@ -24,4 +24,4 @@ For %%A in ("%filename%") do ( Set outPath=%~dp0\output\%Name:~0,-4% Set jsonPath=%~dp0\gui\analyzed.js -java -jar %~dp0\build\jar\apk-dependency-graph.jar -i %outPath% -o %jsonPath% -a %1 -f %2 +java -jar %~dp0\build\libs\apk-dependency-graph.jar -i %outPath% -o %jsonPath% -a %1 -f %2 diff --git a/run.sh b/run.sh index 92f8634..b7c8f14 100755 --- a/run.sh +++ b/run.sh @@ -15,4 +15,4 @@ dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" outPath=${dir}"/output/"${xpref} jsonPath=${dir}"/gui/analyzed.js" -eval "java -jar ${dir}'/build/jar/apk-dependency-graph.jar' -i ${outPath} -o ${jsonPath} -a $1 -f $2" +eval "java -jar ${dir}'/build/libs/apk-dependency-graph.jar' -i ${outPath} -o ${jsonPath} -a $1 -f $2" diff --git a/src/main/java/com/alex_zaitsev/adg/Main.java b/src/main/java/com/alex_zaitsev/adg/Main.java index cb46618..1ef4292 100644 --- a/src/main/java/com/alex_zaitsev/adg/Main.java +++ b/src/main/java/com/alex_zaitsev/adg/Main.java @@ -50,7 +50,7 @@ public static void main(String[] args) { if (analyzer.run()) { File resultFile = new File(arguments.getResultPath()); new Writer(resultFile).write(analyzer.getDependencies()); - System.out.println("Success! Now open index.html in your browser."); + System.out.println("Success! Now open gui/index.html in your browser."); } } } \ No newline at end of file