/*
- * 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
apply plugin: 'com.android.application'
android {
- compileSdkVersion 28
+ compileSdkVersion 30
defaultConfig {
applicationId "net.ktnx.mobileledger"
minSdkVersion 22
- targetSdkVersion 28
- versionCode 31
- versionName '0.12.0'
+ targetSdkVersion 30
+ vectorDrawables.useSupportLibrary true
+ versionCode 47
+ versionName '0.20.3'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ javaCompileOptions {
+ annotationProcessorOptions {
+ arguments += [
+ "room.schemaLocation" : "$projectDir/schemas".toString(),
+ "room.incremental" : "true",
+ "room.expandProjection": "true"
+ ]
+ }
+ }
}
buildTypes {
release {
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 '28.0.3'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
productFlavors {
}
+ buildFeatures.viewBinding = true
+ buildToolsVersion '30.0.3'
}
dependencies {
- def nav_version = '2.3.0-alpha03'
+ implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
+ implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
+ def room_version = '2.3.0'
+ implementation "androidx.room:room-runtime:$room_version"
+ annotationProcessor "androidx.room:room-compiler:$room_version"
+ def nav_version = '2.3.5'
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'
- implementation 'org.jetbrains:annotations:15.0'
- implementation 'com.fasterxml.jackson.module:jackson-modules-java8:2.10.2'
+ implementation 'androidx.recyclerview:recyclerview:1.2.0'
+ testImplementation 'junit:junit:4.13.2'
+ androidTestImplementation 'androidx.test:runner:1.4.0-alpha06'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0-alpha06'
+ implementation 'org.jetbrains:annotations:20.1.0'
+ implementation 'com.fasterxml.jackson.module:jackson-modules-java8:2.12.3'
implementation "androidx.navigation:navigation-fragment:$nav_version"
implementation "androidx.navigation:navigation-ui:$nav_version"
-}
\ No newline at end of file
+ implementation 'androidx.appcompat:appcompat:1.3.0-rc01'
+}
+
+allprojects {
+ gradle.projectsEvaluated {
+ tasks.withType(JavaCompile) {
+ options.compilerArgs <<
+ "-Xlint:deprecation" <<
+ "-Xlint:unchecked"
+ }
+ }
+}