X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fbuild.gradle;h=d5c8a9c810637d493bc3fac493797d368e6d5899;hp=a4f21d8739b5ff0f36448c8415d9ec9afe2fc356;hb=86b5c06af4ba336f0013d01b2cc800e0b902aa0f;hpb=7dfa9e5f0204f8c16a39b4d0946d1b4d3b280df4 diff --git a/app/build.gradle b/app/build.gradle index a4f21d87..d5c8a9c8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,5 @@ /* - * Copyright © 2019 Damyan Ivanov. + * Copyright © 2021 Damyan Ivanov. * This file is part of MoLe. * MoLe is free software: you can distribute it and/or modify it * under the term of the GNU General Public License as published by @@ -18,14 +18,24 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 28 + compileSdkVersion 29 defaultConfig { applicationId "net.ktnx.mobileledger" minSdkVersion 22 - targetSdkVersion 28 - versionCode 31 - versionName '0.12.0' + targetSdkVersion 29 + vectorDrawables.useSupportLibrary true + versionCode 39 + versionName '0.17.1' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + javaCompileOptions { + annotationProcessorOptions { + arguments += [ + "room.schemaLocation" : "$projectDir/schemas".toString(), + "room.incremental" : "true", + "room.expandProjection": "true" + ] + } + } } buildTypes { release { @@ -38,31 +48,37 @@ android { } } sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } } - buildToolsVersion '28.0.3' + buildToolsVersion '29.0.3' compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } productFlavors { } + buildFeatures.viewBinding = true } dependencies { - def nav_version = '2.3.0-alpha03' + implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.0' + implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0' + def room_version = '2.2.6' + implementation "androidx.room:room-runtime:$room_version" + annotationProcessor "androidx.room:room-compiler:$room_version" + def nav_version = '2.3.3' implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' - implementation 'com.google.android.material:material:1.2.0-alpha05' - implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'com.google.android.material:material:1.3.0' + implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'androidx.recyclerview:recyclerview:1.1.0' - testImplementation 'junit:junit:4.13' - androidTestImplementation 'androidx.test:runner:1.3.0-alpha04' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-alpha04' + testImplementation 'junit:junit:4.13.1' + androidTestImplementation 'androidx.test:runner:1.4.0-alpha04' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0-alpha04' implementation 'org.jetbrains:annotations:15.0' - implementation 'com.fasterxml.jackson.module:jackson-modules-java8:2.10.2' + implementation 'com.fasterxml.jackson.module:jackson-modules-java8:2.11.3' implementation "androidx.navigation:navigation-fragment:$nav_version" implementation "androidx.navigation:navigation-ui:$nav_version" + implementation 'androidx.appcompat:appcompat:1.3.0-beta01' } allprojects { @@ -73,4 +89,4 @@ allprojects { "-Xlint:unchecked" } } -} \ No newline at end of file +}