diff --git a/android/build.gradle b/android/build.gradle index b22d1f74..b59ac392 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -23,6 +23,13 @@ rootProject.allprojects { } maven { url 'https://api.mapbox.com/downloads/v2/snapshots/maven' + authentication { + basic(BasicAuthentication) + } + credentials { + username = "mapbox" + password = System.getenv("SDK_REGISTRY_TOKEN") ?: project.property("SDK_REGISTRY_TOKEN") as String + } } } }