X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;ds=sidebyside;f=app%2Fbuild.gradle;h=48a0b3073f16e78c45cd4202aded2cb5fc6892f0;hb=09e121b3bb906d486b09ae9f4c9680da950fcefe;hp=c4974a5bfdef4ae5789238a7a92cfa3c2e4397b0;hpb=9ff935d59d00da7c4b2147c04baf3890ae993eb8;p=mobile-ledger.git
diff --git a/app/build.gradle b/app/build.gradle
index c4974a5b..48a0b307 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,31 +1,41 @@
/*
- * Copyright © 2019 Damyan Ivanov.
- * This file is part of Mobile-Ledger.
- * Mobile-Ledger is free software: you can distribute it and/or modify it
+ * 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
* the Free Software Foundation, either version 3 of the License, or
* (at your opinion), any later version.
*
- * Mobile-Ledger is distributed in the hope that it will be useful,
+ * MoLe is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License terms for details.
*
* You should have received a copy of the GNU General Public License
- * along with Mobile-Ledger. If not, see .
+ * along with MoLe. If not, see .
*/
apply plugin: 'com.android.application'
android {
- compileSdkVersion 28
+ compileSdkVersion 29
defaultConfig {
applicationId "net.ktnx.mobileledger"
minSdkVersion 22
- targetSdkVersion 28
- versionCode 4
- versionName '0.4'
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ targetSdkVersion 29
+ vectorDrawables.useSupportLibrary true
+ versionCode 37
+ versionName '0.16.0'
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ javaCompileOptions {
+ annotationProcessorOptions {
+ arguments += [
+ "room.schemaLocation" : "$projectDir/schemas".toString(),
+ "room.incremental" : "true",
+ "room.expandProjection": "true"
+ ]
+ }
+ }
}
buildTypes {
release {
@@ -34,28 +44,49 @@ android {
}
debug {
versionNameSuffix '-debug'
+ applicationIdSuffix '.debug'
}
}
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 {
+ 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 'com.android.support:appcompat-v7:28.0.0'
- implementation 'com.android.support:support-v4:28.0.0'
- implementation 'com.android.support:design:28.0.0'
- implementation 'com.android.support.constraint:constraint-layout:1.1.3'
- implementation 'android.arch.lifecycle:extensions:1.1.1'
- implementation 'com.android.support:recyclerview-v7:28.0.0'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
+ implementation 'androidx.legacy:legacy-support-v4:1.0.0'
+ 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.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.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 {
+ gradle.projectsEvaluated {
+ tasks.withType(JavaCompile) {
+ options.compilerArgs <<
+ "-Xlint:deprecation" <<
+ "-Xlint:unchecked"
+ }
+ }
}