summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorAmit Kumar <amitkma@e.email>2021-05-06 00:44:00 +0530
committerAmit Kumar <amitkma@e.email>2021-05-06 00:44:00 +0530
commitb90ec32e36644fba6eedefd361b1386f21e89bc8 (patch)
tree79af512981f5b0890d600d87053329986779372e /build.gradle
parentc85a38c0b1dcedfb149e3a084573cc48bdbb7400 (diff)
Add MapBox sdk
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle24
1 files changed, 21 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index 2dfd140..7cd5cd6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -27,15 +27,19 @@ buildscript {
}
ext.buildConfig.version['code'] = buildConfig.version.major * 1000000 + buildConfig.version.minor * 10000 + buildConfig.version.patch * 100 + buildNumber
+ // Load properties either from local.properties or system environment (on CI).
+ apply from: rootProject.file('load-properties.gradle')
+
+ // Load dependencies as extra properties.
apply from: rootProject.file('dependencies.gradle')
+
repositories {
google()
mavenCentral()
- jcenter()
}
dependencies {
- classpath Libs.androidGradlePlugin
+ classpath 'com.android.tools.build:gradle:4.2.0'
classpath Libs.Kotlin.gradlePlugin
// NOTE: Do not place your application dependencies here; they belong
@@ -52,7 +56,21 @@ allprojects {
repositories {
google()
mavenCentral()
- jcenter()
+
+ maven {
+ url 'https://api.mapbox.com/downloads/v2/releases/maven'
+ authentication {
+ basic(BasicAuthentication)
+ }
+ credentials {
+ // Do not change the username below.
+ // This should always be `mapbox` (not your username).
+ username = 'mapbox'
+ // Use the secret token you stored in gradle.properties as the password
+ password = MAPBOX_SECRET_KEY ?: ""
+ }
+ }
+
}
}