Skip to content

Align CI with flutter-geocoding and migrate Android builds - #63

Merged
mvanbeusekom merged 1 commit into
mainfrom
ci/align-workflows-with-geocoding
Nov 5, 2026
Merged

mvanbeusekom merged 1 commit into
mainfrom
ci/align-workflows-with-geocoding

Conversation

@mvanbeusekom

Copy link
Copy Markdown
Member

Brings the CI setup in line with flutter-geocoding and migrates the Android builds so they work on current Flutter stable (3.47).

CI

  • Replaces the three per-package workflows with google_api_availability_ci.yaml. That workflow calls a reusable google_api_availability_package.yaml for each package. Each package runs format, analyze, its unit tests and, where it has one, an example build.
  • dorny/paths-filter limits each job to packages that changed. Starting the workflow by hand (workflow_dispatch) checks every package.
  • A new push to a PR cancels that PR's previous run.
  • ci-result reports on every run, including when package jobs are skipped. Make it the only required status check in branch protection and remove the old per-package checks.
  • Codecov stays removed, as on main and in geocoding.
  • Uses the geocoding version of no-response.yaml.
  • Adds .github/dependabot.yml for GitHub Actions, Gradle and pub, covering the packages and both example apps.

SDK and versions

  • Raises the minimum Flutter version to 3.24, matching the existing Dart ^3.5.0 constraint.
  • Bumps google_api_availability to 5.1.0, google_api_availability_android to 1.2.0 and google_api_availability_platform_interface to 1.1.0, with changelog entries. The platform interface's unreleased ## next entry is folded into 1.1.0.

Android builds

  • Moves the plugin's Gradle build to the Kotlin DSL, Android Gradle Plugin 9.1, compile SDK 36 and Java 17. minSdk stays at 16. Also removes the package attribute from the plugin manifest and the unused plugin Gradle wrapper.
  • Regenerates both example Android projects (google_api_availability/example and google_api_availability_android/example) from the Flutter 3.47 template: Kotlin DSL, Gradle 9.3.1, Java 17 and a MainActivity. Removes leftover v1-embedding activity references and Eclipse settings files.
  • Removes an unnecessary ! in the Android test mock that flutter analyze reported as a warning.

No linked issue; this is maintenance.

Pre-launch Checklist

  • I made sure the project builds.
  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.
  • I updated CHANGELOG.md to add a description of the change.
  • I updated/added relevant documentation (doc comments with ///).
  • I rebased onto main.
  • I added new tests to check the change I am making, or this PR does not need tests.
  • I made sure all existing and new tests are passing.
  • I ran dart format . and committed any changes.
  • I ran flutter analyze and fixed any errors.

Verified locally on Flutter 3.47.9 / Dart 3.13.7: format, analyze and unit tests pass for all three packages, and flutter build apk --release succeeds for both examples. The app-facing example builds against google_api_availability_android 1.1.1 from pub.dev. Documentation is not affected.

🤖 Generated with Claude Code

- Replace the per-package workflows with a single CI entry point that
  calls a reusable package workflow, as in flutter-geocoding. Packages
  are only checked when they changed, and ci-result is the single
  required check.
- Use the flutter-geocoding version of the no-response workflow.
- Add a dependabot configuration.
- Raise the minimum Flutter version to 3.24, matching the Dart 3.5 SDK
  constraint, and bump the package versions.
- Migrate the Android plugin and both example apps to the current
  Flutter Gradle setup (Kotlin DSL, AGP 9.1, Gradle 9.3, Java 17).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mvanbeusekom
mvanbeusekom merged commit ad1fab1 into main Nov 5, 2026
5 checks passed
@mvanbeusekom
mvanbeusekom deleted the ci/align-workflows-with-geocoding branch November 5, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant