build.gradle 2.43 KB
Newer Older
Ricki Hirner's avatar
Ricki Hirner committed
1
/*
2 3 4 5 6
 * Copyright (c) Ricki Hirner (bitfire web engineering).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
Ricki Hirner's avatar
Ricki Hirner committed
7 8
 */

Ricki Hirner's avatar
Ricki Hirner committed
9
apply plugin: 'com.android.application'
10
apply plugin: 'kotlin-android'
11
apply plugin: 'kotlin-android-extensions'
12
apply plugin: 'kotlin-kapt'
Ricki Hirner's avatar
Ricki Hirner committed
13 14

android {
Ricki Hirner's avatar
Ricki Hirner committed
15
    compileSdkVersion 28
16
    buildToolsVersion '28.0.3'
Ricki Hirner's avatar
Ricki Hirner committed
17 18 19

    defaultConfig {
        applicationId "at.bitfire.icsdroid"
20
        minSdkVersion 19
21
        targetSdkVersion 28
22

23 24
        versionCode 37
        versionName "1.8.3"
25

Ricki Hirner's avatar
Ricki Hirner committed
26 27
        setProperty "archivesBaseName", "icsx5-" + getVersionCode() + "-" + getVersionName()

28
        buildConfigField "String", "okhttpVersion", "\"${versions.okhttp}\""
Ricki Hirner's avatar
Ricki Hirner committed
29
    }
Ricki Hirner's avatar
Ricki Hirner committed
30 31 32 33 34 35

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

Ricki Hirner's avatar
Ricki Hirner committed
36 37
    buildTypes {
        release {
Ricki Hirner's avatar
Ricki Hirner committed
38
            minifyEnabled true
Ricki Hirner's avatar
Ricki Hirner committed
39 40 41
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
42

43 44
    dataBinding.enabled = true

45 46 47 48 49 50 51 52 53
    flavorDimensions "distribution"
    productFlavors {
        standard {
        }
        gplay {
            versionNameSuffix "-gplay"
        }
    }

Ricki Hirner's avatar
Ricki Hirner committed
54 55 56 57 58
    packagingOptions {
        exclude 'LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
    }
59
    lintOptions {
Ricki Hirner's avatar
Ricki Hirner committed
60
        disable 'ExtraTranslation', 'MissingTranslation'
Ricki Hirner's avatar
Ricki Hirner committed
61 62
        disable 'InvalidPackage'
        disable 'OnClick'
63
    }
Ricki Hirner's avatar
Ricki Hirner committed
64 65 66
}

dependencies {
67
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
68

69 70
    implementation project(':cert4android')
    implementation project(':ical4android')
71

72 73 74
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.lifecycle:lifecycle-livedata:2.0.0'
75
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.0.0'
76
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
77
    implementation 'androidx.work:work-runtime-ktx:2.0.1'
78
    implementation 'com.google.android.material:material:1.0.0'
79

80
    implementation 'com.jaredrummler:colorpicker:1.1.0'
Ricki Hirner's avatar
Ricki Hirner committed
81
    implementation 'com.mikepenz:aboutlibraries:6.2.3'
82
    implementation "com.squareup.okhttp3:okhttp:${versions.okhttp}"
83
    implementation 'commons-io:commons-io:2.6'
Ricki Hirner's avatar
Ricki Hirner committed
84
}