Mercury-IM/app/build.gradle

111 lines
3.1 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: 'checkstyle'
android {
compileSdkVersion 28
defaultConfig {
applicationId "org.mercury_im.messenger"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
}
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'
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
dataBinding {
enabled true
}
}
checkstyle {
toolVersion = '8.17'
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
task checkstyleMain(type: Checkstyle) {
source 'src/main/java'
include '**/*.java'
exclude '**/gen/**'
classpath = files()
}
task checkstyleTest(type: Checkstyle) {
source 'src/test/java'
include '**/*.java'
exclude '**/gen/**'
classpath = files()
}
task checkstyleAndroidTest(type: Checkstyle) {
source 'src/androidTest/java'
include '**/*.java'
exclude '**/gen/**'
classpath = files()
}
check.configure {
dependsOn(checkstyleMain)
// dependsOn(checkstyleTest)
// dependsOn(checkstyleAndroidTest)
}
// Dependency versions are located in version.gradle
dependencies {
// Depend on the core project for XMPP related stuff
implementation(project(':xmpp_core'))
// Plug a Room based implementation into the persistence api
implementation(project(':persistence-room')) {
transitive = true
}
// ViewModel and LiveData
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleVersion"
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycleVersion"
// ButterKnife for View Binding
implementation "com.jakewharton:butterknife:$butterKnifeVersion"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterKnifeVersion"
// support libraries
implementation 'androidx.appcompat:appcompat:1.1.0-beta01'
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:2.0.0-beta2'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
// circular image viewer for avatars
implementation 'de.hdodenhof:circleimageview:3.0.0'
// Android specific classes of Smacks API
implementation "org.igniterealtime.smack:smack-android-extensions:$smackAndroidExtensionsVersion"
// Testing - as if...
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}