2019-10-02 12:41:22 +00:00
|
|
|
/*
|
2021-03-09 09:15:27 +00:00
|
|
|
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
2019-10-02 14:40:07 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
2019-10-02 12:41:22 +00:00
|
|
|
*/
|
2022-03-13 12:11:01 +00:00
|
|
|
@file:Suppress("UnstableApiUsage")
|
2021-03-09 09:23:11 +00:00
|
|
|
|
2021-12-10 18:42:54 +00:00
|
|
|
rootProject.name = "APS"
|
|
|
|
|
2021-04-16 15:38:51 +00:00
|
|
|
// Plugin repositories
|
2020-09-20 11:24:38 +00:00
|
|
|
pluginManagement {
|
2021-03-09 09:23:11 +00:00
|
|
|
repositories {
|
2021-11-28 20:11:04 +00:00
|
|
|
includeBuild("build-logic")
|
2023-12-17 09:12:40 +00:00
|
|
|
google {
|
|
|
|
content {
|
2022-05-09 07:46:27 +00:00
|
|
|
includeGroup("androidx.databinding")
|
2023-12-17 09:12:40 +00:00
|
|
|
includeGroupByRegex("com.android.*")
|
2022-05-09 07:46:27 +00:00
|
|
|
includeGroup("com.google.testing.platform")
|
|
|
|
}
|
|
|
|
}
|
2022-05-25 12:29:04 +00:00
|
|
|
exclusiveContent {
|
2022-08-23 09:51:22 +00:00
|
|
|
forRepository { gradlePluginPortal() }
|
2022-05-25 12:29:04 +00:00
|
|
|
filter {
|
2024-04-03 05:53:56 +00:00
|
|
|
includeModule("com.gradle", "develocity-gradle-plugin")
|
|
|
|
includeModule("com.gradle.develocity", "com.gradle.develocity.gradle.plugin")
|
2022-10-21 06:32:23 +00:00
|
|
|
includeModule("me.tylerbwong.gradle.metalava", "plugin")
|
2023-07-12 09:54:40 +00:00
|
|
|
includeModule(
|
|
|
|
"org.gradle.toolchains.foojay-resolver-convention",
|
|
|
|
"org.gradle.toolchains.foojay-resolver-convention.gradle.plugin",
|
|
|
|
)
|
|
|
|
includeModule("org.gradle.toolchains", "foojay-resolver")
|
2022-05-25 12:29:04 +00:00
|
|
|
}
|
|
|
|
}
|
2022-07-07 08:58:45 +00:00
|
|
|
exclusiveContent {
|
|
|
|
forRepository { maven("https://storage.googleapis.com/r8-releases/raw") }
|
|
|
|
filter { includeModule("com.android.tools", "r8") }
|
|
|
|
}
|
2024-01-08 17:54:09 +00:00
|
|
|
mavenCentral { mavenContent { releasesOnly() } }
|
2021-10-09 07:43:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-12 09:54:40 +00:00
|
|
|
plugins {
|
2024-01-12 18:36:14 +00:00
|
|
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
2024-05-17 21:53:59 +00:00
|
|
|
id("com.gradle.develocity") version "3.17.4"
|
2023-07-12 09:54:40 +00:00
|
|
|
}
|
2022-05-25 12:29:04 +00:00
|
|
|
|
2024-04-03 05:53:56 +00:00
|
|
|
develocity {
|
2022-05-25 12:29:04 +00:00
|
|
|
buildScan {
|
2024-04-14 17:57:40 +00:00
|
|
|
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
|
2024-04-03 05:53:56 +00:00
|
|
|
termsOfUseAgree = if (System.getenv("GITHUB_WORKFLOW").isNullOrEmpty()) "no" else "yes"
|
|
|
|
publishing.onlyIf { !System.getenv("GITHUB_WORKFLOW").isNullOrEmpty() }
|
2022-05-25 12:29:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-09 07:43:14 +00:00
|
|
|
dependencyResolutionManagement {
|
|
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
|
|
repositories {
|
2024-01-08 17:54:09 +00:00
|
|
|
google {
|
|
|
|
content {
|
2023-12-17 09:12:40 +00:00
|
|
|
includeGroupByRegex("androidx.*")
|
|
|
|
includeGroupByRegex("com.android.*")
|
2022-05-09 07:46:27 +00:00
|
|
|
includeGroup("com.google.android.gms")
|
|
|
|
includeModule("com.google.android.material", "material")
|
|
|
|
}
|
|
|
|
}
|
2022-07-07 08:58:45 +00:00
|
|
|
exclusiveContent {
|
|
|
|
forRepository { maven("https://storage.googleapis.com/r8-releases/raw") }
|
|
|
|
filter { includeModule("com.android.tools", "r8") }
|
|
|
|
}
|
2023-12-06 19:09:09 +00:00
|
|
|
maven("https://androidx.dev/storage/compose-compiler/repository") {
|
|
|
|
name = "Compose Compiler Snapshots"
|
|
|
|
content { includeGroup("androidx.compose.compiler") }
|
2023-08-24 04:50:11 +00:00
|
|
|
}
|
2024-01-08 17:54:09 +00:00
|
|
|
mavenCentral { mavenContent { releasesOnly() } }
|
2021-03-09 09:23:11 +00:00
|
|
|
}
|
2020-09-20 11:24:38 +00:00
|
|
|
}
|
2021-11-28 20:11:04 +00:00
|
|
|
|
|
|
|
// Experimental features
|
|
|
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
|
|
|
2022-05-16 08:32:00 +00:00
|
|
|
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
|
|
|
|
|
2021-11-28 20:11:04 +00:00
|
|
|
// Modules
|
|
|
|
include("app")
|
|
|
|
|
|
|
|
include("autofill-parser")
|
|
|
|
|
2021-12-09 04:37:54 +00:00
|
|
|
include("coroutine-utils")
|
|
|
|
|
2023-08-09 21:51:47 +00:00
|
|
|
include("crypto:common")
|
2021-11-28 20:11:04 +00:00
|
|
|
|
2023-08-09 21:51:47 +00:00
|
|
|
include("crypto:pgpainless")
|
2021-11-28 20:11:04 +00:00
|
|
|
|
2023-08-09 21:51:47 +00:00
|
|
|
include("format:common")
|
2021-11-28 20:11:04 +00:00
|
|
|
|
2021-12-09 16:30:33 +00:00
|
|
|
include("passgen:diceware")
|
2022-01-13 16:43:53 +00:00
|
|
|
|
2022-01-26 17:11:04 +00:00
|
|
|
include("passgen:random")
|
|
|
|
|
2022-03-13 12:11:01 +00:00
|
|
|
include("sentry-stub")
|
2022-07-06 15:47:55 +00:00
|
|
|
|
2023-08-09 21:51:47 +00:00
|
|
|
include("ui:compose")
|