Skip to content

Commit

Permalink
fix: fixed secrets in wearable module (#1788)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
kikoso and dkhawk authored Aug 30, 2024
1 parent 5095437 commit 5ea1951
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions WearOS/Wearable/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,13 @@ dependencies {
// [END maps_wear_os_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"
}
2 changes: 1 addition & 1 deletion WearOS/Wearable/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<!-- API key for the Android Maps API v2. The value is defined in local.properties. -->
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="${GOOGLE_MAPS_API_KEY}"/>
android:value="${MAPS_API_KEY}"/>
<meta-data
android:name="com.google.android.wearable.standalone"
android:value="true" />
Expand Down
2 changes: 1 addition & 1 deletion WearOS/local.defaults.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GOOGLE_MAPS_API_KEY=DEFAULT_API_KEY
MAPS_API_KEY=DEFAULT_API_KEY

0 comments on commit 5ea1951

Please sign in to comment.