Skip to content

Commit ad88272

Browse files
authored
Merge branch 'main' into build/migration_ui_package
2 parents 624123a + c542c6d commit ad88272

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1272
-229
lines changed

.github/header-checker-lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ sourceFileExtensions:
2727
- 'ts'
2828
- 'js'
2929
- 'java'
30-
- 'html'
3130
- 'txt'
3231
- 'kt'
3332
- 'kts'

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ 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@v5
3939
with:
4040
java-version: '17'
4141
distribution: 'temurin'
4242
- name: Install Go
43-
uses: actions/setup-go@v5
43+
uses: actions/setup-go@v6
4444
with:
4545
go-version: '1.20'
4646

4747
# Run dokka and create tar
4848
- name: Generate documentation
4949
run: |
50-
./gradlew dokkaHtml
50+
./gradlew dokkaGenerate
5151
5252
echo "Creating tar for generated docs"
5353
cd $GITHUB_WORKSPACE/library/build/dokka/html && tar cvf ~/android-maps-utils-docs.tar .

.github/workflows/lint-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v5
2929

3030
- name: Set up JDK 17
31-
uses: actions/setup-java@v3
31+
uses: actions/setup-java@v5
3232
with:
3333
distribution: 'adopt'
3434
java-version: '17'

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
2929
- name: Set up JDK 17
30-
uses: actions/setup-java@v4.2.1
30+
uses: actions/setup-java@v5
3131
with:
3232
java-version: '17'
3333
distribution: 'temurin'
@@ -51,12 +51,12 @@ jobs:
5151
SONATYPE_TOKEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASSWORD }}
5252
SONATYPE_TOKEN_USERNAME: ${{ secrets.SONATYPE_TOKEN }}
5353

54-
- uses: actions/setup-node@v4
54+
- uses: actions/setup-node@v5
5555
with:
5656
node-version: '14'
5757

5858
- name: Semantic Release
59-
uses: cycjimmy/semantic-release-action@v4.2.2
59+
uses: cycjimmy/semantic-release-action@v5.0.0
6060
with:
6161
extra_plugins: |
6262
"@semantic-release/[email protected]"

.github/workflows/report.yml

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

3939
- name: Set up JDK 17
40-
uses: actions/setup-java@v4.2.1
40+
uses: actions/setup-java@v5
4141
with:
4242
java-version: '17'
4343
distribution: 'temurin'

.github/workflows/test.yml

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

3939
- name: Set up JDK 17
40-
uses: actions/setup-java@v4.2.1
40+
uses: actions/setup-java@v5
4141
with:
4242
java-version: '17'
4343
distribution: 'temurin'

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies {
4545
// Utilities for Maps SDK for Android (requires Google Play Services)
4646
// You do not need to add a separate dependency for the Maps SDK for Android
4747
// since this library builds in the compatible version of the Maps SDK.
48-
implementation 'com.google.maps.android:android-maps-utils:3.16.0'
48+
implementation 'com.google.maps.android:android-maps-utils:3.19.1'
4949
5050
// Optionally add the Kotlin Extensions (KTX) for full Kotlin language support
5151
// See latest version at https://github.com/googlemaps/android-maps-ktx
@@ -65,6 +65,27 @@ To run the demo app, ensure you've met the requirements above then:
6565
1. Add a single line to `local.properties` that looks like `MAPS_API_KEY=YOUR_API_KEY`, where `YOUR_API_KEY` is the API key you obtained earlier
6666
1. Build and run the `debug` variant for the Maps SDK for Android version
6767

68+
### Setting up the Map ID
69+
70+
Some of the features in the demo app, such as Advanced Markers, require a Map ID. You can learn more about map IDs in the [official documentation](https://developers.google.com/maps/documentation/android-sdk/map-ids/mapid-over). You can set the Map ID in one of the following ways:
71+
72+
1. **`secrets.properties`:** Add a line to your `secrets.properties` file with your Map ID:
73+
```
74+
MAP_ID=YOUR_MAP_ID
75+
```
76+
77+
2. **`strings.xml`:** Alternatively, you can set the Map ID in the `demo/src/main/res/values/strings.xml` file:
78+
```xml
79+
<string name="map_id">YOUR_MAP_ID</string>
80+
```
81+
82+
3. **XML Layout Files:** You can also hardcode the Map ID directly in the XML layout files where a map is defined, by setting the `map:mapId` attribute:
83+
```xml
84+
<androidx.fragment.app.FragmentContainerView
85+
map:mapId="YOUR_MAP_ID"
86+
/>
87+
```
88+
6889
## Documentation
6990
7091
See the [documentation] for a full list of classes and their methods.
@@ -74,6 +95,7 @@ Full guides for using the utilities are published in
7495
7596
## Usage
7697
98+
<details>
7799
<summary>Marker utilities</summary>
78100
79101
### Marker utilities
@@ -82,7 +104,6 @@ Full guides for using the utilities are published in
82104
- Marker clustering [source](https://github.com/googlemaps/android-maps-utils/tree/main/library/src/main/java/com/google/maps/android/clustering), [guide](https://developers.google.com/maps/documentation/android-sdk/utility/marker-clustering)
83105
- Advanced Markers clustering [source](https://github.com/googlemaps/android-maps-utils/tree/main/library/src/main/java/com/google/maps/android/clustering), [sample code](https://github.com/googlemaps/android-maps-utils/blob/main/demo/src/main/java/com/google/maps/android/utils/demo/CustomAdvancedMarkerClusteringDemoActivity.java)
84106
- Marker icons [source](https://github.com/googlemaps/android-maps-utils/blob/main/library/src/main/java/com/google/maps/android/ui/IconGenerator.java), [sample code](https://github.com/googlemaps/android-maps-utils/blob/main/demo/src/main/java/com/google/maps/android/utils/demo/IconGeneratorDemoActivity.java)
85-
86107
</details>
87108
88109
<details>

build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ class PublishingConventionPlugin : Plugin<Project> {
6666
publishToMavenCentral()
6767
signAllPublications()
6868

69+
coordinates(
70+
artifactId = "android-maps-utils",
71+
)
72+
6973
pom {
70-
name.set(project.name)
74+
name.set("android-maps-utils")
7175
description.set("Handy extensions to the Google Maps Android API.")
7276
url.set("https://github.com/googlemaps/android-maps-utils")
7377
licenses {

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ buildscript {
3232
}
3333

3434
tasks.register<Delete>("clean") {
35-
delete(rootProject.buildDir)
35+
delete(layout.buildDirectory)
3636
}
3737

3838
allprojects {
3939
group = "com.google.maps.android"
40-
version = "3.16.0"
40+
version = "3.19.1"
4141
}

demo/build.gradle.kts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
/**
24
* Copyright 2025 Google LLC
35
*
@@ -22,13 +24,13 @@ plugins {
2224

2325
android {
2426
lint {
25-
sarifOutput = file("$buildDir/reports/lint-results.sarif")
27+
sarifOutput = layout.buildDirectory.file("reports/lint-results.sarif").get().asFile
2628
}
2729

2830
defaultConfig {
2931
compileSdk = libs.versions.compileSdk.get().toInt()
3032
applicationId = "com.google.maps.android.utils.demo"
31-
minSdk = 21
33+
minSdk = libs.versions.minimumSdk.get().toInt()
3234
targetSdk = libs.versions.targetSdk.get().toInt()
3335
versionCode = 1
3436
versionName = "1.0"
@@ -44,12 +46,17 @@ android {
4446
}
4547
}
4648

47-
kotlinOptions {
48-
jvmTarget = "17"
49+
buildFeatures {
50+
viewBinding = true
4951
}
52+
5053
kotlin {
54+
compilerOptions {
55+
jvmTarget.set(JvmTarget.JVM_17)
56+
}
5157
jvmToolchain(17)
5258
}
59+
5360
namespace = "com.google.maps.android.utils.demo"
5461
}
5562

0 commit comments

Comments
 (0)