2019-04-24 09:32:19 +03:00
|
|
|
/*
|
2024-03-17 16:12:32 +03:00
|
|
|
* Nextcloud Talk - Android Client
|
2019-04-24 09:32:19 +03:00
|
|
|
*
|
2024-03-17 16:12:32 +03: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 09:32:19 +03:00
|
|
|
*/
|
2023-12-04 11:47:52 +03:00
|
|
|
import com.github.spotbugs.snom.Confidence
|
|
|
|
import com.github.spotbugs.snom.Effort
|
2024-03-17 16:12:32 +03:00
|
|
|
import com.github.spotbugs.snom.SpotBugsTask
|
2019-04-24 09:32:19 +03:00
|
|
|
|
2024-06-17 18:41:03 +03:00
|
|
|
plugins {
|
2024-10-10 20:36:35 +03:00
|
|
|
id "org.jetbrains.kotlin.plugin.compose" version "2.0.21"
|
2024-06-17 18:41:03 +03:00
|
|
|
id "org.jetbrains.kotlin.kapt"
|
2024-11-08 05:05:15 +03:00
|
|
|
id 'com.google.devtools.ksp' version '2.0.21-1.0.27'
|
2024-06-17 18:41:03 +03:00
|
|
|
}
|
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
apply plugin: 'com.android.application'
|
2017-10-28 00:10:06 +03:00
|
|
|
apply plugin: 'kotlin-android'
|
2019-04-24 09:32:19 +03:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2022-12-29 15:19:41 +03:00
|
|
|
apply plugin: 'kotlin-parcelize'
|
2021-04-29 01:46:35 +03:00
|
|
|
apply plugin: 'com.github.spotbugs'
|
2021-04-22 15:31:33 +03:00
|
|
|
apply plugin: 'io.gitlab.arturbosch.detekt'
|
2022-03-17 15:46:44 +03:00
|
|
|
apply plugin: "org.jlleitschuh.gradle.ktlint"
|
2022-06-12 20:01:47 +03:00
|
|
|
apply plugin: 'kotlinx-serialization'
|
2024-07-19 12:13:33 +03:00
|
|
|
apply plugin: 'dagger.hilt.android.plugin'
|
2017-10-24 01:00:43 +03:00
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
android {
|
2023-10-12 14:30:51 +03:00
|
|
|
compileSdk 34
|
2022-09-16 15:09:40 +03:00
|
|
|
|
|
|
|
namespace 'com.nextcloud.talk'
|
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
defaultConfig {
|
2023-03-23 15:08:29 +03:00
|
|
|
minSdkVersion 24
|
2023-12-19 16:04:04 +03:00
|
|
|
targetSdkVersion 34
|
2018-10-02 23:34:00 +03:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2021-06-22 19:37:44 +03:00
|
|
|
// mayor.minor.hotfix.increment (for increment: 01-50=Alpha / 51-89=RC / 90-99=stable)
|
2021-02-19 12:41:01 +03:00
|
|
|
// xx .xxx .xx .xx
|
2024-11-11 06:13:27 +03:00
|
|
|
versionCode 200010011
|
|
|
|
versionName "20.1.0 Alpha 11"
|
2018-02-19 04:14:21 +03:00
|
|
|
|
|
|
|
flavorDimensions "default"
|
2018-07-10 15:34:35 +03:00
|
|
|
renderscriptTargetApi 19
|
|
|
|
renderscriptSupportModeEnabled true
|
2024-07-19 12:13:33 +03:00
|
|
|
javaCompileOptions.annotationProcessorOptions.arguments['dagger.hilt.disableModulesHaveInstallInCheck'] = 'true'
|
2017-12-13 01:31:41 +03:00
|
|
|
|
2018-02-19 04:14:21 +03:00
|
|
|
productFlavors {
|
|
|
|
// used for f-droid
|
2021-04-22 12:44:09 +03: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 04:14:21 +03:00
|
|
|
}
|
2019-01-13 23:57:26 +03:00
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
// Enabling multidex support.
|
|
|
|
multiDexEnabled true
|
|
|
|
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable 'InvalidPackage'
|
2017-12-19 19:49:29 +03:00
|
|
|
disable 'MissingTranslation'
|
2021-03-22 18:57:30 +03:00
|
|
|
disable 'VectorPath'
|
2022-08-10 23:18:00 +03:00
|
|
|
disable 'UnusedQuantity'
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|
2019-07-29 17:43:20 +03:00
|
|
|
|
2022-06-22 22:17:26 +03:00
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-21 12:47:54 +03: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 16:51:04 +03:00
|
|
|
|
2022-07-12 14:16:35 +03:00
|
|
|
def localBroadcastPermission = "PRIVATE_BROADCAST"
|
2022-06-14 16:51:04 +03:00
|
|
|
manifestPlaceholders.broadcastPermission = localBroadcastPermission
|
|
|
|
buildConfigField "String", "PERMISSION_LOCAL_BROADCAST", "\"${localBroadcastPermission}\""
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|
|
|
|
|
2024-08-20 17:23:17 +03:00
|
|
|
testOptions {
|
|
|
|
unitTests.all {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
}
|
2024-07-17 09:43:11 +03:00
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2022-05-19 11:03:38 +03:00
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
packagingOptions {
|
2022-05-18 19:32:26 +03: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 13:40:38 +03:00
|
|
|
}
|
|
|
|
|
2022-03-17 15:46:44 +03:00
|
|
|
check.dependsOn 'spotbugsGplayDebug', 'lint', 'ktlintCheck', 'detekt'
|
2021-04-29 01:46:35 +03:00
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
compileOptions {
|
2023-04-14 20:29:40 +03:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|
|
|
|
|
2024-10-07 19:29:15 +03:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '17'
|
|
|
|
}
|
|
|
|
|
2021-05-11 02:02:45 +03:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
2023-12-05 18:55:07 +03:00
|
|
|
buildConfig = true
|
2024-07-19 12:13:33 +03:00
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
|
|
|
|
composeOptions {
|
2024-08-08 15:40:36 +03:00
|
|
|
kotlinCompilerExtensionVersion = "1.5.15"
|
2021-05-11 02:02:45 +03:00
|
|
|
}
|
2022-05-19 11:03:38 +03:00
|
|
|
|
2022-05-18 19:28:04 +03:00
|
|
|
lint {
|
|
|
|
abortOnError false
|
2022-06-03 16:30:00 +03:00
|
|
|
disable 'MissingTranslation','PrivateResource'
|
2022-05-18 19:28:04 +03:00
|
|
|
htmlOutput file("$project.buildDir/reports/lint/lint.html")
|
|
|
|
htmlReport true
|
|
|
|
}
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|
2024-07-19 12:13:33 +03:00
|
|
|
kapt {
|
|
|
|
correctErrorTypes = true
|
|
|
|
}
|
2017-10-23 13:40:38 +03:00
|
|
|
|
|
|
|
ext {
|
2024-10-31 08:21:30 +03:00
|
|
|
androidxCameraVersion = "1.4.0"
|
2024-07-23 14:26:33 +03:00
|
|
|
coilKtVersion = "2.7.0"
|
2024-08-05 23:54:09 +03:00
|
|
|
daggerVersion = "2.52"
|
2024-09-05 14:28:13 +03:00
|
|
|
emojiVersion = "1.5.0"
|
2024-08-07 13:01:11 +03:00
|
|
|
fidoVersion = "4.1.0-patch2"
|
2024-10-31 05:29:22 +03:00
|
|
|
lifecycleVersion = '2.8.7'
|
2023-10-17 12:45:45 +03:00
|
|
|
okhttpVersion = "4.12.0"
|
2023-07-06 20:04:25 +03:00
|
|
|
markwonVersion = "4.6.2"
|
2021-04-22 00:16:34 +03:00
|
|
|
materialDialogsVersion = "3.3.0"
|
2021-04-20 01:49:42 +03:00
|
|
|
parcelerVersion = "1.1.13"
|
2023-07-06 20:04:25 +03:00
|
|
|
prismVersion = "2.0.0"
|
2024-03-28 23:39:11 +03:00
|
|
|
retrofit2Version = "2.11.0"
|
2023-11-30 06:05:12 +03:00
|
|
|
roomVersion = "2.6.1"
|
2024-08-07 21:27:44 +03:00
|
|
|
workVersion = "2.9.1"
|
2024-07-08 11:04:19 +03:00
|
|
|
espressoVersion = "3.6.1"
|
2024-07-17 09:43:11 +03:00
|
|
|
androidxTestVersion = "1.5.0"
|
2024-08-27 14:22:04 +03:00
|
|
|
media3_version = "1.4.1"
|
2024-09-13 18:11:25 +03:00
|
|
|
coroutines_version = "1.9.0"
|
2024-08-09 20:41:34 +03:00
|
|
|
mockitoKotlinVersion = "5.4.0"
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|
|
|
|
|
2023-12-13 16:01:17 +03:00
|
|
|
configurations.configureEach {
|
2018-02-08 16:19:43 +03:00
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-core'
|
2019-02-17 15:28:30 +03:00
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-analytics'
|
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
|
2023-07-06 20:04:25 +03:00
|
|
|
exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitly
|
2017-11-06 22:01:53 +03:00
|
|
|
}
|
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
dependencies {
|
2024-07-17 09:43:11 +03:00
|
|
|
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.13.0'
|
2024-11-14 06:56:47 +03:00
|
|
|
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.6.8'
|
2024-07-17 09:43:11 +03:00
|
|
|
|
2024-10-30 23:24:09 +03:00
|
|
|
implementation("androidx.compose.runtime:runtime:1.7.5")
|
2023-08-10 05:12:31 +03:00
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.1'
|
2024-05-21 18:51:54 +03:00
|
|
|
implementation 'androidx.datastore:datastore-core:1.1.1'
|
2024-05-21 18:53:23 +03:00
|
|
|
implementation 'androidx.datastore:datastore-preferences:1.1.1'
|
2024-08-12 18:38:20 +03:00
|
|
|
implementation 'androidx.test.ext:junit-ktx:1.2.1'
|
2024-09-08 20:00:40 +03:00
|
|
|
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.7")
|
2022-04-17 12:12:05 +03:00
|
|
|
|
2019-04-24 09:32:19 +03:00
|
|
|
implementation fileTree(include: ['*'], dir: 'libs')
|
2022-06-12 20:01:47 +03:00
|
|
|
|
2024-09-19 19:56:56 +03:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3"
|
2022-06-12 20:01:47 +03:00
|
|
|
|
2024-06-18 10:28:23 +03:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.7.0'
|
2024-05-02 23:08:32 +03:00
|
|
|
implementation 'com.google.android.material:material:1.12.0'
|
2024-10-31 08:23:02 +03:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
|
2024-10-31 08:35:31 +03:00
|
|
|
implementation "com.vanniktech:emoji-google:0.21.0"
|
2022-12-05 20:20:20 +03: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 18:54:10 +03:00
|
|
|
implementation 'org.michaelevans.colorart:library:0.0.3'
|
2021-04-05 23:18:10 +03:00
|
|
|
implementation "androidx.work:work-runtime:${workVersion}"
|
|
|
|
implementation "androidx.work:work-rxjava2:${workVersion}"
|
2021-05-03 00:08:21 +03:00
|
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
2023-03-30 18:23:50 +03:00
|
|
|
implementation 'com.google.android.flexbox:flexbox:3.0.0'
|
2024-02-02 15:17:01 +03:00
|
|
|
implementation ('com.github.bitfireAT:dav4jvm:2.1.3', {
|
2019-04-24 09:32:19 +03:00
|
|
|
exclude group: 'org.ogce', module: 'xpp3' // Android comes with its own XmlPullParser
|
|
|
|
})
|
2024-08-20 17:39:16 +03:00
|
|
|
implementation 'org.conscrypt:conscrypt-android:2.5.3'
|
2019-05-31 11:21:14 +03:00
|
|
|
|
2022-05-20 17:19:36 +03: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 05:14:21 +03:00
|
|
|
implementation "androidx.exifinterface:exifinterface:1.3.7"
|
2021-08-05 19:19:15 +03:00
|
|
|
|
2022-07-05 13:25:47 +03: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 20:25:39 +03:00
|
|
|
implementation "androidx.lifecycle:lifecycle-process:${lifecycleVersion}"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-common:${lifecycleVersion}"
|
2019-01-07 01:29:01 +03:00
|
|
|
|
2021-08-23 09:55:51 +03:00
|
|
|
implementation 'androidx.biometric:biometric:1.1.0'
|
2017-11-30 00:40:29 +03:00
|
|
|
|
2019-04-09 22:18:02 +03:00
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2019-03-06 15:55:26 +03:00
|
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
2021-04-27 22:42:12 +03:00
|
|
|
implementation "io.reactivex.rxjava2:rxjava:2.2.21"
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2021-04-27 16:31:45 +03:00
|
|
|
implementation "com.squareup.okhttp3:okhttp:${okhttpVersion}"
|
|
|
|
implementation "com.squareup.okhttp3:okhttp-urlconnection:${okhttpVersion}"
|
|
|
|
implementation "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
|
2017-10-23 13:40:38 +03:00
|
|
|
|
|
|
|
implementation 'com.bluelinelabs:logansquare:1.3.7'
|
2024-08-20 19:39:43 +03:00
|
|
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.3'
|
2019-04-24 09:32:19 +03:00
|
|
|
kapt 'com.bluelinelabs:logansquare-compiler:1.3.7'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2021-04-27 16:31:45 +03:00
|
|
|
implementation "com.squareup.retrofit2:retrofit:${retrofit2Version}"
|
|
|
|
implementation "com.squareup.retrofit2:adapter-rxjava2:${retrofit2Version}"
|
2024-07-23 17:41:07 +03:00
|
|
|
implementation 'de.mannodermaus.retrofit2:converter-logansquare:1.4.1'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2021-04-30 01:13:26 +03:00
|
|
|
implementation "com.google.dagger:dagger:${daggerVersion}"
|
|
|
|
kapt "com.google.dagger:dagger-compiler:${daggerVersion}"
|
2017-10-23 13:40:38 +03:00
|
|
|
implementation 'com.github.lukaspili.autodagger2:autodagger2:1.1'
|
2019-04-24 09:32:19 +03:00
|
|
|
kapt 'com.github.lukaspili.autodagger2:autodagger2-compiler:1.1'
|
2021-04-23 11:09:10 +03:00
|
|
|
compileOnly 'javax.annotation:javax.annotation-api:1.3.2'
|
2019-04-24 09:32:19 +03:00
|
|
|
// Android only
|
2022-02-10 19:36:28 +03:00
|
|
|
implementation 'org.greenrobot:eventbus:3.3.1'
|
2023-04-28 04:57:35 +03:00
|
|
|
implementation 'net.zetetic:android-database-sqlcipher:4.5.4'
|
2022-06-12 20:01:47 +03:00
|
|
|
|
|
|
|
implementation "androidx.room:room-runtime:${roomVersion}"
|
2022-06-22 20:53:53 +03:00
|
|
|
implementation "androidx.room:room-rxjava2:${roomVersion}"
|
2024-06-17 18:41:03 +03:00
|
|
|
ksp "androidx.room:room-compiler:${roomVersion}"
|
2022-06-12 20:01:47 +03:00
|
|
|
implementation "androidx.room:room-ktx:${roomVersion}"
|
|
|
|
|
2021-04-20 01:49:42 +03:00
|
|
|
implementation "org.parceler:parceler-api:$parcelerVersion"
|
2024-07-23 17:43:29 +03:00
|
|
|
implementation 'com.github.ddB0515.FlexibleAdapter:flexible-adapter:5.1.1'
|
|
|
|
implementation 'com.github.ddB0515.FlexibleAdapter:flexible-adapter-ui:5.1.1'
|
2024-08-30 02:19:14 +03:00
|
|
|
implementation 'org.apache.commons:commons-lang3:3.17.0'
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'com.github.wooplr:Spotlight:1.3'
|
2021-04-23 17:06:44 +03:00
|
|
|
implementation 'com.google.code.findbugs:jsr305:3.0.2'
|
2023-04-01 17:23:38 +03:00
|
|
|
implementation 'com.github.nextcloud-deps:ChatKit:0.4.2'
|
2024-09-16 02:15:38 +03:00
|
|
|
implementation 'joda-time:joda-time:2.13.0'
|
2021-04-21 23:57:01 +03:00
|
|
|
implementation "io.coil-kt:coil:${coilKtVersion}"
|
2021-04-19 06:11:00 +03:00
|
|
|
implementation "io.coil-kt:coil-gif:${coilKtVersion}"
|
|
|
|
implementation "io.coil-kt:coil-svg:${coilKtVersion}"
|
2024-05-21 20:45:25 +03:00
|
|
|
implementation 'com.github.natario1:Autocomplete:1.1.0'
|
2018-04-23 16:57:48 +03:00
|
|
|
|
2023-12-12 19:12:46 +03:00
|
|
|
implementation "com.github.nextcloud-deps.hwsecurity:hwsecurity-fido:${fidoVersion}"
|
|
|
|
implementation "com.github.nextcloud-deps.hwsecurity:hwsecurity-fido2:${fidoVersion}"
|
2019-08-03 14:39:49 +03:00
|
|
|
|
2022-08-05 04:17:53 +03:00
|
|
|
implementation 'com.github.nextcloud:PopupBubble:2.0.0'
|
2021-06-01 15:29:35 +03:00
|
|
|
|
2021-04-22 00:16:34 +03: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 13:12:40 +03:00
|
|
|
|
2024-05-21 17:20:03 +03:00
|
|
|
implementation 'com.google.code.gson:gson:2.11.0'
|
2024-07-19 12:13:33 +03:00
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.11.0'
|
2023-08-17 01:20:07 +03:00
|
|
|
|
|
|
|
implementation "androidx.media3:media3-exoplayer:$media3_version"
|
|
|
|
implementation "androidx.media3:media3-ui:$media3_version"
|
2021-04-05 23:18:10 +03:00
|
|
|
|
2021-04-30 01:13:07 +03:00
|
|
|
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
2024-07-10 15:40:58 +03:00
|
|
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.29'
|
2021-04-05 23:18:10 +03:00
|
|
|
|
|
|
|
implementation "io.noties.markwon:core:$markwonVersion"
|
2023-07-06 20:04:25 +03:00
|
|
|
implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
|
2023-07-07 15:45:54 +03:00
|
|
|
implementation "io.noties.markwon:ext-tasklist:$markwonVersion"
|
2020-11-12 14:43:17 +03:00
|
|
|
|
2022-11-17 20:37:36 +03:00
|
|
|
implementation 'com.github.nextcloud-deps:ImagePicker:2.1.0.2'
|
2023-08-20 12:22:26 +03:00
|
|
|
implementation 'io.github.elye:loaderviewlibrary:3.0.0'
|
2024-08-20 09:08:07 +03:00
|
|
|
implementation 'org.osmdroid:osmdroid-android:6.1.20'
|
2021-06-11 01:24:21 +03:00
|
|
|
implementation ('fr.dudie:nominatim-api:3.4', {
|
|
|
|
//noinspection DuplicatePlatformClasses
|
|
|
|
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
|
|
|
|
})
|
2021-05-20 16:51:19 +03:00
|
|
|
|
2024-05-17 14:23:14 +03:00
|
|
|
implementation 'androidx.core:core-ktx:1.13.1'
|
2024-10-19 05:42:50 +03:00
|
|
|
implementation 'androidx.activity:activity-ktx:1.9.3'
|
2024-11-08 22:11:12 +03:00
|
|
|
implementation 'com.github.nextcloud.android-common:ui:0.23.2'
|
2024-07-17 09:43:11 +03:00
|
|
|
implementation 'com.github.nextcloud-deps:android-talk-webrtc:121.6167.0'
|
|
|
|
|
2024-08-20 18:58:53 +03:00
|
|
|
gplayImplementation 'com.google.android.gms:play-services-base:18.5.0'
|
2024-10-21 23:43:10 +03:00
|
|
|
gplayImplementation "com.google.firebase:firebase-messaging:24.0.3"
|
2021-06-21 12:40:40 +03:00
|
|
|
|
2024-07-19 12:13:33 +03:00
|
|
|
//compose
|
2024-11-14 01:37:53 +03:00
|
|
|
implementation(platform("androidx.compose:compose-bom:2024.11.00"))
|
2024-07-19 12:13:33 +03:00
|
|
|
implementation("androidx.compose.ui:ui")
|
2024-10-30 23:48:18 +03:00
|
|
|
implementation 'androidx.compose.material3:material3:1.3.1'
|
2024-07-19 12:13:33 +03:00
|
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
2024-10-19 05:41:25 +03:00
|
|
|
implementation 'androidx.activity:activity-compose:1.9.3'
|
2024-10-31 02:07:14 +03:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.7'
|
2024-07-19 12:13:33 +03:00
|
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
|
|
|
|
|
|
//tests
|
2024-10-31 02:05:29 +03:00
|
|
|
androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.7.5")
|
2024-07-19 12:13:33 +03:00
|
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
|
|
|
|
2021-04-27 23:24:21 +03:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2024-10-15 17:29:11 +03:00
|
|
|
testImplementation 'org.mockito:mockito-core:5.14.2'
|
2023-02-23 05:13:37 +03:00
|
|
|
testImplementation 'androidx.arch.core:core-testing:2.2.0'
|
2019-04-11 19:59:14 +03:00
|
|
|
|
2024-08-20 18:52:43 +03:00
|
|
|
androidTestImplementation "androidx.test:core:1.6.1"
|
2021-12-21 12:47:54 +03:00
|
|
|
|
2024-09-13 18:09:25 +03:00
|
|
|
androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0"
|
2024-07-17 09:43:11 +03:00
|
|
|
androidTestImplementation 'androidx.test:core-ktx:1.6.1'
|
2024-10-15 17:29:11 +03:00
|
|
|
androidTestImplementation 'org.mockito:mockito-android:5.14.2'
|
2024-07-17 09:43:11 +03:00
|
|
|
androidTestImplementation "androidx.work:work-testing:${workVersion}"
|
2021-07-23 17:44:33 +03:00
|
|
|
// Espresso core
|
2021-12-21 12:47:54 +03:00
|
|
|
androidTestImplementation ("androidx.test.espresso:espresso-core:$espressoVersion", {
|
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
})
|
2021-07-23 17:44:33 +03:00
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
|
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-web:$espressoVersion"
|
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-accessibility:$espressoVersion"
|
2024-07-17 09:43:11 +03:00
|
|
|
|
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
|
|
|
|
|
2021-07-23 17:44:33 +03:00
|
|
|
androidTestImplementation('com.android.support.test.espresso:espresso-intents:3.0.2')
|
|
|
|
|
2024-02-26 18:52:31 +03:00
|
|
|
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.13.0'
|
2024-11-14 06:56:47 +03:00
|
|
|
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.6.8'
|
2021-10-07 18:51:05 +03:00
|
|
|
|
2024-10-19 05:42:50 +03:00
|
|
|
implementation 'androidx.activity:activity-ktx:1.9.3'
|
2022-08-25 18:38:25 +03:00
|
|
|
|
2024-11-08 22:11:12 +03:00
|
|
|
implementation 'com.github.nextcloud.android-common:ui:0.23.2'
|
2023-04-25 22:02:03 +03:00
|
|
|
|
2024-02-27 16:25:02 +03:00
|
|
|
implementation 'com.github.nextcloud-deps:android-talk-webrtc:121.6167.0'
|
2024-07-24 11:44:15 +03:00
|
|
|
implementation("io.coil-kt:coil-compose:2.7.0")
|
2024-07-19 12:13:33 +03:00
|
|
|
|
|
|
|
implementation "com.google.dagger:hilt-android:$hilt_version"
|
|
|
|
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
|
2024-07-16 23:21:33 +03:00
|
|
|
|
2024-10-31 11:03:10 +03:00
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7")
|
2024-11-14 01:37:53 +03:00
|
|
|
androidTestImplementation(platform("androidx.compose:compose-bom:2024.11.00"))
|
2024-07-16 23:21:33 +03:00
|
|
|
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
|
2024-07-22 22:04:42 +03:00
|
|
|
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
|
|
|
|
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
|
|
|
|
|
2024-10-21 18:49:36 +03:00
|
|
|
testImplementation 'org.junit.vintage:junit-vintage-engine:5.11.3'
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|
2019-12-26 20:48:06 +03:00
|
|
|
|
2023-12-13 16:01:17 +03:00
|
|
|
tasks.register('installGitHooks', Copy) {
|
2022-04-03 12:54:19 +03:00
|
|
|
description = "Install git hooks"
|
|
|
|
from("../scripts/hooks") {
|
|
|
|
include '*'
|
|
|
|
}
|
|
|
|
into '../.git/hooks'
|
|
|
|
}
|
|
|
|
|
2022-10-10 18:06:43 +03:00
|
|
|
spotbugs {
|
|
|
|
ignoreFailures = true // should continue checking
|
2023-12-04 11:47:52 +03:00
|
|
|
effort = Effort.MAX
|
|
|
|
reportLevel = Confidence.valueOf('MEDIUM')
|
2022-10-10 18:06:43 +03:00
|
|
|
}
|
|
|
|
|
2023-12-13 16:01:17 +03:00
|
|
|
tasks.withType(SpotBugsTask).configureEach { task ->
|
2022-10-10 18:06:43 +03: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 16:20:36 +03:00
|
|
|
classes = fileTree("$project.buildDir/intermediates/javac/${variantName}/compile${variantNameCap}JavaWithJavac/classes/")
|
2022-10-10 18:06:43 +03:00
|
|
|
reports {
|
|
|
|
xml {
|
|
|
|
required = true
|
|
|
|
}
|
|
|
|
html {
|
|
|
|
required = true
|
|
|
|
outputLocation = file("$project.buildDir/reports/spotbugs/spotbugs.html")
|
|
|
|
stylesheet = 'fancy.xsl'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-26 23:05:17 +03:00
|
|
|
tasks.named("detekt").configure {
|
2021-04-22 15:31:33 +03:00
|
|
|
reports {
|
2022-07-26 23:05:17 +03:00
|
|
|
html.required.set(true)
|
|
|
|
txt.required.set(true)
|
|
|
|
xml.required.set(false)
|
|
|
|
sarif.required.set(false)
|
|
|
|
md.required.set(false)
|
2021-04-22 15:31:33 +03:00
|
|
|
}
|
2022-07-26 23:05:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
detekt {
|
2023-12-13 16:01:17 +03:00
|
|
|
config.setFrom("../detekt.yml")
|
|
|
|
source.setFrom("src/")
|
2021-04-22 15:31:33 +03:00
|
|
|
}
|
2024-06-17 18:41:03 +03:00
|
|
|
|
|
|
|
ksp {
|
|
|
|
arg('room.schemaLocation', "$projectDir/schemas")
|
|
|
|
}
|