Mercury-IM/app/build.gradle

121 lines
3.6 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-09-24 22:15:26 +02:00
compileSdkVersion 29
2019-03-27 21:24:47 +01:00
defaultConfig {
2019-07-02 00:46:40 +02:00
applicationId "org.mercury_im.messenger"
2019-03-27 21:24:47 +01:00
minSdkVersion 19
2019-09-24 22:15:26 +02:00
targetSdkVersion 29
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'
2019-12-09 15:49:59 +01:00
// Warn about invalidUsername packages instead of failing
2019-03-27 21:24:47 +01:00
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-07-31 22:59:46 +02:00
// Depend on the core project for XMPP related stuff
2019-12-06 15:52:50 +01:00
implementation project(":entity")
2019-11-18 23:51:27 +01:00
implementation project(":domain")
implementation project(":data")
2019-07-31 22:59:46 +02:00
implementation "io.requery:requery-android:$requeryVersion"
2019-12-13 12:34:24 +01:00
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.61'
2019-05-19 02:00:33 +02:00
2019-08-01 00:17:27 +02:00
// Dagger 2 for dependency injection
implementation "com.google.dagger:dagger:$daggerVersion"
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
2020-01-06 01:27:11 +01:00
compileOnly 'org.projectlombok:lombok:1.18.10'
annotationProcessor 'org.projectlombok:lombok:1.18.10'
2019-05-18 10:06:16 +02:00
// ViewModel and LiveData
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleVersion"
2019-12-13 12:34:52 +01:00
annotationProcessor "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
2019-05-04 00:27:02 +02:00
// Android extension for rxJava
api "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
2019-06-03 01:16:49 +02:00
// ButterKnife for View Binding
implementation "com.jakewharton:butterknife:$butterKnifeVersion"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterKnifeVersion"
// support libraries
2019-08-03 19:05:50 +02:00
implementation "androidx.appcompat:appcompat:$appCompatVersion"
2020-01-06 01:27:11 +01:00
implementation 'com.google.android.material:material:1.2.0-alpha03'
2019-05-18 10:06:16 +02:00
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
2019-09-21 14:58:50 +02:00
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
2019-05-18 10:06:16 +02:00
implementation 'androidx.cardview:cardview:1.0.0'
2020-01-06 01:27:11 +01:00
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
2019-12-13 12:34:24 +01:00
implementation 'androidx.recyclerview:recyclerview:1.1.0'
// circular image viewer for avatars
2019-09-21 14:58:50 +02:00
implementation 'de.hdodenhof:circleimageview:3.0.1'
2019-07-03 00:56:55 +02:00
2019-07-31 22:59:46 +02:00
// Android specific classes of Smacks API
2019-07-03 00:56:55 +02:00
implementation "org.igniterealtime.smack:smack-android-extensions:$smackAndroidExtensionsVersion"
2019-07-31 22:59:46 +02:00
// Testing - as if...
2019-08-03 19:05:50 +02:00
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test:runner:$andxTestRunnerVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$andxTestEspressoVersion"
2019-03-27 21:24:47 +01:00
}