Skip to content

Commit 331ba7c

Browse files
authored
Merge branch 'main' into wescpy
2 parents 070bf6e + f1312d9 commit 331ba7c

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: gradle/actions/wrapper-validation@v4
3636

3737
- name: Set up JDK 17
38-
uses: actions/setup-java@v4.2.1
38+
uses: actions/setup-java@v4.6.0
3939
with:
4040
java-version: '21'
4141
distribution: 'adopt'

.github/workflows/instrumentation-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: gradle/actions/wrapper-validation@v4
3939

4040
- name: Set up JDK 17
41-
uses: actions/setup-java@v4.2.1
41+
uses: actions/setup-java@v4.6.0
4242
with:
4343
java-version: '21'
4444
distribution: 'adopt'

.github/workflows/lint-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/checkout@v3
3232

3333
- name: Set up JDK 17
34-
uses: actions/setup-java@v4.2.1
34+
uses: actions/setup-java@v4.6.0
3535
with:
3636
distribution: 'adopt'
3737
java-version: '17'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
2929
- uses: gradle/actions/wrapper-validation@v4
3030
- name: Set up JDK 21
31-
uses: actions/setup-java@v4.2.1
31+
uses: actions/setup-java@v4.6.0
3232
with:
3333
java-version: '21'
3434
distribution: 'adopt'

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: gradle/actions/wrapper-validation@v4
3939

4040
- name: Set up JDK 17
41-
uses: actions/setup-java@v4.2.1
41+
uses: actions/setup-java@v4.6.0
4242
with:
4343
java-version: '21'
4444
distribution: 'temurin'

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ You no longer need to specify the Maps SDK for Android or its Utility Library as
2929

3030
```groovy
3131
dependencies {
32-
implementation 'com.google.maps.android:maps-compose:6.4.0'
32+
implementation 'com.google.maps.android:maps-compose:6.4.1'
3333
3434
// Optionally, you can include the Compose utils library for Clustering,
3535
// Street View metadata checks, etc.
36-
implementation 'com.google.maps.android:maps-compose-utils:6.4.0'
36+
implementation 'com.google.maps.android:maps-compose-utils:6.4.1'
3737
3838
// Optionally, you can include the widgets library for ScaleBar, etc.
39-
implementation 'com.google.maps.android:maps-compose-widgets:6.4.0'
39+
implementation 'com.google.maps.android:maps-compose-widgets:6.4.1'
4040
}
4141
```
4242

app/src/main/java/com/google/maps/android/compose/markerexamples/draggablemarkerscollectionwithpolygon/DraggableMarkersCollectionWithPolygonActivity.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,7 @@ private fun LocationMarker(
187187
private fun Polygon(markerPositionsModel: () -> List<() -> LatLng>) {
188188
val movingMarkerPositions = markerPositionsModel()
189189

190-
if (movingMarkerPositions.isNotEmpty()) {
191-
val markerPositions = movingMarkerPositions.map { it() }
190+
val markerPositions = movingMarkerPositions.map { it() }
192191

193-
Polygon(markerPositions)
194-
}
192+
Polygon(markerPositions)
195193
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ val projectArtifactId by extra { project: Project ->
3232

3333
allprojects {
3434
group = "com.google.maps.android"
35-
version = "6.4.0"
35+
version = "6.4.1"
3636
val projectArtifactId by extra { project.name }
3737
}
3838

maps-compose/src/main/java/com/google/maps/android/compose/Polygon.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public fun Polygon(
6868
zIndex: Float = 0f,
6969
onClick: (Polygon) -> Unit = {}
7070
) {
71+
if (points.isEmpty()) return // avoid SDK crash
72+
7173
val mapApplier = currentComposer.applier as MapApplier?
7274
ComposeNode<PolygonNode, MapApplier>(
7375
factory = {

0 commit comments

Comments
 (0)