Mercury-IM/app/build.gradle

107 lines
2.9 KiB
Groovy
Raw Normal View History

2019-03-27 21:24:47 +01:00
apply plugin: 'com.android.application'
2019-03-28 01:14:55 +01:00
apply plugin: 'checkstyle'
2019-03-27 21:24:47 +01:00
android {
2019-05-04 00:27:02 +02:00
compileSdkVersion 28
2019-03-27 21:24:47 +01:00
defaultConfig {
applicationId "org.olomono.messenger"
minSdkVersion 19
2019-05-04 00:27:02 +02:00
targetSdkVersion 28
2019-03-27 21:24:47 +01:00
versionCode 1
versionName "1.0"
2019-05-18 10:06:16 +02:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
2019-05-04 00:27:02 +02:00
multiDexEnabled true
2019-03-27 21:24:47 +01:00
}
2019-05-04 00:27:02 +02:00
2019-03-27 21:24:47 +01:00
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
disable 'GoogleAppIndexingWarning', 'AllowBackup'
// Warn about invalid packages instead of failing
warning 'InvalidPackage'
}
2019-04-05 00:38:01 +02:00
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
2019-05-04 00:27:02 +02:00
dataBinding {
enabled true
}
2019-03-27 21:24:47 +01:00
}
2019-03-28 01:37:09 +01:00
checkstyle {
toolVersion = '8.17'
2019-03-28 01:14:55 +01:00
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
2019-03-28 01:37:09 +01:00
}
2019-03-28 01:14:55 +01:00
2019-03-28 01:37:09 +01:00
task checkstyleMain(type: Checkstyle) {
2019-03-28 01:14:55 +01:00
source 'src/main/java'
include '**/*.java'
exclude '**/gen/**'
2019-03-28 01:37:09 +01:00
classpath = files()
}
task checkstyleTest(type: Checkstyle) {
source 'src/test/java'
include '**/*.java'
exclude '**/gen/**'
classpath = files()
}
2019-03-28 01:14:55 +01:00
2019-03-28 01:37:09 +01:00
task checkstyleAndroidTest(type: Checkstyle) {
source 'src/androidTest/java'
include '**/*.java'
exclude '**/gen/**'
2019-03-28 01:14:55 +01:00
classpath = files()
}
2019-03-28 01:37:09 +01:00
check.configure {
dependsOn(checkstyleMain)
// dependsOn(checkstyleTest)
// dependsOn(checkstyleAndroidTest)
2019-03-28 01:14:55 +01:00
}
// Dependency versions are located in version.gradle
2019-03-27 21:24:47 +01:00
dependencies {
2019-05-19 02:00:33 +02:00
2019-05-27 21:34:11 +02:00
implementation project(":xmpp_android")
2019-05-19 02:00:33 +02:00
implementation(project(':persistence-room')) {
transitive = true
}
2019-05-18 10:06:16 +02:00
/*
architecture components for database and lifecycle management
*/
2019-05-18 10:06:16 +02:00
// ViewModel and LiveData
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleVersion"
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycleVersion"
2019-05-04 00:27:02 +02:00
// Dagger 2 for dependency injection
implementation "com.google.dagger:dagger:$daggerVersion"
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
// support libraries
2019-05-18 10:06:16 +02:00
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.0.1'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
2019-03-27 21:24:47 +01:00
testImplementation 'junit:junit:4.12'
2019-05-18 10:06:16 +02:00
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
2019-03-27 21:24:47 +01:00
// circular image viewer for avatars
implementation 'de.hdodenhof:circleimageview:2.2.0'
2019-03-27 21:24:47 +01:00
}