]> git.ktnx.net Git - mobile-ledger.git/blob - app/build.gradle
e7f2368cac94e0b1cda26ffab603c30f9cc45f0d
[mobile-ledger.git] / app / build.gradle
1 /*
2  * Copyright © 2020 Damyan Ivanov.
3  * This file is part of MoLe.
4  * MoLe is free software: you can distribute it and/or modify it
5  * under the term of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your opinion), any later version.
8  *
9  * MoLe is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License terms for details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with MoLe. If not, see <https://www.gnu.org/licenses/>.
16  */
17
18 apply plugin: 'com.android.application'
19
20 android {
21     compileSdkVersion 29
22     defaultConfig {
23         applicationId "net.ktnx.mobileledger"
24         minSdkVersion 22
25         targetSdkVersion 29
26         vectorDrawables.useSupportLibrary true
27         versionCode 34
28         versionName '0.14.0'
29         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
30     }
31     buildTypes {
32         release {
33             minifyEnabled false
34             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
35         }
36         debug {
37             versionNameSuffix '-debug'
38             applicationIdSuffix '.debug'
39         }
40     }
41     sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
42     buildToolsVersion '29.0.3'
43     compileOptions {
44         sourceCompatibility JavaVersion.VERSION_1_8
45         targetCompatibility JavaVersion.VERSION_1_8
46     }
47     productFlavors {
48     }
49     buildFeatures.viewBinding = true
50 }
51
52 dependencies {
53     def nav_version = '2.3.0-beta01'
54     implementation fileTree(include: ['*.jar'], dir: 'libs')
55     implementation 'androidx.legacy:legacy-support-v4:1.0.0'
56     implementation 'com.google.android.material:material:1.3.0-alpha01'
57     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
58     implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
59     implementation 'androidx.recyclerview:recyclerview:1.1.0'
60     testImplementation 'junit:junit:4.13'
61     androidTestImplementation 'androidx.test:runner:1.3.0-rc01'
62     androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-rc01'
63     implementation 'org.jetbrains:annotations:15.0'
64     implementation 'com.fasterxml.jackson.module:jackson-modules-java8:2.11.0'
65     implementation "androidx.navigation:navigation-fragment:$nav_version"
66     implementation "androidx.navigation:navigation-ui:$nav_version"
67     implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
68 }
69
70 allprojects {
71     gradle.projectsEvaluated {
72         tasks.withType(JavaCompile) {
73             options.compilerArgs <<
74                     "-Xlint:deprecation" <<
75                     "-Xlint:unchecked"
76         }
77     }
78 }