From b90ec32e36644fba6eedefd361b1386f21e89bc8 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Thu, 6 May 2021 00:44:00 +0530 Subject: Add MapBox sdk --- build.gradle | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'build.gradle') 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 ?: "" + } + } + } } -- cgit v1.2.1