Skip to content

Enable Sentry Size Analysis (and bump gradle plugin to 6.6.0)#217

Open
sdzhong wants to merge 2 commits into
mainfrom
feature/enable-sentry-size-analysis
Open

Enable Sentry Size Analysis (and bump gradle plugin to 6.6.0)#217
sdzhong wants to merge 2 commits into
mainfrom
feature/enable-sentry-size-analysis

Conversation

@sdzhong
Copy link
Copy Markdown
Contributor

@sdzhong sdzhong commented May 13, 2026

Summary

  • Enable Sentry Size Analysis by adding a sizeAnalysis { enabled = ... } block, gated on GITHUB_ACTIONS so APK/bundle uploads only run from CI.
  • Bump io.sentry.android.gradle from 6.1.0 → 6.6.0 (minimum version that supports the sizeAnalysis DSL).
  • Bundles the prior plugin upgrade commits from 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 help configures cleanly
  • With GITHUB_ACTIONS=true, uploadSentryApkRelease / uploadSentryBundleRelease tasks are registered
  • CI builds with SENTRY_AUTH_TOKEN set upload to Sentry Size Analysis
  • Confirm size analysis report appears in Sentry under the demo org / android project

🤖 Generated with Claude Code

@sdzhong sdzhong requested a review from ndmanvar as a code owner May 13, 2026 21:08
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>
@sdzhong sdzhong force-pushed the feature/enable-sentry-size-analysis branch from cfc8a2e to a41b7b3 Compare May 13, 2026 21:10
@sentry
Copy link
Copy Markdown

sentry Bot commented May 13, 2026

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Android com.example.vu.android 24.12.26 (241226) release
Android com.example.vu.android 24.12.26 (241226) debug
Android com.example.vu.android 24.12.26 (241226) release

⚙️ android Build Distribution Settings

@codecov
Copy link
Copy Markdown

codecov Bot commented May 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (814e302) to head (dfc20bb).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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>
@sdzhong
Copy link
Copy Markdown
Contributor Author

sdzhong commented May 13, 2026

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/).

@sdzhong sdzhong requested a review from mtopo27 May 13, 2026 23:44
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.

4 participants