From 4fef493e6fa14a8a0e3e8c5fa7f94ac5b1541efc Mon Sep 17 00:00:00 2001 From: saranvd Date: Fri, 16 Aug 2024 11:08:21 -0700 Subject: [PATCH] chore: Updates the app level build.gradle in tutorials (#1754) Edit the properties of the plugin to set propertiesFileName to secrets.properties. --- tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle | 2 +- tutorials/java/MapWithMarker/app/build.gradle | 4 ++++ tutorials/java/Polygons/app/build.gradle | 4 ++++ tutorials/java/StyledMap/app/build.gradle | 2 +- tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle | 4 ++++ tutorials/kotlin/MapWithMarker/app/build.gradle | 4 ++++ tutorials/kotlin/Polygons/app/build.gradle | 4 ++++ 7 files changed, 22 insertions(+), 2 deletions(-) diff --git a/tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle b/tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle index 0d7df163..cadc32bf 100644 --- a/tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle +++ b/tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle @@ -38,7 +38,7 @@ dependencies { secrets { // Optionally specify a different file name containing your secrets. - // The plugin defaults to "local.properties" + // If the secrets.properties file does not exist, create it in the same folder as the local.properties file. propertiesFileName = "secrets.properties" // A properties file containing default secret values. This file can be diff --git a/tutorials/java/MapWithMarker/app/build.gradle b/tutorials/java/MapWithMarker/app/build.gradle index 51d60abd..012017a5 100644 --- a/tutorials/java/MapWithMarker/app/build.gradle +++ b/tutorials/java/MapWithMarker/app/build.gradle @@ -35,6 +35,10 @@ dependencies { } secrets { + // Optionally specify a different file name containing your secrets. + // If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + propertiesFileName = "secrets.properties" + // To add your Maps API key to this project: // 1. Open the root project's local.properties file // 2. Add this line, where YOUR_API_KEY is your API key: diff --git a/tutorials/java/Polygons/app/build.gradle b/tutorials/java/Polygons/app/build.gradle index dacce782..8ed67a12 100644 --- a/tutorials/java/Polygons/app/build.gradle +++ b/tutorials/java/Polygons/app/build.gradle @@ -35,6 +35,10 @@ dependencies { } secrets { + // Optionally specify a different file name containing your secrets. + // If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + propertiesFileName = "secrets.properties" + // To add your Maps API key to this project: // 1. Open the root project's local.properties file // 2. Add this line, where YOUR_API_KEY is your API key: diff --git a/tutorials/java/StyledMap/app/build.gradle b/tutorials/java/StyledMap/app/build.gradle index 764eeb5a..6ccc9f1d 100644 --- a/tutorials/java/StyledMap/app/build.gradle +++ b/tutorials/java/StyledMap/app/build.gradle @@ -40,7 +40,7 @@ dependencies { secrets { // Optionally specify a different file name containing your secrets. - // The plugin defaults to "local.properties" + // If the secrets.properties file does not exist, create it in the same folder as the local.properties file. propertiesFileName = "secrets.properties" // A properties file containing default secret values. This file can be diff --git a/tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle b/tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle index 3d62c2d9..11eaf1cd 100644 --- a/tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle +++ b/tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle @@ -48,6 +48,10 @@ dependencies { } secrets { + // Optionally specify a different file name containing your secrets. + // If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + propertiesFileName = "secrets.properties" + // To add your Maps API key to this project: // 1. Open the root project's local.properties file // 2. Add this line, where YOUR_API_KEY is your API key: diff --git a/tutorials/kotlin/MapWithMarker/app/build.gradle b/tutorials/kotlin/MapWithMarker/app/build.gradle index c9f75e53..7ea9c3de 100644 --- a/tutorials/kotlin/MapWithMarker/app/build.gradle +++ b/tutorials/kotlin/MapWithMarker/app/build.gradle @@ -43,6 +43,10 @@ dependencies { } secrets { + // Optionally specify a different file name containing your secrets. + // If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + propertiesFileName = "secrets.properties" + // To add your Maps API key to this project: // 1. Open the root project's local.properties file // 2. Add this line, where YOUR_API_KEY is your API key: diff --git a/tutorials/kotlin/Polygons/app/build.gradle b/tutorials/kotlin/Polygons/app/build.gradle index 0a593a6a..3d200a09 100644 --- a/tutorials/kotlin/Polygons/app/build.gradle +++ b/tutorials/kotlin/Polygons/app/build.gradle @@ -41,6 +41,10 @@ dependencies { } secrets { + // Optionally specify a different file name containing your secrets. + // If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + propertiesFileName = "secrets.properties" + // To add your Maps API key to this project: // 1. Open the root project's local.properties file // 2. Add this line, where YOUR_API_KEY is your API key: