Repository navigation
Comparing changes
Open a pull request
base repository: googlemaps/android-maps-compose
base: v8.6.0
head repository: googlemaps/android-maps-compose
compare: v9.0.0
- 19 commits
- 56 files changed
- 4 contributors
Commits on Sep 4, 2026
-
sample(maps-app): follow system theme in LiteModeActivity and add doc…
…umentation guide (#989)
Configuration menu - View commit details
-
Copy full SHA for 594e268 - Browse repository at this point
Copy the full SHA 594e268View commit details
Commits on Sep 8, 2026
-
chore(ci): harden Gemini issue triage against prompt injection (#992)
* chore(ci): harden Gemini issue triage against prompt injection Issue titles and bodies are untrusted input that flows into the Gemini prompts used for triage labeling and auto-answering, so a crafted issue can steer the model output that drives label application. This change limits the blast radius: - Validate model output against an exact allowlist of the five priority labels; drop anything else, including non-strings and labels containing newlines or extra whitespace. - Strip newlines before writing to GITHUB_OUTPUT so script output cannot inject additional output keys. - Wrap the untrusted issue content in delimiters in both triage and answer prompts and instruct the model to treat it as data only. - Add a per-issue concurrency group with cancel-in-progress so rapid edit loops cannot stack Gemini API calls. Claude-Session: https://claude.ai/code/session_01DMAbzVdHqDdyoCKpub2bTC * chore(ci): sanitize delimiters, adopt system_instruction, and validate bot links - Neutralize delimiter tags in triage_issue.py and answer_issue.py so untrusted issue content cannot prematurely close <issue_content> tags. - Use native system_instruction API in Gemini requests for structural separation between instructions and user input. - Validate external links in answer_issue.py against an allowlist of approved documentation domains before writing issue_response.md. --------- Co-authored-by: Dale Hawkins <107309+dkhawk@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d64778c - Browse repository at this point
Copy the full SHA d64778cView commit details -
docs: add AGENTS.md guidance for AI coding agents (#993)
* docs: add AGENTS.md guidance for AI coding agents * docs: refine AGENTS.md with import hygiene, draft PR notification, and test guidance --------- Co-authored-by: Dale Hawkins <107309+dkhawk@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for aec06f3 - Browse repository at this point
Copy the full SHA aec06f3View commit details
Commits on Sep 10, 2026
-
build: migrate unit test coverage from JaCoCo to Kover (#994)
Replaces the manual JaCoCo wiring in PublishingConventionPlugin with kotlinx-kover 0.9.9. The old jacocoTestReport task hardcoded AGP 9 internal intermediate paths (intermediates/built_in_kotlinc) to work around JaCoCo not understanding the built-in Kotlin compiler output; Kover integrates through AGP's variant APIs so none of that is needed. Also removes the unused com.mxalbert.gradle:jacoco-android classpath dependency (last released for AGP 8.x). CI now runs koverXmlReportDebug for the library modules. The instrumented-test coverage in instrumentation-test.yml is unchanged: it uses AGP's built-in on-device JaCoCo, which Kover does not cover.
Configuration menu - View commit details
-
Copy full SHA for 2344932 - Browse repository at this point
Copy the full SHA 2344932View commit details
Commits on Sep 15, 2026
-
ci: record unit and instrumentation test coverage history (#1000)
* ci: record unit and instrumentation test coverage history Coverage was reported per run but never retained, so there was no way to see how it moves over time. This adds an append-only history that is updated after every merge to main. coverage/history.csv holds one row per module per suite per merged commit. coverage/COVERAGE.md is regenerated from it with the current numbers and a trend table. Both are produced by .github/scripts/coverage_history.py, which parses the JaCoCo-format XML that both Kover and AGP emit. Two suites are tracked separately, since they instrument different code and cannot be merged from their XML reports: unit koverXmlReportDebug, covering the library modules instrumentation createDebugCoverageReport, covering maps-app and maps-compose-widgets Instrumentation tests are not re-run after merge. The emulator already runs on every pull request, so instrumentation-test.yml now publishes its reports as an artifact and the post-merge workflow downloads it. That keeps the added CI cost at roughly zero. If the run is missing or the artifact has expired, only unit coverage is recorded for that commit. Pull requests also get a sticky comment showing the unit coverage delta against main. Instrumentation already has its own comment. Release-please commits are skipped so releases do not add entries. Also corrects a stale jacocoTestReport reference in AGENTS.md left over from the Kover migration in #994. * ci: bind workflow expressions through env to fix template injection zizmor flagged github.base_ref being expanded directly into a run block in test.yml as a high severity template-injection finding. Branch names can contain shell metacharacters, so the value is now passed through the step environment and referenced as a shell variable instead. github.sha in coverage-history.yml is bound the same way. It was not flagged, since it is always a hex digest, but this keeps run blocks free of any template expansion. Also notes why the checkout in coverage-history.yml keeps its credentials: the job pushes the updated history back to main. * ci: add thousands separators to coverage tables Large line counts were hard to read at a glance: 2731/5405 rather than 2,731/5,405. Only the rendered markdown changes; history.csv keeps raw numbers so it stays machine readable. A comma is used rather than a dot because the tables already spell percentages with a decimal point, and reusing the dot for both roles would make a number like 2.731 ambiguous. Also regenerates COVERAGE.md, which had been committed with a timestamp one render out of step with history.csv. * ci: limit instrumentation coverage to modules that own androidTest createDebugCoverageReport emits a report for every module with enableAndroidTestCoverage, including maps-compose and maps-compose-utils, which have no androidTest sources at all. Those reports list every class at 0%, which reads as "untested" when the code is in fact exercised by maps-app's tests and simply attributed there. Recording them dragged the instrumentation total from 20.83% down to 10.08% and said something false about the libraries. The suite now tracks maps-app and maps-compose-widgets, the two modules that actually own instrumentation tests, which also matches the figure the existing coverage comment reports. Verified against the real artifact from run 34986287391 rather than a fixture: maps-app 21.73%, maps-compose-widgets 6.71%, total 20.83%. Adds a --modules override ("all" records every module) so the scope can be changed without editing the parsing code.Configuration menu - View commit details
-
Copy full SHA for a24cc53 - Browse repository at this point
Copy the full SHA a24cc53View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8215c7 - Browse repository at this point
Copy the full SHA d8215c7View commit details
Commits on Sep 16, 2026
-
chore(deps): bump androidx.compose:compose-bom (#999)
Bumps androidx.compose:compose-bom from 2026.08.00 to 2026.09.00. --- updated-dependencies: - dependency-name: androidx.compose:compose-bom dependency-version: 2026.09.00 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 2266449 - Browse repository at this point
Copy the full SHA 2266449View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92a62d6 - Browse repository at this point
Copy the full SHA 92a62d6View commit details
Commits on Sep 17, 2026
-
ci: move coverage history off main and wait for the emulator run (#1006)
Addresses review feedback on #1000. Branch protection on main uses strict required status checks, so every commit pushed there marks all open pull requests out-of-date. Recording coverage on main therefore charged contributors a branch update and a full CI re-run, emulator included, for data they did not ask for. The history now lives on the coverage-history branch and main is never written to. The existing rows were migrated across rather than restarted, so the trend is continuous. The instrumentation lookup also had a timing bug. The required checks finish in 6-13 minutes while instrumentation-test.yml takes 16-28, and it is not a required check, so a pull request merged as soon as it is green usually leaves the emulator still running. The query matched only conclusion == success, so an in-flight run silently recorded the commit as having no instrumentation data at all. It worked on #1000 only because that pull request sat for nearly three hours after the emulator finished. The workflow now records unit coverage immediately, then waits for the emulator run to finish before recording instrumentation. Unit coverage is therefore never held up by the emulator, and is already safe if the wait times out. Pushing twice per run exposed a further problem: both sides append to the end of history.csv, so a rebase conflicts every time and the retry dropped rows. Rows are independent records, so push_coverage_history.sh now redoes the update on the new tip via a merge subcommand that re-applies local rows and regenerates the report, instead of rebasing. COVERAGE.md gains a callout stating that the instrumentation figure is dominated by maps-app, the internal sample app, and is not a direct measurement of the published maps-compose library.
Configuration menu - View commit details
-
Copy full SHA for 2405308 - Browse repository at this point
Copy the full SHA 2405308View commit details
Commits on Sep 18, 2026
-
chore(deps): bump github/codeql-action/upload-sarif (#996)
Bumps [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) from 4.37.6 to 4.38.0. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@5595cca...b96794f) --- updated-dependencies: - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.38.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0eae049 - Browse repository at this point
Copy the full SHA 0eae049View commit details
Commits on Sep 22, 2026
-
feat(ci): publish an instrumented coverage badge (#1009)
Closes #241. The coverage history added in #1000 already records a TOTAL row per suite on every merge to main, so the badge only needs to expose it. A new 'badge' subcommand emits shields.io endpoint JSON next to COVERAGE.md on the coverage-history branch, and README.md points an endpoint badge at it. The badge reports the instrumentation suite, not unit. This library is a Compose wrapper around a map, so JVM unit tests structurally cannot cover much of it: unit line coverage is 0.42% against 20.87% instrumented. The label says 'coverage (instrumented)' so the number is not mistaken for a whole-project figure. push_coverage_history.sh needed two fixes to carry the new file: it hard-coded history.csv and COVERAGE.md in both its change detection and its git add, and it checked for changes with 'git diff' before staging, which cannot see an untracked file and would have skipped the badge's first commit entirely.
Configuration menu - View commit details
-
Copy full SHA for b0d6420 - Browse repository at this point
Copy the full SHA b0d6420View commit details
Commits on Sep 23, 2026
-
ci: group dependabot minor and patch updates (#1008)
* ci: group dependabot minor and patch updates dependabot.yml sets no groups, so every dependency bump opens its own PR with its own CI run. Group minor and patch updates per ecosystem into a single weekly PR, and leave majors ungrouped so they are still reviewed individually. * ci: add dependabot cooldown zizmor audits dependabot.yml and flags each update entry without a cooldown as a Medium finding, which fails the zizmor-output check. It only scans changed files, so the finding was latent until this PR touched the file. Cooldown also stands on its own: letting a release age before adopting it narrows the window in which a compromised or immediately-yanked version gets pulled in. * fix: drop unsupported cooldown keys for github-actions Dependabot's own config check rejected the file: The property '#/updates/1/cooldown/semver-major-days' is not supported for the package ecosystem 'github-actions'. (same for minor and patch) The semver-*-days breakdown is only valid for ecosystems that carry semver metadata, so github-actions keeps default-days alone. Gradle is unchanged. --------- Co-authored-by: Dale Hawkins <107309+dkhawk@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 74aa729 - Browse repository at this point
Copy the full SHA 74aa729View commit details
Commits on Sep 28, 2026
-
test: skip map instrumentation tests when no Maps API key is available (
#1016) The emulator suite fails on every Dependabot pull request, and on forks, for a reason that has nothing to do with the change under test: neither can read the repository secret that supplies the Maps API key. The workflow falls back to writing MAPS_API_KEY=YOUR_API_KEY, hasValidApiKey is then false, and the map-dependent tests hit check(hasValidApiKey) { "Maps API key not specified" }, which throws IllegalStateException and fails the build. On PR #1015 that was 29 of 41 tests; the 30th, StreetViewTests, has no guard at all and instead timed out waiting for a panorama that can never load. A test that cannot run for lack of a credential is a skipped test, not a failing one, so replace the check with a JUnit assumption via a shared assumeValidApiKey() helper, and add the missing guard to StreetViewTests. Two things worth knowing about the result: - Three tests declare @test(expected = IllegalStateException::class) for marker-state reuse. Without a key they were being satisfied by the missing-key IllegalStateException itself, so they passed without ever exercising the reuse logic. JUnit 4.13.2 propagates assumption failures through the expected-exception check, so they now skip when no key is present and assert for real when one is. - AGP writes assumption failures into the connected-test XML as <failure> with skipped="0", so the generated report still reads "33 failures" even though the task passes. The count is cosmetic; the build result is not. Verified on an API 30 emulator: with MAPS_API_KEY=YOUR_API_KEY the task succeeds with all 33 results recorded as AssumptionViolatedException, and with a real key 39 of 41 tests pass. The two that fail, GoogleMapViewTests.testStartingCameraPosition and MapInColumnTests.testScrollColumn_MapCameraRemainsSame, fail identically on main and are unrelated to this change.
Configuration menu - View commit details
-
Copy full SHA for 977ab46 - Browse repository at this point
Copy the full SHA 977ab46View commit details
Commits on Oct 1, 2026
-
test: wait for clustered markers instead of map load in clustering te…
…sts (#1020) initMapAndGetMarker waited for onMapLoaded, which also waits for every tile to render, before polling for the clustered marker. On the CI emulator tiles sometimes take longer than the timeout, so testClusteringMarkerPropertiesRotationUpdatesMarker failed intermittently. Poll for the marker directly with the same overall timeout.
Configuration menu - View commit details
-
Copy full SHA for 109b74a - Browse repository at this point
Copy the full SHA 109b74aView commit details -
ci: merge generated docs PRs from the docs workflow (#1019)
* ci: merge generated docs PRs from the docs workflow The docs PR targets gh-pages, so automerge-docs.yml on main never ran for it, and it could not have approved its own PR or used auto-merge, which is disabled in this repo. Merge the PR right after creating it instead and remove the unused workflow. * ci: correct the gh-pages note in the docs workflow gh-pages is protected. The merge step only works when the branch does not require an approving review, because the bot cannot approve its own PR. --------- Co-authored-by: Dale Hawkins <107309+dkhawk@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 5c38780 - Browse repository at this point
Copy the full SHA 5c38780View commit details -
ci: support GEMINI_MODEL repository variable in triage-issue workflow (…
…#995) * ci: support GEMINI_MODEL repository variable in triage-issue workflow * ci: support GEMINI_MODEL in auto-fix workflow and create_pr.py --------- Co-authored-by: Enrique López-Mañas <eenriquelopez@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1bbf27e - Browse repository at this point
Copy the full SHA 1bbf27eView commit details -
test: add end-to-end smoke tests covering every demo activity (#1007)
* test: add end-to-end smoke tests covering every demo activity Reviewing a pull request currently means cloning it and clicking through the sample app by hand to confirm nothing regressed. These two tests do that walk automatically. DemoAppSmokeTest is parameterized over allActivityGroups, the same registry that builds the on-screen demo list, so a demo added to the app is covered with no change to the test. Each demo is launched and checked for three things: it reaches RESUMED, a MapView or StreetViewPanoramaView is attached and laid out, and nothing crashes on a background thread. It then recreates the activity and checks again, which is where camera and marker state holders tend to regress. DemoRegistryTest guards the registry itself. A demo is described both in allActivityGroups and in AndroidManifest.xml; adding it to one and not the other builds cleanly and only fails when someone taps the entry. Map content is deliberately not asserted. Verifying that a particular marker or overlay is drawn belongs in the focused tests alongside these; the value here is breadth. * ci: run instrumentation tests on API 36 and require maps to load Emulators never update Google Play services. The bundled version on older images crashes inside Play services when adding advanced markers. When the Maps API key secret is available, the demo smoke test also waits for map tiles to render. (cherry picked from commit 22d2871) * test: zoom each demo's map and optionally wait for tiles in the smoke test Zooming out and back in exercises the camera listeners the demos and the library hook into. With requireMapLoaded=true, which CI passes when the Maps API key secret is available, the test also waits for tiles to render. * ci: run instrumentation tests on Ubuntu with KVM On macOS-latest-large the API 36 emulator took over five minutes to boot and the job hit its 30 minute timeout. Ubuntu runners support KVM and boot it in about a minute. Raise the timeout to 45 minutes for headroom. * test: open every demo through the menu and navigate back DemoMenuNavigationTest starts MainActivity, taps the demo's group and entry, waits for its map, and presses back to the menu, so a broken menu entry, click handler or back navigation is caught. DemoRegistryTest now also fails when a demo activity is declared in the manifest but missing from the menu. Adds test tags to the menu cards. * test: run the demo smoke tests in their own workflow Move DemoAppSmokeTest, DemoMenuNavigationTest and DemoRegistryTest into a smoke package. A new Demo smoke test workflow runs only that package on API 36 with KVM and a real key, and the instrumentation workflow excludes it and goes back to its previous runner, API level and timeout, so the coverage history stays comparable. DemoAppSmokeTest now zooms a map that is fully on screen, which fixes a flaky wait in MapsInLazyColumnActivity. * test: address review feedback on the demo smoke tests - DemoMenuNavigationTest scrolls the menu to each group and demo before clicking, since items below the fold are not composed until the LazyColumn scrolls to them. - It covers StreetViewActivity through its StreetViewPanoramaView instead of exempting it. The wait advances the compose test clock, which drives every composition in the process: the panorama only appears after a recomposition that follows an async metadata request. Without a valid key, that demo is only checked for opening. - Both tests record background-thread crashes and check for them in @after as well, to catch crashes during teardown. tearDown only restores the default handler it replaced. --------- Co-authored-by: Dale Hawkins <107309+dkhawk@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 29a87be - Browse repository at this point
Copy the full SHA 29a87beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c49e8d - Browse repository at this point
Copy the full SHA 0c49e8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 150efd5 - Browse repository at this point
Copy the full SHA 150efd5View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v8.6.0...v9.0.0