From 7013076d0e7988520c9e85353eec8857fa5c1ba1 Mon Sep 17 00:00:00 2001 From: Chris Arriola Date: Fri, 15 Apr 2022 09:33:51 -0700 Subject: [PATCH 1/2] chore: Add maps_android_compose_dependency region tag. Change-Id: I1569e7586eaefa51c05a15d6bf300809dbdece4e --- app/build.gradle | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index df25e3dc..980113f6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -36,8 +36,9 @@ android { } } +// [START maps_android_compose_dependency] dependencies { - implementation project(':maps-compose') + // [START_EXCLUDE silent] implementation 'androidx.activity:activity-compose:1.4.0' implementation "androidx.compose.foundation:foundation:$compose_version" implementation "androidx.compose.material:material:$compose_version" @@ -54,7 +55,18 @@ dependencies { androidTestImplementation 'junit:junit:4.13.2' androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0" + + // For debugging purposes, uncomment the implementation project declaration + // so that the sample app can use the local state of the `maps-compose` + // module. + // However, this should remain uncommented on the `main` branch so that + // the maven declaration of Maps Compose can be used as a snippet. + // implementation project(':maps-compose') + // [END_EXCLUDE silent] + + implementation "com.google.maps.android:maps-compose:2.1.0" } +// [END maps_android_compose_dependency] secrets { // To add your Maps API key to this project: From 13da7f7ecd7927a08a0d801b60fc634925401c75 Mon Sep 17 00:00:00 2001 From: Chris Arriola Date: Fri, 15 Apr 2022 09:36:42 -0700 Subject: [PATCH 2/2] Fix spacing. Change-Id: Ia2eb9574e3137472d7ec8448a70adfc74992b52d --- app/build.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 980113f6..dd6cbec4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,7 +63,6 @@ dependencies { // the maven declaration of Maps Compose can be used as a snippet. // implementation project(':maps-compose') // [END_EXCLUDE silent] - implementation "com.google.maps.android:maps-compose:2.1.0" } // [END maps_android_compose_dependency] @@ -73,4 +72,4 @@ secrets { // 1. Add this line to your local.properties file, where YOUR_API_KEY is your API key: // MAPS_API_KEY=YOUR_API_KEY defaultPropertiesFileName 'local.defaults.properties' -} \ No newline at end of file +}