build.gradle 2.86 KB
Newer Older
korelstar's avatar
korelstar committed
1
2
3
apply plugin: 'com.android.application'

android {
4
    compileSdkVersion 29
TacoTheDank's avatar
TacoTheDank committed
5
    buildToolsVersion '30.0.3'
korelstar's avatar
korelstar committed
6

7
8
9
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
10
        coreLibraryDesugaringEnabled true
11
12
    }

korelstar's avatar
korelstar committed
13
14
    defaultConfig {
        applicationId "it.niedermann.owncloud.notes"
15
        minSdkVersion 21
16
        targetSdkVersion 29
Stefan Niedermann's avatar
Stefan Niedermann committed
17
18
        versionCode 3002003
        versionName "3.2.3"
Stefan Niedermann's avatar
Stefan Niedermann committed
19
        multiDexEnabled true
20
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
korelstar's avatar
korelstar committed
21
    }
stefan-niedermann's avatar
stefan-niedermann committed
22

23
24
25
26
    buildFeatures {
        viewBinding true
    }

korelstar's avatar
korelstar committed
27
    buildTypes {
28
29
30
31
        debug {
            testCoverageEnabled true
        }

korelstar's avatar
korelstar committed
32
33
34
35
36
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
stefan-niedermann's avatar
stefan-niedermann committed
37

38
39
40
41
    lintOptions {
        disable 'MissingTranslation'
        abortOnError false
    }
42

stefan-niedermann's avatar
stefan-niedermann committed
43
44
45
46
47
48
49
50
51
52
53
54
55
    flavorDimensions "version"

    productFlavors {
        fdroid {
            dimension "version"
        }
        dev {
            dimension "version"
            applicationIdSuffix ".dev"
        }
        play {
            dimension "version"
        }
Stefan Niedermann's avatar
Stefan Niedermann committed
56
57
58
59
        pfungstadt {
            dimension "version"
            applicationIdSuffix ".pfungstadt"
        }
stefan-niedermann's avatar
stefan-niedermann committed
60
    }
korelstar's avatar
korelstar committed
61
62
63
}

dependencies {
Stefan Niedermann's avatar
Stefan Niedermann committed
64
    // Nextcloud SSO
Stefan Niedermann's avatar
Stefan Niedermann committed
65
66
67
    implementation "com.github.nextcloud:Android-SingleSignOn:0.5.6"
    implementation 'com.github.stefan-niedermann.nextcloud-commons:sso-glide:1.2.5'
    implementation 'com.github.stefan-niedermann.nextcloud-commons:exception:1.2.5'
Stefan Niedermann's avatar
Stefan Niedermann committed
68
    implementation 'com.github.stefan-niedermann:android-commons:0.2.0'
69

Stefan Niedermann's avatar
Stefan Niedermann committed
70
    // Glide
Stefan Niedermann's avatar
Stefan Niedermann committed
71
72
    implementation 'com.github.bumptech.glide:glide:4.11.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
73
74

    // Markdown
75
    implementation project(path: ':markdown')
stefan-niedermann's avatar
stefan-niedermann committed
76

Stefan Niedermann's avatar
Stefan Niedermann committed
77
    // Android X
78
    implementation "androidx.appcompat:appcompat:1.2.0"
79
    implementation "androidx.fragment:fragment:1.3.1"
80
    implementation "androidx.preference:preference:1.1.1"
81
    implementation "androidx.recyclerview:recyclerview:1.1.0"
82
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
83
    implementation 'androidx.work:work-runtime:2.5.0'
84
    implementation "com.google.android.material:material:1.3.0"
85

Stefan Niedermann's avatar
Stefan Niedermann committed
86
    implementation 'androidx.multidex:multidex:2.0.1'
87
    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
Stefan Niedermann's avatar
Stefan Niedermann committed
88

Stefan Niedermann's avatar
Stefan Niedermann committed
89
    // Testing
90
    testImplementation 'junit:junit:4.13.2'
91
92
    androidTestImplementation 'com.android.support:support-annotations:28.0.0'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
93
    androidTestImplementation 'androidx.test:runner:1.3.0'
94
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
95
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
96

97
    implementation fileTree(dir: 'libs', include: ['*.jar'])
korelstar's avatar
korelstar committed
98
}