Skip to content

fix(ci): Support version catalog in android SDK version check#6280

Open
antonis wants to merge 1 commit into
mainfrom
antonis/fix-android-sdk-version-check
Open

fix(ci): Support version catalog in android SDK version check#6280
antonis wants to merge 1 commit into
mainfrom
antonis/fix-android-sdk-version-check

Conversation

@antonis

@antonis antonis commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

The Danger check check-android-sdk-mismatch.js fetches the bundled sentry-android version from the gradle plugin repo by reading plugin-build/gradle.properties. Starting with gradle plugin 6.10.0, the sdk_version property was moved to gradle/libs.versions.toml (Gradle version catalog), causing the check to fail with:

Could not find sdk_version in gradle.properties

This PR extracts an fetchFileContent helper and chains a TOML fallback when gradle.properties doesn't contain sdk_version.

💡 Motivation and Context

The warning appeared on #6275 (gradle plugin bump to 6.11.0), masking the actual version mismatch info that the check is meant to surface.

💚 How did you test it?

Tested with #6285

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

The sentry-android-gradle-plugin moved the bundled SDK version from
plugin-build/gradle.properties to gradle/libs.versions.toml in 6.10.0.
Fall back to the TOML file when gradle.properties lacks sdk_version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • fix(ci): Support version catalog in android SDK version check by antonis in #6280
  • chore(deps): bump gradle/actions from 6.1.0 to 6.2.0 by dependabot in #6284
  • chore(deps): bump getsentry/craft from 2.26.8 to 2.26.10 by dependabot in #6283
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.26.8 to 2.26.10 by dependabot in #6281
  • chore(deps): update Sentry Android Gradle Plugin to v6.11.0 by github-actions in #6275
  • chore(deps): update Android SDK to v8.43.2 by github-actions in #6273
  • chore(deps): bump joi from 17.13.3 to 17.13.4 by dependabot in #6279
  • chore(deps): update Cocoa SDK to v9.17.1 by github-actions in #6272
  • docs(replay): clarify fast renderer option docs by leohara in #6276
  • feat(core): Warn when multiple versions of Sentry JS SDK are detected by antonis in #6269

🤖 This preview updates automatically when you update the PR.

@github-actions

Copy link
Copy Markdown
Contributor
Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request
🚫

CHANGELOG.md#L4193 - The changelog entry seems to be part of an already released section ## 8.14.0.
Consider moving the entry to the ## Unreleased section, please.

Generated by 🚫 dangerJS against 6a5932d

@antonis antonis marked this pull request as ready for review June 15, 2026 08:09
Comment thread scripts/check-android-sdk-mismatch.js
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