Files prefix changed from MGL to MLN (#919)

This commit is contained in:
Alex Cristici
2023-03-21 14:18:26 +02:00
committed by GitHub
parent 35a8752083
commit d72cd766c8
467 changed files with 13884 additions and 13872 deletions

View File

@@ -89,7 +89,7 @@ With buck build support, Android Studio can complain about duplicate source file
_The test application (used for development purposes) uses MapTiler vector tiles, which require a MapTiler account and API key._
With the first gradle invocation, gradle will take the value of the `MGL_API_KEY` environment variable and save it to `MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml`. If the environment variable wasn't set, you can edit `developer-config.xml` manually and add your api key to the `api_key` resource.
With the first gradle invocation, gradle will take the value of the `MLN_API_KEY` environment variable and save it to `MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml`. If the environment variable wasn't set, you can edit `developer-config.xml` manually and add your api key to the `api_key` resource.
## Running project

View File

@@ -71,7 +71,7 @@ open class MapLibreApplication : MultiDexApplication() {
private const val API_KEY_NOT_SET_MESSAGE =
(
"In order to run the Test App you need to set a valid " +
"API key. During development, you can set the MGL_API_KEY environment variable for the SDK to " +
"API key. During development, you can set the MLN_API_KEY environment variable for the SDK to " +
"automatically include it in the Test App. Otherwise, you can manually include it in the " +
"res/values/developer-config.xml file in the MapboxGLAndroidSDKTestApp folder."
)

View File

@@ -5,9 +5,9 @@
task apiKey {
def tokenFile = new File("${projectDir}/src/main/res/values/developer-config.xml")
if (!tokenFile.exists()) {
String apiKey = "$System.env.MGL_API_KEY"
String apiKey = "$System.env.MLN_API_KEY"
if (apiKey == "null") {
System.out.println("You should set the MGL_API_KEY environment variable.")
System.out.println("You should set the MLN_API_KEY environment variable.")
apiKey = "YOUR_API_KEY_GOES_HERE"
}
String tokenFileContents = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +