diff --git a/tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle.kts b/tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle.kts index b998621cc..b8fe20cfd 100644 --- a/tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle.kts +++ b/tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle.kts @@ -57,6 +57,13 @@ dependencies { } secrets { + // To add your Maps API key to this project: + // 1. If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + // 2. Add this line, where YOUR_API_KEY is your API key: + // MAPS_API_KEY=YOUR_API_KEY propertiesFileName = "secrets.properties" + + // A properties file containing default secret values. This file can be + // checked in version control. defaultPropertiesFileName = "local.defaults.properties" } diff --git a/tutorials/java/CurrentPlaceDetailsOnMap/local.defaults.properties b/tutorials/java/CurrentPlaceDetailsOnMap/local.defaults.properties index 316c095d2..d0782b727 100644 --- a/tutorials/java/CurrentPlaceDetailsOnMap/local.defaults.properties +++ b/tutorials/java/CurrentPlaceDetailsOnMap/local.defaults.properties @@ -1,2 +1,2 @@ MAPS_API_KEY=DEFAULT_API_KEY -PLACES_API_KEY=YOUR_API_KEY +PLACES_API_KEY=DEFAULT_API_KEY diff --git a/tutorials/java/MapWithMarker/app/build.gradle.kts b/tutorials/java/MapWithMarker/app/build.gradle.kts index 7625efe65..cceb4b9e4 100644 --- a/tutorials/java/MapWithMarker/app/build.gradle.kts +++ b/tutorials/java/MapWithMarker/app/build.gradle.kts @@ -55,5 +55,13 @@ dependencies { } secrets { + // To add your Maps API key to this project: + // 1. If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + // 2. Add this line, where YOUR_API_KEY is your API key: + // MAPS_API_KEY=YOUR_API_KEY + propertiesFileName = "secrets.properties" + + // A properties file containing default secret values. This file can be + // checked in version control. defaultPropertiesFileName = "local.defaults.properties" } diff --git a/tutorials/java/Polygons/app/build.gradle.kts b/tutorials/java/Polygons/app/build.gradle.kts index d34aaaddd..38b925027 100644 --- a/tutorials/java/Polygons/app/build.gradle.kts +++ b/tutorials/java/Polygons/app/build.gradle.kts @@ -55,5 +55,13 @@ dependencies { } secrets { + // To add your Maps API key to this project: + // 1. If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + // 2. Add this line, where YOUR_API_KEY is your API key: + // MAPS_API_KEY=YOUR_API_KEY + propertiesFileName = "secrets.properties" + + // A properties file containing default secret values. This file can be + // checked in version control. defaultPropertiesFileName = "local.defaults.properties" } diff --git a/tutorials/java/StyledMap/app/build.gradle.kts b/tutorials/java/StyledMap/app/build.gradle.kts index 4a53b2b73..37e621e2f 100644 --- a/tutorials/java/StyledMap/app/build.gradle.kts +++ b/tutorials/java/StyledMap/app/build.gradle.kts @@ -60,6 +60,13 @@ dependencies { } secrets { + // To add your Maps API key to this project: + // 1. If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + // 2. Add this line, where YOUR_API_KEY is your API key: + // MAPS_API_KEY=YOUR_API_KEY propertiesFileName = "secrets.properties" + + // A properties file containing default secret values. This file can be + // checked in version control. defaultPropertiesFileName = "local.defaults.properties" } diff --git a/tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle.kts b/tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle.kts index cd2ff02f1..b7722def3 100644 --- a/tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle.kts +++ b/tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle.kts @@ -69,6 +69,13 @@ dependencies { } secrets { + // To add your Maps API key to this project: + // 1. If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + // 2. Add this line, where YOUR_API_KEY is your API key: + // MAPS_API_KEY=YOUR_API_KEY propertiesFileName = "secrets.properties" + + // A properties file containing default secret values. This file can be + // checked in version control. defaultPropertiesFileName = "local.defaults.properties" } diff --git a/tutorials/kotlin/MapWithMarker/app/build.gradle.kts b/tutorials/kotlin/MapWithMarker/app/build.gradle.kts index 5cb141688..6a66a607f 100644 --- a/tutorials/kotlin/MapWithMarker/app/build.gradle.kts +++ b/tutorials/kotlin/MapWithMarker/app/build.gradle.kts @@ -64,6 +64,13 @@ dependencies { } secrets { + // To add your Maps API key to this project: + // 1. If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + // 2. Add this line, where YOUR_API_KEY is your API key: + // MAPS_API_KEY=YOUR_API_KEY propertiesFileName = "secrets.properties" + + // A properties file containing default secret values. This file can be + // checked in version control. defaultPropertiesFileName = "local.defaults.properties" } \ No newline at end of file diff --git a/tutorials/kotlin/Polygons/app/build.gradle.kts b/tutorials/kotlin/Polygons/app/build.gradle.kts index 2e55af33e..3e8b70b17 100644 --- a/tutorials/kotlin/Polygons/app/build.gradle.kts +++ b/tutorials/kotlin/Polygons/app/build.gradle.kts @@ -64,6 +64,13 @@ dependencies { } secrets { + // To add your Maps API key to this project: + // 1. If the secrets.properties file does not exist, create it in the same folder as the local.properties file. + // 2. Add this line, where YOUR_API_KEY is your API key: + // MAPS_API_KEY=YOUR_API_KEY propertiesFileName = "secrets.properties" + + // A properties file containing default secret values. This file can be + // checked in version control. defaultPropertiesFileName = "local.defaults.properties" }