diff --git a/.mtn-ignore b/.mtn-ignore
index 72050d8..8dfcbe1 100644
--- a/.mtn-ignore
+++ b/.mtn-ignore
@@ -2,11 +2,7 @@
^.settings
# Android-specific ignores
-^bin
-^gen
-^botejars/bin
-^botejars/gen
-^botejars/lib
+^botejars/libs
lint.xml
local.properties
signing.gradle
diff --git a/app/build.gradle b/app/build.gradle
index e6240e4..2581555 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -17,11 +17,8 @@ android {
}
}
-ant.importBuild('botejars.xml')
-preBuild.dependsOn precompile
-clean.dependsOn preclean
-
dependencies {
+ compile project(':botejars')
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.android.support:support-v4:19.+'
compile 'com.android.support:appcompat-v7:19.+'
diff --git a/botejars/build.gradle b/botejars/build.gradle
new file mode 100644
index 0000000..55d12e9
--- /dev/null
+++ b/botejars/build.gradle
@@ -0,0 +1,28 @@
+apply plugin: 'java'
+
+task buildJars(type: Exec) {
+ outputs.dir('libs')
+ commandLine 'ant', 'preparebotelibs'
+}
+compileJava.dependsOn buildJars
+
+// TODO an empty botejars.jar is added to the classpath
+
+artifacts.add('default', file('libs/i2p.jar'))
+artifacts.add('default', file('libs/router.jar'))
+artifacts.add('default', file('libs/mstreaming.jar'))
+artifacts.add('default', file('libs/streaming.jar'))
+artifacts.add('default', file('libs/bcprov-ecc-jdk16-146.jar'))
+artifacts.add('default', file('libs/flexi-gmss-1.7p1.jar'))
+artifacts.add('default', file('libs/lzma-9.20.jar'))
+artifacts.add('default', file('libs/ntruenc-1.2.jar'))
+artifacts.add('default', file('libs/scrypt-1.4.0.jar'))
+artifacts.add('default', file('libs/i2pbote.jar'))
+
+clean.dependsOn cleanBuildJars
+
+clean << {
+ exec {
+ commandLine 'ant', 'clean'
+ }
+}
\ No newline at end of file
diff --git a/app/botejars.xml b/botejars/build.xml
similarity index 88%
rename from app/botejars.xml
rename to botejars/build.xml
index b2ec8d2..4903efc 100644
--- a/app/botejars.xml
+++ b/botejars/build.xml
@@ -3,7 +3,7 @@
-
+
@@ -25,17 +25,9 @@
-
+
-
-
-
-
-
-
-
-
-
+
diff --git a/settings.gradle b/settings.gradle
index e7b4def..c888429 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1 +1 @@
-include ':app'
+include ':app', ':botejars'