61 lines
1.8 KiB
Groovy
61 lines
1.8 KiB
Groovy
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
pluginManagement {
|
|
if (!gradle.root.hasProperty("mozconfig")){
|
|
apply from: file('../gradle/mozconfig.gradle')
|
|
} else {
|
|
gradle.ext.mozconfig = gradle.root.mozconfig
|
|
gradle.ext.configureMavenRepositories = gradle.root.ext.configureMavenRepositories
|
|
}
|
|
|
|
repositories {
|
|
gradle.configureMavenRepositories(delegate)
|
|
}
|
|
|
|
includeBuild("../gradle/plugins/conventions")
|
|
includeBuild("../android-components/plugins/publicsuffixlist")
|
|
includeBuild("../android-components/plugins/dependencies")
|
|
includeBuild("../android-components/plugins/config")
|
|
includeBuild("../gradle/plugins/nimbus-gradle-plugin")
|
|
}
|
|
|
|
plugins {
|
|
id 'org.mozilla.conventions.settings'
|
|
id 'mozac.DependenciesPlugin'
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
versionCatalogs {
|
|
libs {
|
|
from(files("../../../gradle/libs.versions.toml"))
|
|
}
|
|
}
|
|
}
|
|
|
|
ext.topsrcdir = rootProject.projectDir.absolutePath.minus("mobile/android/focus-android")
|
|
|
|
apply from: file('../shared-settings.gradle')
|
|
|
|
if (gradle.ext.mozconfig.substs.MOZ_APPSERVICES_IN_TREE) {
|
|
apply from: file("${topsrcdir}/third_party/application-services/settings.gradle")
|
|
}
|
|
|
|
include ':app'
|
|
|
|
mozilla {
|
|
disableAndroidComponentsTasks = true
|
|
}
|
|
|
|
def projectLocalProperties = file("local.properties").with { localPropertiesFile ->
|
|
def localProperties = new Properties()
|
|
if (localPropertiesFile.canRead()) {
|
|
localPropertiesFile.withInputStream { localProperties.load(it) }
|
|
}
|
|
localProperties
|
|
}
|
|
projectLocalProperties.each { prop ->
|
|
gradle.ext."localProperties.${prop.key}" = prop.value
|
|
}
|