2024-03-29 18:56:51 +03:00
|
|
|
/*
|
|
|
|
* Nextcloud - Android Client
|
|
|
|
*
|
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
2024-06-03 17:40:29 +03:00
|
|
|
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper.ozturk@nextcloud.com>
|
2024-03-29 18:56:51 +03:00
|
|
|
* SPDX-FileCopyrightText: 2023 Tobias Kaminsky <tobias@kaminsky.me>
|
2024-04-09 13:20:07 +03:00
|
|
|
* SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
|
2024-03-29 18:56:51 +03:00
|
|
|
* SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
|
2024-04-30 13:16:39 +03:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
|
2024-03-29 18:56:51 +03:00
|
|
|
*/
|
2014-10-03 14:33:41 +04:00
|
|
|
buildscript {
|
2022-03-11 13:10:51 +03:00
|
|
|
ext {
|
2024-10-06 01:09:31 +03:00
|
|
|
androidLibraryVersion ="ceb3812b688f2288911acf4d917596283fab0ea5"
|
2024-11-05 14:15:40 +03:00
|
|
|
androidPluginVersion = '8.7.2'
|
2024-09-23 15:37:35 +03:00
|
|
|
androidxMediaVersion = '1.4.1'
|
2024-06-27 23:40:26 +03:00
|
|
|
androidxTestVersion = "1.6.1"
|
2024-06-14 22:31:45 +03:00
|
|
|
appCompatVersion = '1.7.0'
|
2024-03-07 14:10:35 +03:00
|
|
|
checkerVersion = "3.21.2"
|
2024-08-18 23:51:35 +03:00
|
|
|
daggerVersion = "2.52"
|
2024-03-07 14:10:35 +03:00
|
|
|
documentScannerVersion = "1.1.1"
|
2024-06-28 00:11:47 +03:00
|
|
|
espressoVersion = "3.6.1"
|
2024-04-02 21:26:48 +03:00
|
|
|
jacoco_version = '0.8.12'
|
2024-10-22 19:53:15 +03:00
|
|
|
kotlin_version = '2.0.21'
|
2022-03-11 13:10:51 +03:00
|
|
|
markwonVersion = "4.6.2"
|
2023-01-09 19:02:35 +03:00
|
|
|
mockitoVersion = "4.11.0"
|
2022-11-28 05:02:33 +03:00
|
|
|
mockitoKotlinVersion = "4.1.0"
|
2024-10-23 19:43:07 +03:00
|
|
|
mockkVersion = "1.13.13"
|
2024-03-07 14:10:35 +03:00
|
|
|
prismVersion = "2.0.0"
|
2024-02-04 18:13:27 +03:00
|
|
|
roomVersion = "2.6.1"
|
2024-08-08 20:32:20 +03:00
|
|
|
workRuntime = "2.9.1"
|
2022-03-11 13:10:51 +03:00
|
|
|
|
|
|
|
ciBuild = System.getenv("CI") == "true"
|
2024-02-22 12:13:22 +03:00
|
|
|
shotTest = System.getenv("SHOT_TEST") == "true"
|
2022-03-11 13:10:51 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2022-04-29 17:03:00 +03:00
|
|
|
gradlePluginPortal()
|
2022-03-11 13:10:51 +03:00
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
}
|
2014-10-03 14:33:41 +04:00
|
|
|
repositories {
|
2018-10-24 09:44:44 +03:00
|
|
|
google()
|
2018-08-22 18:42:15 +03:00
|
|
|
mavenCentral()
|
2022-04-29 17:03:00 +03:00
|
|
|
maven { url "https://jitpack.io" }
|
2014-10-03 14:33:41 +04:00
|
|
|
}
|
2022-03-21 11:19:15 +03:00
|
|
|
}
|
|
|
|
|
2023-08-29 10:08:39 +03:00
|
|
|
tasks.register('clean', Delete) {
|
2022-03-21 11:19:15 +03:00
|
|
|
delete rootProject.buildDir
|
2022-03-22 16:30:54 +03:00
|
|
|
}
|
2022-10-07 18:44:52 +03:00
|
|
|
|
2023-08-29 10:08:39 +03:00
|
|
|
tasks.register('installGitHooks', Copy) {
|
2022-10-07 18:44:52 +03: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}"
|
|
|
|
}
|
|
|
|
}
|