2019-04-24 07:32:19 +01:00
|
|
|
/*
|
|
|
|
* Nextcloud Talk application
|
|
|
|
*
|
|
|
|
* @author Mario Danic
|
2021-04-29 14:09:17 +01:00
|
|
|
* @author Andy Scherzinger
|
2021-04-30 10:56:37 +01:00
|
|
|
* @author Marcel Hibbe
|
2021-04-29 14:09:17 +01:00
|
|
|
* Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
|
2019-04-24 07:32:19 +01:00
|
|
|
* Copyright (C) 2017-2019 Mario Danic <mario@lovelyhq.com>
|
2021-04-30 10:56:37 +01:00
|
|
|
* Copyright (C) 2021 Marcel Hibbe <dev@mhibbe.de>
|
2019-04-24 07:32:19 +01:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2021-04-28 23:46:35 +01:00
|
|
|
import com.github.spotbugs.snom.SpotBugsTask
|
2019-04-24 07:32:19 +01:00
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2017-10-27 22:10:06 +01:00
|
|
|
apply plugin: 'kotlin-android'
|
2019-04-24 07:32:19 +01:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2019-09-30 13:15:01 +01:00
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2021-04-28 23:46:35 +01:00
|
|
|
apply plugin: 'com.github.spotbugs'
|
2021-04-22 13:31:33 +01:00
|
|
|
apply plugin: 'io.gitlab.arturbosch.detekt'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
ktlint
|
|
|
|
}
|
2017-10-23 23:00:43 +01:00
|
|
|
|
2021-04-29 00:11:27 +01:00
|
|
|
for (TaskExecutionRequest tr : getGradle().getStartParameter().getTaskRequests()) {
|
|
|
|
for (String arg : tr.args) {
|
|
|
|
// any gplay, but only exact "build", as e.g. buildGeneric shall not apply gplay.grade
|
|
|
|
if (arg.contains("Gplay") || arg.contains("lint") || arg == "build") {
|
|
|
|
apply from: 'gplay.gradle'
|
|
|
|
System.console().println("Applying gplay.gradle")
|
|
|
|
}
|
|
|
|
}
|
2018-02-19 01:14:21 +00:00
|
|
|
}
|
2017-10-23 11:40:38 +01:00
|
|
|
|
|
|
|
android {
|
2020-11-16 15:20:56 +00:00
|
|
|
compileSdkVersion 29
|
2021-04-29 00:11:27 +01:00
|
|
|
buildToolsVersion '30.0.3'
|
2017-10-23 11:40:38 +01:00
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 21
|
2020-11-16 15:20:56 +00:00
|
|
|
targetSdkVersion 29
|
2018-10-02 21:34:00 +01:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2017-10-23 11:40:38 +01:00
|
|
|
|
2021-06-22 17:37:44 +01:00
|
|
|
// mayor.minor.hotfix.increment (for increment: 01-50=Alpha / 51-89=RC / 90-99=stable)
|
2021-02-19 09:41:01 +00:00
|
|
|
// xx .xxx .xx .xx
|
2021-08-23 04:08:17 +01:00
|
|
|
versionCode 120030003
|
|
|
|
versionName "12.3.0 Alpha 03"
|
2018-02-19 01:14:21 +00:00
|
|
|
|
|
|
|
flavorDimensions "default"
|
2018-07-10 13:34:35 +01:00
|
|
|
renderscriptTargetApi 19
|
|
|
|
renderscriptSupportModeEnabled true
|
2017-12-12 22:31:41 +00:00
|
|
|
|
2018-02-19 01:14:21 +00:00
|
|
|
productFlavors {
|
|
|
|
// used for f-droid
|
2021-04-22 10:44:09 +01:00
|
|
|
generic {
|
|
|
|
applicationId 'com.nextcloud.talk2'
|
|
|
|
dimension "default"
|
|
|
|
}
|
|
|
|
gplay {
|
|
|
|
applicationId 'com.nextcloud.talk2'
|
|
|
|
dimension "default"
|
|
|
|
}
|
|
|
|
qa {
|
|
|
|
applicationId "com.nextcloud.talk2.qa"
|
|
|
|
dimension "default"
|
|
|
|
versionCode 1
|
|
|
|
versionName "1"
|
|
|
|
}
|
2018-02-19 01:14:21 +00:00
|
|
|
}
|
2019-01-13 20:57:26 +00:00
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
// Enabling multidex support.
|
|
|
|
multiDexEnabled true
|
|
|
|
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable 'InvalidPackage'
|
2017-12-19 16:49:29 +00:00
|
|
|
disable 'MissingTranslation'
|
2021-03-22 15:57:30 +00:00
|
|
|
disable 'VectorPath'
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
2019-07-29 15:43:20 +01:00
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments = [
|
|
|
|
parcelerStacktrace: "true"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
|
|
|
|
2018-10-03 13:11:10 +01:00
|
|
|
dexOptions {
|
|
|
|
javaMaxHeapSize "4g"
|
|
|
|
}
|
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
packagingOptions {
|
2021-04-22 10:44:09 +01:00
|
|
|
exclude 'META-INF/LICENSE.txt'
|
2017-10-23 11:40:38 +01:00
|
|
|
exclude 'META-INF/LICENSE'
|
2021-06-10 16:53:27 +01:00
|
|
|
exclude 'META-INF/NOTICE.txt'
|
2017-10-23 11:40:38 +01:00
|
|
|
exclude 'META-INF/NOTICE'
|
2021-06-01 13:29:35 +01:00
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
2017-10-23 11:40:38 +01:00
|
|
|
exclude 'META-INF/rxjava.properties'
|
|
|
|
}
|
|
|
|
|
2021-04-28 23:46:35 +01:00
|
|
|
android.applicationVariants.all { variant ->
|
|
|
|
String variantName = variant.name
|
|
|
|
String capVariantName = variantName.substring(0, 1).toUpperCase() + variantName.substring(1)
|
|
|
|
tasks.register("spotbugs${capVariantName}Report", SpotBugsTask) {
|
|
|
|
ignoreFailures = true // should continue checking
|
|
|
|
effort = "max"
|
|
|
|
reportLevel = "medium"
|
|
|
|
classes = fileTree("$project.buildDir/intermediates/javac/${variantName}/classes/")
|
|
|
|
excludeFilter = file("${project.rootDir}/spotbugs-filter.xml")
|
|
|
|
|
|
|
|
reports {
|
|
|
|
xml.enabled = false
|
|
|
|
html {
|
|
|
|
enabled = true
|
|
|
|
destination = file("$project.buildDir/reports/spotbugs/spotbugs.html")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
check.dependsOn 'spotbugsGplayDebugReport', 'lint', 'ktlint', 'detekt'
|
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
2018-03-07 09:14:20 +00:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
htmlReport true
|
|
|
|
htmlOutput file("$project.buildDir/reports/lint/lint.html")
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
}
|
2021-05-11 00:02:45 +01:00
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
|
|
|
}
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
2021-04-27 14:31:45 +01:00
|
|
|
butterknifeVersion = "10.2.3"
|
2021-08-12 21:02:03 +01:00
|
|
|
coilKtVersion = "1.3.2"
|
2021-08-12 20:55:16 +01:00
|
|
|
daggerVersion = "2.38.1"
|
2021-05-03 21:41:56 +01:00
|
|
|
okhttpVersion = "4.9.1"
|
2021-04-21 22:16:34 +01:00
|
|
|
materialDialogsVersion = "3.3.0"
|
2021-04-19 23:49:42 +01:00
|
|
|
parcelerVersion = "1.1.13"
|
2021-04-14 08:45:46 +01:00
|
|
|
powermockVersion = "2.0.9"
|
2021-04-29 23:13:26 +01:00
|
|
|
retrofit2Version = "2.9.0"
|
2021-04-27 21:36:41 +01:00
|
|
|
workVersion = "2.5.0"
|
2021-04-05 21:18:10 +01:00
|
|
|
markwonVersion = "4.6.2"
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
|
|
|
|
2017-11-06 19:01:53 +00:00
|
|
|
configurations.all {
|
2018-02-08 13:19:43 +00:00
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-core'
|
2019-02-17 12:28:30 +00:00
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-analytics'
|
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
|
2017-11-06 19:01:53 +00:00
|
|
|
}
|
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
dependencies {
|
2019-04-24 07:32:19 +01:00
|
|
|
implementation fileTree(include: ['*'], dir: 'libs')
|
2021-07-22 02:06:21 +01:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
2021-07-05 02:13:18 +01:00
|
|
|
implementation 'com.google.android.material:material:1.4.0'
|
2021-08-02 02:14:07 +01:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
|
2021-04-29 23:13:26 +01:00
|
|
|
implementation 'com.github.vanniktech:Emoji:0.6.0' // 0.7.0 has display issue - don't update to 0.7.0
|
2021-04-13 22:58:20 +01:00
|
|
|
implementation group: 'androidx.emoji', name: 'emoji-bundled', version: '1.1.0'
|
2018-12-12 15:54:10 +00:00
|
|
|
implementation 'org.michaelevans.colorart:library:0.0.3'
|
2021-04-05 21:18:10 +01:00
|
|
|
implementation "androidx.work:work-runtime:${workVersion}"
|
|
|
|
implementation "androidx.work:work-rxjava2:${workVersion}"
|
2021-05-02 22:08:21 +01:00
|
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
2021-08-05 02:07:42 +01:00
|
|
|
implementation 'androidx.exifinterface:exifinterface:1.3.3'
|
2021-04-05 21:18:10 +01:00
|
|
|
androidTestImplementation "androidx.work:work-testing:${workVersion}"
|
2021-05-05 15:11:15 +01:00
|
|
|
implementation 'com.google.android:flexbox:2.0.1'
|
2021-05-05 16:06:29 +01:00
|
|
|
implementation ('com.gitlab.bitfireAT:dav4jvm:2.1.2', {
|
2019-04-24 07:32:19 +01:00
|
|
|
exclude group: 'org.ogce', module: 'xpp3' // Android comes with its own XmlPullParser
|
|
|
|
})
|
2021-08-12 21:05:46 +01:00
|
|
|
ktlint "com.pinterest:ktlint:0.42.1"
|
2021-04-29 23:12:46 +01:00
|
|
|
implementation 'org.conscrypt:conscrypt-android:2.5.2'
|
2019-05-31 09:21:14 +01:00
|
|
|
|
2021-02-10 15:48:31 +00:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
2019-01-06 22:29:01 +00:00
|
|
|
|
2020-01-13 08:49:51 +00:00
|
|
|
implementation 'androidx.biometric:biometric:1.0.1'
|
|
|
|
implementation "androidx.lifecycle:lifecycle-extensions:2.1.0"
|
2017-11-29 21:40:29 +00:00
|
|
|
|
2019-04-09 20:18:02 +01:00
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
2017-10-23 11:40:38 +01:00
|
|
|
|
2019-03-06 12:55:26 +00:00
|
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
2021-04-27 20:42:12 +01:00
|
|
|
implementation "io.reactivex.rxjava2:rxjava:2.2.21"
|
2017-10-23 11:40:38 +01:00
|
|
|
|
2021-07-21 09:37:25 +01:00
|
|
|
implementation 'com.bluelinelabs:conductor:3.1.1'
|
2017-10-23 11:40:38 +01:00
|
|
|
|
2021-04-27 14:31:45 +01:00
|
|
|
implementation "com.squareup.okhttp3:okhttp:${okhttpVersion}"
|
|
|
|
implementation "com.squareup.okhttp3:okhttp-urlconnection:${okhttpVersion}"
|
|
|
|
implementation "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
|
2017-10-23 11:40:38 +01:00
|
|
|
|
|
|
|
implementation 'com.bluelinelabs:logansquare:1.3.7'
|
2021-07-07 02:06:01 +01:00
|
|
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.4'
|
2019-04-24 07:32:19 +01:00
|
|
|
kapt 'com.bluelinelabs:logansquare-compiler:1.3.7'
|
2017-10-23 11:40:38 +01:00
|
|
|
|
2021-04-27 14:31:45 +01:00
|
|
|
implementation "com.squareup.retrofit2:retrofit:${retrofit2Version}"
|
|
|
|
implementation "com.squareup.retrofit2:adapter-rxjava2:${retrofit2Version}"
|
2017-10-23 11:40:38 +01:00
|
|
|
implementation 'com.github.aurae.retrofit2:converter-logansquare:1.4.1'
|
|
|
|
|
2021-04-29 23:13:26 +01:00
|
|
|
implementation "com.google.dagger:dagger:${daggerVersion}"
|
|
|
|
kapt "com.google.dagger:dagger-compiler:${daggerVersion}"
|
2017-10-23 11:40:38 +01:00
|
|
|
implementation 'com.github.lukaspili.autodagger2:autodagger2:1.1'
|
2019-04-24 07:32:19 +01:00
|
|
|
kapt 'com.github.lukaspili.autodagger2:autodagger2-compiler:1.1'
|
2021-04-23 09:09:10 +01:00
|
|
|
compileOnly 'javax.annotation:javax.annotation-api:1.3.2'
|
2019-04-24 07:32:19 +01:00
|
|
|
// Android only
|
2021-04-28 11:13:11 +01:00
|
|
|
implementation 'org.greenrobot:eventbus:3.2.0'
|
2021-04-29 20:40:27 +01:00
|
|
|
implementation 'io.requery:requery:1.6.1'
|
2021-02-24 17:15:08 +00:00
|
|
|
implementation 'io.requery:requery-android:1.6.1'
|
2019-03-09 21:20:58 +00:00
|
|
|
implementation 'net.zetetic:android-database-sqlcipher:3.5.9'
|
2021-02-10 16:39:20 +00:00
|
|
|
kapt 'io.requery:requery-processor:1.6.1'
|
2021-04-19 23:49:42 +01:00
|
|
|
implementation "org.parceler:parceler-api:$parcelerVersion"
|
|
|
|
kapt "org.parceler:parceler:$parcelerVersion"
|
2017-11-06 19:01:53 +00:00
|
|
|
implementation 'net.orange-box.storebox:storebox-lib:1.4.0'
|
2021-04-27 14:31:45 +01:00
|
|
|
implementation "com.jakewharton:butterknife:${butterknifeVersion}"
|
|
|
|
kapt "com.jakewharton:butterknife-compiler:${butterknifeVersion}"
|
2018-10-01 12:10:46 +01:00
|
|
|
implementation 'eu.davidea:flexible-adapter:5.1.0'
|
|
|
|
implementation 'eu.davidea:flexible-adapter-ui:1.0.0'
|
2021-02-09 11:13:06 +00:00
|
|
|
implementation 'org.webrtc:google-webrtc:1.0.32006'
|
2021-04-22 20:54:48 +01:00
|
|
|
implementation 'com.yarolegovich:lovely-dialog:1.1.1'
|
|
|
|
implementation 'com.yarolegovich:mp:1.1.6'
|
2019-03-06 12:55:26 +00:00
|
|
|
implementation 'me.zhanghai.android.effortlesspermissions:library:1.1.0'
|
2021-04-27 22:53:02 +01:00
|
|
|
implementation 'org.apache.commons:commons-lang3:3.12.0'
|
2018-10-01 12:10:46 +01:00
|
|
|
implementation 'com.github.wooplr:Spotlight:1.3'
|
2021-04-23 15:06:44 +01:00
|
|
|
implementation 'com.google.code.findbugs:jsr305:3.0.2'
|
2021-05-05 10:03:50 +01:00
|
|
|
implementation('com.github.nextcloud:ChatKit:c6a6176729', {
|
2019-04-24 07:32:19 +01:00
|
|
|
exclude group: 'com.facebook.fresco'
|
|
|
|
})
|
2018-03-11 21:04:41 +00:00
|
|
|
|
2021-05-05 10:03:50 +01:00
|
|
|
implementation 'com.github.nextcloud.fresco:fresco:v111'
|
|
|
|
implementation 'com.github.nextcloud.fresco:animated-webp:v111'
|
|
|
|
implementation 'com.github.nextcloud.fresco:webpsupport:v111'
|
|
|
|
implementation 'com.github.nextcloud.fresco:animated-gif:v111'
|
|
|
|
implementation 'com.github.nextcloud.fresco:imagepipeline-okhttp3:v111'
|
2021-04-23 09:49:02 +01:00
|
|
|
implementation 'joda-time:joda-time:2.10.10'
|
2021-04-21 21:57:01 +01:00
|
|
|
implementation "io.coil-kt:coil:${coilKtVersion}"
|
2021-04-19 04:11:00 +01:00
|
|
|
implementation "io.coil-kt:coil-gif:${coilKtVersion}"
|
|
|
|
implementation "io.coil-kt:coil-svg:${coilKtVersion}"
|
2019-01-29 02:36:55 +00:00
|
|
|
implementation 'com.github.natario1:Autocomplete:v1.1.0'
|
2018-04-23 14:57:48 +01:00
|
|
|
|
2019-08-09 16:58:54 +01:00
|
|
|
implementation 'com.github.cotechde.hwsecurity:hwsecurity-fido:2.4.5'
|
2019-08-03 12:39:49 +01:00
|
|
|
|
2019-06-06 18:05:22 +01:00
|
|
|
implementation 'com.novoda:merlin:1.2.1'
|
2019-05-29 14:16:44 +01:00
|
|
|
|
2018-10-01 12:10:46 +01:00
|
|
|
implementation 'com.github.Kennyc1012:BottomSheet:2.4.1'
|
2021-06-30 10:15:10 +01:00
|
|
|
implementation 'com.github.nextcloud:PopupBubble:1.0.6'
|
2018-05-28 20:50:38 +01:00
|
|
|
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
|
2021-06-01 13:29:35 +01:00
|
|
|
|
2021-04-21 22:16:34 +01:00
|
|
|
implementation "com.afollestad.material-dialogs:core:${materialDialogsVersion}"
|
|
|
|
implementation "com.afollestad.material-dialogs:datetime:${materialDialogsVersion}"
|
|
|
|
implementation "com.afollestad.material-dialogs:bottomsheets:${materialDialogsVersion}"
|
|
|
|
implementation "com.afollestad.material-dialogs:lifecycle:${materialDialogsVersion}"
|
2019-08-30 11:12:40 +01:00
|
|
|
|
2021-08-23 02:13:51 +01:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.8'
|
2021-08-12 21:05:38 +01:00
|
|
|
implementation 'com.google.android.exoplayer:exoplayer:2.15.0'
|
2021-04-05 21:18:10 +01:00
|
|
|
|
2021-04-29 23:13:07 +01:00
|
|
|
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
2021-04-05 21:18:10 +01:00
|
|
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.23'
|
|
|
|
|
|
|
|
implementation "io.noties.markwon:core:$markwonVersion"
|
2020-11-12 11:43:17 +00:00
|
|
|
|
2021-03-22 15:57:30 +00:00
|
|
|
//implementation 'com.github.dhaval2404:imagepicker:1.8'
|
|
|
|
implementation 'com.github.tobiaskaminsky:ImagePicker:extraFile-SNAPSHOT'
|
|
|
|
implementation 'com.elyeproj.libraries:loaderviewlibrary:2.0.0'
|
|
|
|
|
2021-08-17 15:35:14 +01:00
|
|
|
implementation 'org.osmdroid:osmdroid-android:6.1.11'
|
2021-06-10 23:24:21 +01:00
|
|
|
implementation ('fr.dudie:nominatim-api:3.4', {
|
|
|
|
//noinspection DuplicatePlatformClasses
|
|
|
|
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
|
|
|
|
})
|
2021-05-20 14:51:19 +01:00
|
|
|
|
2021-07-01 02:06:58 +01:00
|
|
|
implementation 'androidx.core:core-ktx:1.6.0'
|
2021-06-21 10:40:40 +01:00
|
|
|
|
2021-04-27 21:24:21 +01:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2021-08-26 02:05:07 +01:00
|
|
|
testImplementation 'org.mockito:mockito-core:3.12.4'
|
2021-04-14 08:45:46 +01:00
|
|
|
testImplementation "org.powermock:powermock-core:${powermockVersion}"
|
|
|
|
testImplementation "org.powermock:powermock-module-junit4:${powermockVersion}"
|
|
|
|
testImplementation "org.powermock:powermock-api-mockito2:${powermockVersion}"
|
2019-04-11 17:59:14 +01:00
|
|
|
|
2021-07-01 02:06:09 +01:00
|
|
|
androidTestImplementation ('androidx.test.espresso:espresso-core:3.4.0', {
|
2017-10-23 11:40:38 +01:00
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
})
|
2021-04-28 23:46:35 +01:00
|
|
|
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.11.0'
|
2021-04-29 08:17:54 +01:00
|
|
|
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.4.7'
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
2019-12-26 17:48:06 +00:00
|
|
|
|
2021-04-22 13:31:33 +01:00
|
|
|
task ktlint(type: JavaExec, group: "verification") {
|
|
|
|
description = "Check Kotlin code style."
|
|
|
|
main = "com.pinterest.ktlint.Main"
|
|
|
|
classpath = configurations.ktlint
|
|
|
|
args "--reporter=plain", "--reporter=plain,output=${buildDir}/ktlint.txt,src/**/*.kt"
|
|
|
|
}
|
|
|
|
|
|
|
|
task ktlintFormat(type: JavaExec, group: "formatting") {
|
|
|
|
description = "Fix Kotlin code style deviations."
|
|
|
|
main = "com.pinterest.ktlint.Main"
|
|
|
|
classpath = configurations.ktlint
|
|
|
|
args "-F", "src/**/*.kt"
|
|
|
|
}
|
|
|
|
|
|
|
|
detekt {
|
|
|
|
reports {
|
|
|
|
xml {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
config = files("../detekt.yml")
|
|
|
|
input = files("src/")
|
|
|
|
}
|
|
|
|
|
2019-12-26 17:48:06 +00:00
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
2020-09-29 08:44:31 +01:00
|
|
|
}
|