build.gradle 2.24 KB
Newer Older
1
apply plugin: 'com.android.application'
Roger Barton's avatar
Roger Barton committed
2
3
4
5
6
7
apply plugin: 'com.github.triplet.play'

// Load keystore
def keystorePropertiesFile = file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
8
9
10

android {
    compileSdkVersion 27
Roger Barton's avatar
Roger Barton committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    buildToolsVersion '28.0.2'

    playAccountConfigs {
        defaultAccountConfig {
            jsonFile = file('google-play-key.json')
        }
    }

    signingConfigs {
        release {
            storeFile file(keystoreProperties['storeFile'])
            storePassword keystoreProperties['storePassword']
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
        }
    }

28
29
30
31
32
    defaultConfig {
        applicationId "ch.amiv.android_app"
        minSdkVersion 23
        targetSdkVersion 27
        versionCode 1
33
        versionName "0.1"
34
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Roger Barton's avatar
Roger Barton committed
35
        vectorDrawables.useSupportLibrary = true
36
37
38
    }
    buildTypes {
        release {
Roger Barton's avatar
Roger Barton committed
39
            signingConfig signingConfigs.release
40
41
42
43
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
44
45
46
47

    lintOptions {
        abortOnError false
    }
48
49
50
51
52
53
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
Roger Barton's avatar
Roger Barton committed
54
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
55
    implementation 'com.android.support:support-v4:27.1.1'
56
57
    //implementation 'com.mcxiaoke.volley:library:1.0.19'
    implementation project(path: ':volley')
58
59
    implementation 'com.google.zxing:core:3.2.1'
    implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
60
    implementation 'com.google.android.gms:play-services-vision:15.0.2'
Roger Barton's avatar
Roger Barton committed
61
    implementation 'com.google.code.gson:gson:2.8.2'
62

63
64
65
66
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
Roger Barton's avatar
Roger Barton committed
67
68
69
70
71
72

play {
    track = 'production'
    uploadImages = true
    errorOnSizeLimit = true
}