Skip to content

fix(android): AGP 9.0 no longer supports proguard-android.txt#1196

Open
jb3rndt wants to merge 1 commit intogetsentry:mainfrom
jb3rndt:fix/android-proguard
Open

fix(android): AGP 9.0 no longer supports proguard-android.txt#1196
jb3rndt wants to merge 1 commit intogetsentry:mainfrom
jb3rndt:fix/android-proguard

Conversation

@jb3rndt
Copy link
Copy Markdown
Contributor

@jb3rndt jb3rndt commented Apr 1, 2026

Resolves #1197

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

This replaces proguard-android.txt with proguard-android-optimize.txt to make the package compatible with android gradle plugin v9.

💡 Motivation and Context

💚 How did you test it?

📝 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

@sdk-maintainer-bot
Copy link
Copy Markdown

This PR has been automatically closed. All non-maintainer contributions must reference an existing GitHub issue.

Next steps:

  1. Find or open an issue describing the problem or feature
  2. Discuss the approach with a maintainer in the issue
  3. Once a maintainer has acknowledged your proposed approach, open a new PR referencing the issue

Please review our contributing guidelines for more details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

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


Bug Fixes 🐛

  • (android) AGP 9.0 no longer supports proguard-android.txt by jb3rndt in #1196

Internal Changes 🔧

  • Update validate-pr workflow by stephanie-anderson in #1198
  • Pin GitHub Actions to full-length commit SHAs by joshuarli in #1180

🤖 This preview updates automatically when you update the PR.

@sdk-maintainer-bot
Copy link
Copy Markdown

This PR has been automatically closed. The referenced issue does not show a discussion between you and a maintainer.

To avoid wasted effort on both sides, please discuss your proposed approach in the issue first and wait for a maintainer to respond before opening a PR.

Please review our contributing guidelines for more details.

@lucas-zimerman
Copy link
Copy Markdown
Collaborator

Thank you for the PR!

Since we really don't apply any proguard rules here, let's just remove the following snippet:

  buildTypes {                                                                                                                         
    release {                                                                                                                          
      minifyEnabled false                                                                                                              
      proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'                                      
    }                                                                                                                                  
  }           

and also delete the proguard-android.txt file in android/proguard-rules.pro

What do you think?

@jb3rndt jb3rndt force-pushed the fix/android-proguard branch from 1a298fa to 7f02db4 Compare April 2, 2026 13:34
@jb3rndt
Copy link
Copy Markdown
Contributor Author

jb3rndt commented Apr 2, 2026

Hi Lucas, yeah sounds reasonable. I have replaced the previous commit with your suggestion :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AGP 9.0 no longer supports proguard-android.txt

2 participants