Enable Sentry Size Analysis (and bump gradle plugin to 6.6.0)#217
Open
sdzhong wants to merge 2 commits into
Open
Enable Sentry Size Analysis (and bump gradle plugin to 6.6.0)#217sdzhong wants to merge 2 commits into
sdzhong wants to merge 2 commits into
Conversation
Adds sizeAnalysis block gated on GITHUB_ACTIONS so APK/bundle uploads to Sentry only run from CI. Plugin bumped from 6.1.0 to 6.6.0, the minimum version that supports the sizeAnalysis DSL. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
cfc8a2e to
a41b7b3
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #217 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 16 16
Lines 864 864
Branches 65 65
=====================================
Misses 864 864 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Modeled on EmergeTools/hackernews reference. Triggers on push to main (base build) and PRs against main (head build with base_sha). Runs :app:bundleRelease so size analysis uploads the AAB — what Play Store actually ships — instead of the APK that the codecov workflow happens to upload. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Hey @mtopo27 , can you please add your review? Goal is enabling Sentry Size Analysis on the Android demo app: which now has the gradle plugin bumped to 6.6.0, a sizeAnalysis block (to be only triggered via GitHub Actions), and a dedicated workflow that successfully uploaded the AAB (example https://demo.sentry.io/preprod/size/249790/). |
rbro112
approved these changes
May 14, 2026
mtopo27
approved these changes
May 14, 2026
runningcode
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sizeAnalysis { enabled = ... }block, gated onGITHUB_ACTIONSso APK/bundle uploads only run from CI.io.sentry.android.gradlefrom 6.1.0 → 6.6.0 (minimum version that supports thesizeAnalysisDSL).upgrade/sentry-gradle-plugin-6.1.0(5.9.0 → 6.1.0, Gradle → 8.14.2, refreshed APKs).Per https://docs.sentry.io/product/size-analysis/ and the Android platform guide.
Test plan
./gradlew helpconfigures cleanlyGITHUB_ACTIONS=true,uploadSentryApkRelease/uploadSentryBundleReleasetasks are registeredSENTRY_AUTH_TOKENset upload to Sentry Size Analysisdemoorg /androidproject🤖 Generated with Claude Code