2024-03-29 15:56:51 +00:00
|
|
|
/*
|
|
|
|
* Nextcloud - Android Client
|
|
|
|
*
|
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me>
|
|
|
|
* SPDX-FileCopyrightText: 2023 Tobias Kaminsky <tobias@kaminsky.me>
|
2024-04-09 10:20:07 +00:00
|
|
|
* SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
|
2024-03-29 15:56:51 +00:00
|
|
|
* SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
|
2024-04-30 10:16:39 +00:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
|
2024-03-29 15:56:51 +00:00
|
|
|
*/
|
2014-10-03 10:33:41 +00:00
|
|
|
buildscript {
|
2022-03-11 10:10:51 +00:00
|
|
|
ext {
|
2024-04-29 05:00:34 +00:00
|
|
|
androidLibraryVersion ="be87ba7948ba2067eaa6193b6c02f5e85b5bfdf1"
|
2024-05-01 12:25:18 +00:00
|
|
|
androidPluginVersion = '8.4.0'
|
2024-04-11 17:15:30 +00:00
|
|
|
androidxMediaVersion = '1.3.1'
|
2024-03-07 11:10:35 +00:00
|
|
|
androidxTestVersion = "1.5.0"
|
2023-02-20 12:27:29 +00:00
|
|
|
appCompatVersion = '1.6.1'
|
2024-03-07 11:10:35 +00:00
|
|
|
checkerVersion = "3.21.2"
|
2024-04-01 14:53:41 +00:00
|
|
|
daggerVersion = "2.51.1"
|
2024-03-07 11:10:35 +00:00
|
|
|
documentScannerVersion = "1.1.1"
|
|
|
|
espressoVersion = "3.5.1"
|
|
|
|
fidoVersion = "4.1.0-patch2"
|
2024-04-02 18:26:48 +00:00
|
|
|
jacoco_version = '0.8.12'
|
2024-03-21 08:16:45 +00:00
|
|
|
kotlin_version = '1.9.23'
|
2022-03-11 10:10:51 +00:00
|
|
|
markwonVersion = "4.6.2"
|
2023-01-09 16:02:35 +00:00
|
|
|
mockitoVersion = "4.11.0"
|
2022-11-28 02:02:33 +00:00
|
|
|
mockitoKotlinVersion = "4.1.0"
|
2024-03-01 18:22:34 +00:00
|
|
|
mockkVersion = "1.13.10"
|
2024-03-07 11:10:35 +00:00
|
|
|
prismVersion = "2.0.0"
|
2024-02-04 15:13:27 +00:00
|
|
|
roomVersion = "2.6.1"
|
2024-03-07 11:10:35 +00:00
|
|
|
workRuntime = "2.9.0"
|
2022-03-11 10:10:51 +00:00
|
|
|
|
|
|
|
ciBuild = System.getenv("CI") == "true"
|
2024-02-22 09:13:22 +00:00
|
|
|
shotTest = System.getenv("SHOT_TEST") == "true"
|
2022-03-11 10:10:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2022-04-29 14:03:00 +00:00
|
|
|
gradlePluginPortal()
|
2022-03-11 10:10:51 +00:00
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
}
|
2014-10-03 10:33:41 +00:00
|
|
|
repositories {
|
2018-10-24 06:44:44 +00:00
|
|
|
google()
|
2018-08-22 15:42:15 +00:00
|
|
|
mavenCentral()
|
2022-04-29 14:03:00 +00:00
|
|
|
maven { url "https://jitpack.io" }
|
2014-10-03 10:33:41 +00:00
|
|
|
}
|
2022-03-21 08:19:15 +00:00
|
|
|
}
|
|
|
|
|
2023-08-29 07:08:39 +00:00
|
|
|
tasks.register('clean', Delete) {
|
2022-03-21 08:19:15 +00:00
|
|
|
delete rootProject.buildDir
|
2022-03-22 13:30:54 +00:00
|
|
|
}
|
2022-10-07 15:44:52 +00:00
|
|
|
|
2023-08-29 07:08:39 +00:00
|
|
|
tasks.register('installGitHooks', Copy) {
|
2022-10-07 15:44:52 +00:00
|
|
|
def sourceFolder = "${rootProject.projectDir}/scripts/hooks"
|
|
|
|
def destFolder = "${rootProject.projectDir}/.git/hooks"
|
|
|
|
|
|
|
|
description = "Install git hooks"
|
|
|
|
|
|
|
|
from(sourceFolder) {
|
|
|
|
include '*'
|
|
|
|
}
|
|
|
|
into destFolder
|
|
|
|
|
|
|
|
eachFile { file ->
|
|
|
|
println "${sourceFolder}/${file.relativeSourcePath} -> ${destFolder}/${file.path}"
|
|
|
|
}
|
|
|
|
}
|