2019-04-24 07:32:19 +01:00
|
|
|
/*
|
2024-03-17 13:12:32 +00:00
|
|
|
* Nextcloud Talk - Android Client
|
2019-04-24 07:32:19 +01:00
|
|
|
*
|
2024-03-17 13:12:32 +00:00
|
|
|
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-FileCopyrightText: 2021-2023 Marcel Hibbe <dev@mhibbe.de>
|
|
|
|
* SPDX-FileCopyrightText: 2022 Tim Krüger <t@timkrueger.me>
|
|
|
|
* SPDX-FileCopyrightText: 2021 Andy Scherzinger <info@andy-scherzinger.de>
|
|
|
|
* SPDX-FileCopyrightText: 2017-2019 Mario Danic <mario@lovelyhq.com>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2019-04-24 07:32:19 +01:00
|
|
|
*/
|
2023-12-04 08:47:52 +00:00
|
|
|
import com.github.spotbugs.snom.Confidence
|
|
|
|
import com.github.spotbugs.snom.Effort
|
2024-03-17 13:12:32 +00: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'
|
2022-12-29 12:19:41 +00:00
|
|
|
apply plugin: 'kotlin-parcelize'
|
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'
|
2022-03-17 12:46:44 +00:00
|
|
|
apply plugin: "org.jlleitschuh.gradle.ktlint"
|
2022-06-12 18:01:47 +01:00
|
|
|
apply plugin: 'kotlinx-serialization'
|
2017-10-23 23:00:43 +01:00
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
android {
|
2023-10-12 12:30:51 +01:00
|
|
|
compileSdk 34
|
2022-09-16 13:09:40 +01:00
|
|
|
|
|
|
|
namespace 'com.nextcloud.talk'
|
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
defaultConfig {
|
2023-03-23 12:08:29 +00:00
|
|
|
minSdkVersion 24
|
2023-12-19 13:04:04 +00:00
|
|
|
targetSdkVersion 34
|
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
|
2024-04-15 14:06:33 +01:00
|
|
|
versionCode 190010004
|
|
|
|
versionName "19.1.0 Alpha 04"
|
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'
|
2022-08-10 21:18:00 +01:00
|
|
|
disable 'UnusedQuantity'
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
2019-07-29 15:43:20 +01:00
|
|
|
|
2022-06-22 20:17:26 +01:00
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-21 09:47:54 +00:00
|
|
|
testInstrumentationRunnerArgument "TEST_SERVER_URL", "${NC_TEST_SERVER_BASEURL}"
|
|
|
|
testInstrumentationRunnerArgument "TEST_SERVER_USERNAME", "${NC_TEST_SERVER_USERNAME}"
|
|
|
|
testInstrumentationRunnerArgument "TEST_SERVER_PASSWORD", "${NC_TEST_SERVER_PASSWORD}"
|
2022-06-14 14:51:04 +01:00
|
|
|
|
2022-07-12 12:16:35 +01:00
|
|
|
def localBroadcastPermission = "PRIVATE_BROADCAST"
|
2022-06-14 14:51:04 +01:00
|
|
|
manifestPlaceholders.broadcastPermission = localBroadcastPermission
|
|
|
|
buildConfigField "String", "PERMISSION_LOCAL_BROADCAST", "\"${localBroadcastPermission}\""
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2022-05-19 09:03:38 +01:00
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
packagingOptions {
|
2022-05-18 17:32:26 +01:00
|
|
|
resources {
|
|
|
|
excludes += [
|
|
|
|
'META-INF/LICENSE.txt',
|
|
|
|
'META-INF/LICENSE',
|
|
|
|
'META-INF/NOTICE.txt',
|
|
|
|
'META-INF/NOTICE',
|
|
|
|
'META-INF/DEPENDENCIES',
|
|
|
|
'META-INF/rxjava.properties'
|
|
|
|
]
|
|
|
|
}
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
|
|
|
|
2022-03-17 12:46:44 +00:00
|
|
|
check.dependsOn 'spotbugsGplayDebug', 'lint', 'ktlintCheck', 'detekt'
|
2021-04-28 23:46:35 +01:00
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
compileOptions {
|
2023-04-14 18:29:40 +01:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
|
|
|
|
2021-05-11 00:02:45 +01:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
2023-12-05 15:55:07 +00:00
|
|
|
buildConfig = true
|
2021-05-11 00:02:45 +01:00
|
|
|
}
|
2022-05-19 09:03:38 +01:00
|
|
|
|
2022-05-18 17:28:04 +01:00
|
|
|
lint {
|
|
|
|
abortOnError false
|
2022-06-03 14:30:00 +01:00
|
|
|
disable 'MissingTranslation','PrivateResource'
|
2022-05-18 17:28:04 +01:00
|
|
|
htmlOutput file("$project.buildDir/reports/lint/lint.html")
|
|
|
|
htmlReport true
|
|
|
|
}
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
2024-04-17 19:30:32 +01:00
|
|
|
androidxCameraVersion = "1.3.3"
|
2024-03-01 13:49:19 +00:00
|
|
|
coilKtVersion = "2.6.0"
|
2024-03-29 18:31:44 +00:00
|
|
|
daggerVersion = "2.51.1"
|
2023-10-12 12:30:51 +01:00
|
|
|
emojiVersion = "1.4.0"
|
2023-12-12 16:12:46 +00:00
|
|
|
fidoVersion = "4.1.0-patch2"
|
2024-01-11 02:26:58 +00:00
|
|
|
lifecycleVersion = '2.7.0'
|
2023-10-17 10:45:45 +01:00
|
|
|
okhttpVersion = "4.12.0"
|
2023-07-06 18:04:25 +01:00
|
|
|
markwonVersion = "4.6.2"
|
2021-04-21 22:16:34 +01:00
|
|
|
materialDialogsVersion = "3.3.0"
|
2021-04-19 23:49:42 +01:00
|
|
|
parcelerVersion = "1.1.13"
|
2023-07-06 18:04:25 +01:00
|
|
|
prismVersion = "2.0.0"
|
2024-03-28 20:39:11 +00:00
|
|
|
retrofit2Version = "2.11.0"
|
2023-11-30 03:05:12 +00:00
|
|
|
roomVersion = "2.6.1"
|
2023-11-30 03:05:19 +00:00
|
|
|
workVersion = "2.9.0"
|
2023-01-04 02:01:35 +00:00
|
|
|
espressoVersion = "3.5.1"
|
2024-04-09 20:47:45 +01:00
|
|
|
media3_version = "1.3.1"
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
|
|
|
|
2023-12-13 13:01:17 +00:00
|
|
|
configurations.configureEach {
|
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'
|
2023-07-06 18:04:25 +01:00
|
|
|
exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitly
|
2017-11-06 19:01:53 +00:00
|
|
|
}
|
|
|
|
|
2017-10-23 11:40:38 +01:00
|
|
|
dependencies {
|
2023-08-10 03:12:31 +01:00
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.1'
|
2023-08-14 19:37:52 +01:00
|
|
|
implementation 'androidx.datastore:datastore-core:1.0.0'
|
|
|
|
implementation 'androidx.datastore:datastore-preferences:1.0.0'
|
2024-03-25 01:30:01 +00:00
|
|
|
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.6")
|
2022-04-17 10:12:05 +01:00
|
|
|
|
2019-04-24 07:32:19 +01:00
|
|
|
implementation fileTree(include: ['*'], dir: 'libs')
|
2022-06-12 18:01:47 +01:00
|
|
|
|
2024-02-19 09:53:38 +00:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3"
|
2022-06-12 18:01:47 +01:00
|
|
|
|
2023-03-28 14:48:39 +01:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
2024-05-02 21:08:32 +01:00
|
|
|
implementation 'com.google.android.material:material:1.12.0'
|
2022-05-20 02:07:08 +01:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
2023-12-12 08:16:38 +00:00
|
|
|
implementation "com.vanniktech:emoji-google:0.18.0"
|
2022-12-05 17:20:20 +00:00
|
|
|
implementation "androidx.emoji2:emoji2:${emojiVersion}"
|
|
|
|
implementation "androidx.emoji2:emoji2-bundled:${emojiVersion}"
|
|
|
|
implementation "androidx.emoji2:emoji2-views:${emojiVersion}"
|
|
|
|
implementation "androidx.emoji2:emoji2-views-helper:${emojiVersion}"
|
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-04-05 21:18:10 +01:00
|
|
|
androidTestImplementation "androidx.work:work-testing:${workVersion}"
|
2023-03-30 16:23:50 +01:00
|
|
|
implementation 'com.google.android.flexbox:flexbox:3.0.0'
|
2024-02-02 12:17:01 +00:00
|
|
|
implementation ('com.github.bitfireAT:dav4jvm:2.1.3', {
|
2019-04-24 07:32:19 +01:00
|
|
|
exclude group: 'org.ogce', module: 'xpp3' // Android comes with its own XmlPullParser
|
|
|
|
})
|
2021-04-29 23:12:46 +01:00
|
|
|
implementation 'org.conscrypt:conscrypt-android:2.5.2'
|
2019-05-31 09:21:14 +01:00
|
|
|
|
2022-05-20 15:19:36 +01:00
|
|
|
implementation "androidx.camera:camera-core:${androidxCameraVersion}"
|
|
|
|
implementation "androidx.camera:camera-camera2:${androidxCameraVersion}"
|
|
|
|
implementation "androidx.camera:camera-lifecycle:${androidxCameraVersion}"
|
|
|
|
implementation "androidx.camera:camera-view:${androidxCameraVersion}"
|
2023-12-14 02:14:21 +00:00
|
|
|
implementation "androidx.exifinterface:exifinterface:1.3.7"
|
2021-08-05 17:19:15 +01:00
|
|
|
|
2022-07-05 11:25:47 +01:00
|
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:${lifecycleVersion}"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:${lifecycleVersion}"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${lifecycleVersion}"
|
2023-05-03 18:25:39 +01:00
|
|
|
implementation "androidx.lifecycle:lifecycle-process:${lifecycleVersion}"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-common:${lifecycleVersion}"
|
2019-01-06 22:29:01 +00:00
|
|
|
|
2021-08-23 07:55:51 +01:00
|
|
|
implementation 'androidx.biometric:biometric:1.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-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'
|
2023-05-10 09:53:50 +01:00
|
|
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.3'
|
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
|
2022-02-10 16:36:28 +00:00
|
|
|
implementation 'org.greenrobot:eventbus:3.3.1'
|
2023-04-28 02:57:35 +01:00
|
|
|
implementation 'net.zetetic:android-database-sqlcipher:4.5.4'
|
2022-06-12 18:01:47 +01:00
|
|
|
|
|
|
|
implementation "androidx.room:room-runtime:${roomVersion}"
|
2022-06-22 18:53:53 +01:00
|
|
|
implementation "androidx.room:room-rxjava2:${roomVersion}"
|
2022-06-23 19:15:37 +01:00
|
|
|
kapt "androidx.room:room-compiler:${roomVersion}"
|
2022-06-12 18:01:47 +01:00
|
|
|
implementation "androidx.room:room-ktx:${roomVersion}"
|
|
|
|
|
2021-04-19 23:49:42 +01:00
|
|
|
implementation "org.parceler:parceler-api:$parcelerVersion"
|
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'
|
2023-11-22 02:40:11 +00:00
|
|
|
implementation 'org.apache.commons:commons-lang3:3.14.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'
|
2023-04-01 15:23:38 +01:00
|
|
|
implementation 'com.github.nextcloud-deps:ChatKit:0.4.2'
|
2024-02-05 01:07:24 +00:00
|
|
|
implementation 'joda-time:joda-time:2.12.7'
|
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
|
|
|
|
2023-12-12 16:12:46 +00:00
|
|
|
implementation "com.github.nextcloud-deps.hwsecurity:hwsecurity-fido:${fidoVersion}"
|
|
|
|
implementation "com.github.nextcloud-deps.hwsecurity:hwsecurity-fido2:${fidoVersion}"
|
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
|
|
|
|
2022-08-05 02:17:53 +01:00
|
|
|
implementation 'com.github.nextcloud:PopupBubble:2.0.0'
|
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
|
|
|
|
2024-05-21 15:20:03 +01:00
|
|
|
implementation 'com.google.code.gson:gson:2.11.0'
|
2023-08-16 23:20:07 +01:00
|
|
|
|
|
|
|
implementation "androidx.media3:media3-exoplayer:$media3_version"
|
|
|
|
implementation "androidx.media3:media3-ui:$media3_version"
|
2021-04-05 21:18:10 +01:00
|
|
|
|
2021-04-29 23:13:07 +01:00
|
|
|
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
2023-08-31 13:38:56 +01:00
|
|
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.28'
|
2021-04-05 21:18:10 +01:00
|
|
|
|
|
|
|
implementation "io.noties.markwon:core:$markwonVersion"
|
2023-07-06 18:04:25 +01:00
|
|
|
implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
|
2023-07-07 13:45:54 +01:00
|
|
|
implementation "io.noties.markwon:ext-tasklist:$markwonVersion"
|
2020-11-12 11:43:17 +00:00
|
|
|
|
2022-11-17 17:37:36 +00:00
|
|
|
implementation 'com.github.nextcloud-deps:ImagePicker:2.1.0.2'
|
2023-08-20 10:22:26 +01:00
|
|
|
implementation 'io.github.elye:loaderviewlibrary:3.0.0'
|
2024-01-02 02:37:42 +00:00
|
|
|
implementation 'org.osmdroid:osmdroid-android:6.1.18'
|
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
|
|
|
|
2024-05-17 12:23:14 +01:00
|
|
|
implementation 'androidx.core:core-ktx:1.13.1'
|
2021-06-21 10:40:40 +01:00
|
|
|
|
2021-04-27 21:24:21 +01:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2024-05-16 20:57:04 +01:00
|
|
|
testImplementation 'org.mockito:mockito-core:5.12.0'
|
|
|
|
androidTestImplementation 'org.mockito:mockito-android:5.12.0'
|
2023-02-23 02:13:37 +00:00
|
|
|
testImplementation 'androidx.arch.core:core-testing:2.2.0'
|
2019-04-11 17:59:14 +01:00
|
|
|
|
2022-11-09 02:04:33 +00:00
|
|
|
androidTestImplementation "androidx.test:core:1.5.0"
|
2021-12-21 09:47:54 +00:00
|
|
|
|
2021-07-23 15:44:33 +01:00
|
|
|
// Espresso core
|
2021-12-21 09:47:54 +00:00
|
|
|
androidTestImplementation ("androidx.test.espresso:espresso-core:$espressoVersion", {
|
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
})
|
2021-07-23 15:44:33 +01:00
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
|
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-web:$espressoVersion"
|
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-accessibility:$espressoVersion"
|
|
|
|
androidTestImplementation('com.android.support.test.espresso:espresso-intents:3.0.2')
|
|
|
|
|
2024-02-26 15:52:31 +00:00
|
|
|
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.13.0'
|
2023-12-22 02:12:48 +00:00
|
|
|
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.6.4'
|
2021-10-07 16:51:05 +01:00
|
|
|
|
2024-04-17 01:49:34 +01:00
|
|
|
gplayImplementation 'com.google.android.gms:play-services-base:18.4.0'
|
2024-02-08 22:04:08 +00:00
|
|
|
gplayImplementation "com.google.firebase:firebase-messaging:23.4.1"
|
2022-04-05 16:05:27 +01:00
|
|
|
|
2024-04-18 08:32:20 +01:00
|
|
|
implementation 'androidx.activity:activity-ktx:1.9.0'
|
2022-08-25 16:38:25 +01:00
|
|
|
|
2024-04-18 17:25:10 +01:00
|
|
|
implementation 'com.github.nextcloud.android-common:ui:0.20.0'
|
2023-04-25 20:02:03 +01:00
|
|
|
|
2024-02-27 13:25:02 +00:00
|
|
|
implementation 'com.github.nextcloud-deps:android-talk-webrtc:121.6167.0'
|
2017-10-23 11:40:38 +01:00
|
|
|
}
|
2019-12-26 17:48:06 +00:00
|
|
|
|
2023-12-13 13:01:17 +00:00
|
|
|
tasks.register('installGitHooks', Copy) {
|
2022-04-03 10:54:19 +01:00
|
|
|
description = "Install git hooks"
|
|
|
|
from("../scripts/hooks") {
|
|
|
|
include '*'
|
|
|
|
}
|
|
|
|
into '../.git/hooks'
|
|
|
|
}
|
|
|
|
|
2022-10-10 16:06:43 +01:00
|
|
|
spotbugs {
|
|
|
|
ignoreFailures = true // should continue checking
|
2023-12-04 08:47:52 +00:00
|
|
|
effort = Effort.MAX
|
|
|
|
reportLevel = Confidence.valueOf('MEDIUM')
|
2022-10-10 16:06:43 +01:00
|
|
|
}
|
|
|
|
|
2023-12-13 13:01:17 +00:00
|
|
|
tasks.withType(SpotBugsTask).configureEach { task ->
|
2022-10-10 16:06:43 +01:00
|
|
|
String variantNameCap = task.name.replace("spotbugs", "")
|
|
|
|
String variantName = variantNameCap.substring(0, 1).toLowerCase() + variantNameCap.substring(1)
|
|
|
|
|
|
|
|
dependsOn "compile${variantNameCap}Sources"
|
|
|
|
|
|
|
|
excludeFilter = file("${project.rootDir}/spotbugs-filter.xml")
|
2024-03-01 13:20:36 +00:00
|
|
|
classes = fileTree("$project.buildDir/intermediates/javac/${variantName}/compile${variantNameCap}JavaWithJavac/classes/")
|
2022-10-10 16:06:43 +01:00
|
|
|
reports {
|
|
|
|
xml {
|
|
|
|
required = true
|
|
|
|
}
|
|
|
|
html {
|
|
|
|
required = true
|
|
|
|
outputLocation = file("$project.buildDir/reports/spotbugs/spotbugs.html")
|
|
|
|
stylesheet = 'fancy.xsl'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-26 21:05:17 +01:00
|
|
|
tasks.named("detekt").configure {
|
2021-04-22 13:31:33 +01:00
|
|
|
reports {
|
2022-07-26 21:05:17 +01:00
|
|
|
html.required.set(true)
|
|
|
|
txt.required.set(true)
|
|
|
|
xml.required.set(false)
|
|
|
|
sarif.required.set(false)
|
|
|
|
md.required.set(false)
|
2021-04-22 13:31:33 +01:00
|
|
|
}
|
2022-07-26 21:05:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
detekt {
|
2023-12-13 13:01:17 +00:00
|
|
|
config.setFrom("../detekt.yml")
|
|
|
|
source.setFrom("src/")
|
2021-04-22 13:31:33 +01:00
|
|
|
}
|