Skip to content

Commit 5ea1951

Browse files
kikosodkhawk
andauthored
fix: fixed secrets in wearable module (#1788)
* fix: import rememberMarkerState and use the marker state correctly * fix: fixed secrets in wearable module --------- Co-authored-by: dkhawk <107309+dkhawk@users.noreply.github.com>
1 parent 5095437 commit 5ea1951

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

WearOS/Wearable/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,13 @@ dependencies {
6565
// [END maps_wear_os_dependencies]
6666

6767
secrets {
68+
// To add your Maps API key to this project:
69+
// 1. If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
70+
// 2. Add this line, where YOUR_API_KEY is your API key:
71+
// MAPS_API_KEY=YOUR_API_KEY
72+
propertiesFileName = "secrets.properties"
73+
74+
// A properties file containing default secret values. This file can be
75+
// checked in version control.
6876
defaultPropertiesFileName = "local.defaults.properties"
6977
}

WearOS/Wearable/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<!-- API key for the Android Maps API v2. The value is defined in local.properties. -->
2929
<meta-data android:name="com.google.android.geo.API_KEY"
30-
android:value="${GOOGLE_MAPS_API_KEY}"/>
30+
android:value="${MAPS_API_KEY}"/>
3131
<meta-data
3232
android:name="com.google.android.wearable.standalone"
3333
android:value="true" />

WearOS/local.defaults.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
GOOGLE_MAPS_API_KEY=DEFAULT_API_KEY
1+
MAPS_API_KEY=DEFAULT_API_KEY

0 commit comments

Comments
 (0)