move mapbox auth back to build gradle

1.2-legacy
Jackson Rosenthal 2022-02-05 21:11:53 -05:00
rodzic d199b5437d
commit 9d5066bf9d
3 zmienionych plików z 28 dodań i 28 usunięć

Wyświetl plik

@ -127,9 +127,6 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.fragment:fragment-ktx:1.4.0'
implementation('com.mapbox.maps:android:10.2.0') {
exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-telemetry'
}
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
@ -169,6 +166,9 @@ dependencies {
// mapbox
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.1'
implementation('com.mapbox.maps:android:10.2.0') {
exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-telemetry'
}
// mapbox specifies a really old version of okhttp3 which causes lots of API warnings. trying a newer version
implementation 'com.squareup.okhttp3:okhttp:4.9.0'

Wyświetl plik

@ -33,6 +33,30 @@ buildscript {
}
}
allprojects {
repositories {
maven {
// Per https://docs.mapbox.com/android/maps/guides/install/ we now need to signin to download mapbox lib
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 = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: ""
}
}
google()
mavenCentral()
// jcenter()
maven { url 'https://jitpack.io' }
//maven { url "https://plugins.gradle.org/m2/" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

Wyświetl plik

@ -1,29 +1,5 @@
include ':app'
rootProject.name = 'Mesh Util'
rootProject.name='Mesh Util'
include ':geeksville-androidlib'
project(':geeksville-androidlib').projectDir = new File('geeksville-androidlib')
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
google()
mavenCentral()
// jcenter() // Warning: this repository is going to shut down soon
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 = System.properties["MAPBOX_DOWNLOADS_TOKEN"]
}
}
maven { url 'https://jitpack.io' }
}
}