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

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

    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
    defaultConfig {
        applicationId "ch.amiv.android_app"
        minSdkVersion 23
31
        targetSdkVersion 28
32
        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
    }
Roger Barton's avatar
Roger Barton committed
37

38
39
    buildTypes {
        release {
Roger Barton's avatar
Roger Barton committed
40
            signingConfig signingConfigs.release
41
42
43
44
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
45
46
47
48

    lintOptions {
        abortOnError false
    }
49
50
51
52
}

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

64
65
66
67
    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
68
69
70
71
72
73

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