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 0d7df1638..cadc32bf4 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 51d60abdc..012017a53 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 dacce782d..8ed67a127 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 764eeb5a2..6ccc9f1de 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 3d62c2d98..11eaf1cd6 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 c9f75e53e..7ea9c3ded 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 0a593a6af..3d200a093 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: