X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fbuild.gradle;h=dfd7f8f0b5c5e03ae56b5919cb22856f3251efbe;hp=c73b915723a97986d4a4eae3de5da659a06bc840;hb=HEAD;hpb=31bd68f001d3accd01d8e7c91c423c00778a10eb diff --git a/app/build.gradle b/app/build.gradle index c73b9157..71673f6e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,5 @@ /* - * Copyright © 2020 Damyan Ivanov. + * Copyright © 2023 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,15 +18,24 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 29 + compileSdkVersion 31 defaultConfig { applicationId "net.ktnx.mobileledger" minSdkVersion 22 - targetSdkVersion 29 + targetSdkVersion 31 vectorDrawables.useSupportLibrary true - versionCode 37 - versionName '0.16.0' + versionCode 56 + versionName '0.21.7' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + javaCompileOptions { + annotationProcessorOptions { + arguments += [ + "room.schemaLocation" : "$projectDir/schemas".toString(), + "room.incremental" : "true", + "room.expandProjection": "true" + ] + } + } } buildTypes { release { @@ -37,9 +46,14 @@ android { versionNameSuffix '-debug' applicationIdSuffix '.debug' } + pre { + applicationIdSuffix '.pre' + versionNameSuffix '-pre' + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } } sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } } - buildToolsVersion '29.0.3' compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 @@ -47,24 +61,31 @@ android { productFlavors { } buildFeatures.viewBinding = true + buildToolsVersion '30.0.3' + namespace 'net.ktnx.mobileledger' } dependencies { - def nav_version = '2.3.1' + implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.1' + implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1' + def room_version = '2.4.2' + implementation "androidx.room:room-runtime:2.4.2" + annotationProcessor "androidx.room:room-compiler:$room_version" + def nav_version = '2.4.2' implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.legacy:legacy-support-v4:1.0.0' - implementation 'com.google.android.material:material:1.3.0-alpha04' - implementation 'androidx.constraintlayout:constraintlayout:2.0.4' + implementation 'com.google.android.material:material:1.5.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.3' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' - implementation 'androidx.recyclerview:recyclerview:1.1.0' - testImplementation 'junit:junit:4.13.1' - androidTestImplementation 'androidx.test:runner:1.3.1-alpha02' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0-alpha02' - implementation 'org.jetbrains:annotations:15.0' - implementation 'com.fasterxml.jackson.module:jackson-modules-java8:2.11.3' + implementation 'androidx.recyclerview:recyclerview:1.2.1' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test:runner:1.5.0-alpha02' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0-alpha05' + implementation 'org.jetbrains:annotations:23.0.0' + implementation 'com.fasterxml.jackson.module:jackson-modules-java8:2.13.2' implementation "androidx.navigation:navigation-fragment:$nav_version" implementation "androidx.navigation:navigation-ui:$nav_version" - implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' + implementation 'androidx.appcompat:appcompat:1.6.0-alpha01' } allprojects {