1 |
apply plugin: 'com.android.application'
|
2 |
|
3 |
android {
|
4 |
compileSdkVersion 22
|
5 |
buildToolsVersion "22.0.1"
|
6 |
|
7 |
defaultConfig {
|
8 |
applicationId "dk.thoerup.android.barcodesample"
|
9 |
minSdkVersion 9
|
10 |
targetSdkVersion 22
|
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 |
dependencies {
|
23 |
compile fileTree(dir: 'libs', include: ['*.jar'])
|
24 |
compile 'com.android.support:appcompat-v7:22.1.1'
|
25 |
|
26 |
// Supports Android 4.0.3 and later (API level 15)
|
27 |
compile 'com.journeyapps:zxing-android-embedded:2.0.1@aar'
|
28 |
|
29 |
// Supports Android 2.1 and later (API level 7), but not optimal for later Android versions.
|
30 |
// If you only plan on supporting Android 4.0.3 and up, you don't need to include this.
|
31 |
compile 'com.journeyapps:zxing-android-legacy:2.0.1@aar'
|
32 |
|
33 |
// Convenience library to launch the scanning and encoding Activities.
|
34 |
// It automatically picks the best scanning library from the above two, depending on the
|
35 |
// Android version and what is available.
|
36 |
compile 'com.journeyapps:zxing-android-integration:2.0.1@aar'
|
37 |
|
38 |
// Version 3.0.x of zxing core contains some code that is not compatible on Android 2.2 and earlier.
|
39 |
// This mostly affects encoding, but you should test if you plan to support these versions.
|
40 |
// Older versions e.g. 2.2 may also work if you need support for older Android versions.
|
41 |
compile 'com.google.zxing:core:3.0.1'
|
42 |
|
43 |
|
44 |
}
|