-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle.kts
41 lines (35 loc) · 1.18 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
maven("https://androidx.dev/storage/compose-compiler/repository/")
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://androidx.dev/storage/compose-compiler/repository/")
val mapboxToken =
providers.gradleProperty("MAPBOX_SECRET_TOKEN").orNull
?: System.getenv("MAPBOX_SECRET_TOKEN")
if (mapboxToken != null) {
maven {
url = uri("https://api.mapbox.com/downloads/v2/releases/maven")
credentials.username = "mapbox"
credentials.password = mapboxToken
authentication.create<BasicAuthentication>("basic")
}
} else {
Logging.getLogger(Settings::class.java)
.warn(
"MAPBOX_SECRET_TOKEN not found, see https://docs.mapbox.com/android/maps/guides/install/#configure-credentials",
)
}
}
}
rootProject.name = "MBTA_App"
include(":androidApp")
include(":shared")