]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blobdiff - QRScanner/mobile/build.gradle
Replace PdfViewer with MuPDF, implement preview creating from PDF file
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / build.gradle
index eb89c047163ab110cb80f05bf268f9a1fcf97256..12b791e82bc0e6c6573d9cc4a562063f8c83c2fb 100644 (file)
@@ -19,9 +19,20 @@ android {
     }
 }
 
+task nativeLibsToJar(type: Zip, description: 'create a jar archive of the native libs') {
+    destinationDir file("$buildDir/native-libs")
+    baseName 'native-libs'
+    extension 'jar'
+    from fileTree(dir: 'libs', include: '**/*.so')
+    into 'lib/'
+}
+
+tasks.withType(JavaCompile) {
+    compileTask -> compileTask.dependsOn(nativeLibsToJar)
+}
+
 dependencies {
     compile fileTree(dir: 'libs', include: ['*.jar'])
     compile 'com.android.support:appcompat-v7:21.0.3'
-    compile files('libs/PdfViewer.jar')
-    compile files('libs/iocommons.jar')
+    compile files('build/native-libs/native-libs.jar')
 }