2025-09-18 17:54:51 +02:00
|
|
|
/*
|
|
|
|
|
* Nextcloud - Android Client
|
|
|
|
|
*
|
|
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
2025-09-18 18:43:03 +02:00
|
|
|
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper.ozturk@nextcloud.com>
|
2025-09-18 17:54:51 +02:00
|
|
|
* SPDX-FileCopyrightText: 2023 Tobias Kaminsky <tobias@kaminsky.me>
|
|
|
|
|
* SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
|
2025-09-18 18:43:03 +02:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
|
2025-09-18 17:54:51 +02:00
|
|
|
*/
|
|
|
|
|
buildscript {
|
|
|
|
|
ext {
|
2025-10-05 16:07:21 +02:00
|
|
|
androidLibraryVersion = "2.22.0"
|
2025-09-18 18:43:03 +02:00
|
|
|
androidCommonLibraryVersion = "0.28.0"
|
|
|
|
|
androidPluginVersion = '8.13.0'
|
|
|
|
|
androidxMediaVersion = "1.5.1"
|
|
|
|
|
androidxTestVersion = "1.7.0"
|
|
|
|
|
appCompatVersion = "1.7.1"
|
2025-09-18 17:54:51 +02:00
|
|
|
checkerVersion = "3.21.2"
|
2025-09-18 18:43:03 +02:00
|
|
|
daggerVersion = "2.57.1"
|
|
|
|
|
documentScannerVersion = "1.2.3"
|
|
|
|
|
espressoVersion = "3.6.1"
|
|
|
|
|
jacoco_version = "0.8.13"
|
|
|
|
|
kotlin_version = "2.2.20"
|
2025-09-18 17:54:51 +02:00
|
|
|
markwonVersion = "4.6.2"
|
|
|
|
|
mockitoVersion = "4.11.0"
|
|
|
|
|
mockitoKotlinVersion = "4.1.0"
|
2025-09-18 18:43:03 +02:00
|
|
|
mockkVersion = "1.14.5"
|
2025-09-18 17:54:51 +02:00
|
|
|
prismVersion = "2.0.0"
|
2025-10-05 16:07:21 +02:00
|
|
|
roomVersion = "2.7.2"
|
2025-09-18 18:43:03 +02:00
|
|
|
workRuntime = "2.10.3"
|
2025-09-18 17:54:51 +02:00
|
|
|
|
|
|
|
|
ciBuild = System.getenv("CI") == "true"
|
|
|
|
|
shotTest = System.getenv("SHOT_TEST") == "true"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
|
buildscript {
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
2025-09-18 18:43:03 +02:00
|
|
|
gradlePluginPortal()
|
2025-09-18 17:54:51 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
2025-09-18 18:43:03 +02:00
|
|
|
maven { url = "https://jitpack.io" }
|
2025-09-18 17:54:51 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-18 18:43:03 +02:00
|
|
|
tasks.register("clean", Delete) {
|
|
|
|
|
delete rootProject.layout.buildDirectory
|
2025-09-18 17:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
2025-09-18 18:43:03 +02:00
|
|
|
tasks.register("installGitHooks", Copy) {
|
2025-09-18 17:54:51 +02:00
|
|
|
def sourceFolder = "${rootProject.projectDir}/scripts/hooks"
|
|
|
|
|
def destFolder = "${rootProject.projectDir}/.git/hooks"
|
|
|
|
|
|
|
|
|
|
description = "Install git hooks"
|
|
|
|
|
|
|
|
|
|
from(sourceFolder) {
|
2025-09-18 18:43:03 +02:00
|
|
|
include "*"
|
2025-09-18 17:54:51 +02:00
|
|
|
}
|
|
|
|
|
into destFolder
|
|
|
|
|
|
|
|
|
|
eachFile { file ->
|
|
|
|
|
println "${sourceFolder}/${file.relativeSourcePath} -> ${destFolder}/${file.path}"
|
|
|
|
|
}
|
|
|
|
|
}
|