]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/build.gradle
Replace PdfViewer with MuPDF, implement preview creating from PDF file
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / build.gradle
1 apply plugin: 'com.android.application'
2
3 android {
4     compileSdkVersion 21
5     buildToolsVersion "21.1.2"
6
7     defaultConfig {
8         applicationId "cz.cvut.fel.dce.qrscanner"
9         minSdkVersion 16
10         targetSdkVersion 21
11         versionCode 1
12         versionName "1.0"
13     }
14     buildTypes {
15         release {
16             minifyEnabled false
17             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18         }
19     }
20 }
21
22 task nativeLibsToJar(type: Zip, description: 'create a jar archive of the native libs') {
23     destinationDir file("$buildDir/native-libs")
24     baseName 'native-libs'
25     extension 'jar'
26     from fileTree(dir: 'libs', include: '**/*.so')
27     into 'lib/'
28 }
29
30 tasks.withType(JavaCompile) {
31     compileTask -> compileTask.dependsOn(nativeLibsToJar)
32 }
33
34 dependencies {
35     compile fileTree(dir: 'libs', include: ['*.jar'])
36     compile 'com.android.support:appcompat-v7:21.0.3'
37     compile files('build/native-libs/native-libs.jar')
38 }