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