From 3c36a6168dcda88cd5dc10e6f0bbbf43bf092cb3 Mon Sep 17 00:00:00 2001 From: Aleem Azhar Date: Mon, 13 Jan 2025 17:17:40 +0500 Subject: [PATCH] Remove the need for the MapBox Access token when building FHIR Core --- android/build.gradle.kts | 3 +-- android/mapbox.gradle.kts | 32 -------------------------------- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 android/mapbox.gradle.kts diff --git a/android/build.gradle.kts b/android/build.gradle.kts index 837b0237748..9459887508c 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -34,8 +34,6 @@ tasks.dokkaHtmlMultiModule { } } -apply(from = "mapbox.gradle.kts") - allprojects { repositories { gradlePluginPortal() @@ -46,6 +44,7 @@ allprojects { maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots") maven(url = "https://repo.spring.io/plugins-release") maven(url = "https://repository.liferay.com/nexus/content/repositories/public") + maven(url = "https://api.mapbox.com/downloads/v2/releases/maven") apply(plugin = "org.owasp.dependencycheck") tasks.dependencyCheckAggregate{ dependencyCheck.formats.add("XML") diff --git a/android/mapbox.gradle.kts b/android/mapbox.gradle.kts deleted file mode 100644 index cee1cefe39c..00000000000 --- a/android/mapbox.gradle.kts +++ /dev/null @@ -1,32 +0,0 @@ -import java.io.File -import java.io.FileInputStream -import java.io.FileNotFoundException -import java.io.InputStreamReader -import java.util.Properties - -fun readProperties(file: String): Properties { - val properties = Properties() - val localProperties = File(file) - if (localProperties.isFile) { - InputStreamReader(FileInputStream(localProperties), Charsets.UTF_8).use { reader - -> - properties.load(reader) - } - } - else throw FileNotFoundException("\u001B[34mFile $file not found\u001B[0m") - - return properties -} - -val mapboxSdkToken = System.getenv("MAPBOX_SDK_TOKEN") ?: readProperties((project.properties["localPropertiesFile"] ?: "${rootProject.projectDir}/local.properties").toString()).getProperty("MAPBOX_SDK_TOKEN") - -allprojects { - repositories { - maven { - url = uri("https://api.mapbox.com/downloads/v2/releases/maven") - credentials.username = "mapbox" - credentials.password = mapboxSdkToken - authentication.create("basic") - } - } -} \ No newline at end of file