Skip to content

Commit 4fef493

Browse files
authored
chore: Updates the app level build.gradle in tutorials (#1754)
Edit the properties of the plugin to set propertiesFileName to secrets.properties.
1 parent 6ef2569 commit 4fef493

File tree

7 files changed

+22
-2
lines changed

7 files changed

+22
-2
lines changed

tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies {
3838

3939
secrets {
4040
// Optionally specify a different file name containing your secrets.
41-
// The plugin defaults to "local.properties"
41+
// If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
4242
propertiesFileName = "secrets.properties"
4343

4444
// A properties file containing default secret values. This file can be

tutorials/java/MapWithMarker/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ dependencies {
3535
}
3636

3737
secrets {
38+
// Optionally specify a different file name containing your secrets.
39+
// If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
40+
propertiesFileName = "secrets.properties"
41+
3842
// To add your Maps API key to this project:
3943
// 1. Open the root project's local.properties file
4044
// 2. Add this line, where YOUR_API_KEY is your API key:

tutorials/java/Polygons/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ dependencies {
3535
}
3636

3737
secrets {
38+
// Optionally specify a different file name containing your secrets.
39+
// If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
40+
propertiesFileName = "secrets.properties"
41+
3842
// To add your Maps API key to this project:
3943
// 1. Open the root project's local.properties file
4044
// 2. Add this line, where YOUR_API_KEY is your API key:

tutorials/java/StyledMap/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies {
4040

4141
secrets {
4242
// Optionally specify a different file name containing your secrets.
43-
// The plugin defaults to "local.properties"
43+
// If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
4444
propertiesFileName = "secrets.properties"
4545

4646
// A properties file containing default secret values. This file can be

tutorials/kotlin/CurrentPlaceDetailsOnMap/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ dependencies {
4848
}
4949

5050
secrets {
51+
// Optionally specify a different file name containing your secrets.
52+
// If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
53+
propertiesFileName = "secrets.properties"
54+
5155
// To add your Maps API key to this project:
5256
// 1. Open the root project's local.properties file
5357
// 2. Add this line, where YOUR_API_KEY is your API key:

tutorials/kotlin/MapWithMarker/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ dependencies {
4343
}
4444

4545
secrets {
46+
// Optionally specify a different file name containing your secrets.
47+
// If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
48+
propertiesFileName = "secrets.properties"
49+
4650
// To add your Maps API key to this project:
4751
// 1. Open the root project's local.properties file
4852
// 2. Add this line, where YOUR_API_KEY is your API key:

tutorials/kotlin/Polygons/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ dependencies {
4141
}
4242

4343
secrets {
44+
// Optionally specify a different file name containing your secrets.
45+
// If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
46+
propertiesFileName = "secrets.properties"
47+
4448
// To add your Maps API key to this project:
4549
// 1. Open the root project's local.properties file
4650
// 2. Add this line, where YOUR_API_KEY is your API key:

0 commit comments

Comments
 (0)