Open
Description
Gradle Version
8.10.2
AGP Version
8.7.0
Code Minifier/Optimizer
R8
Version
4.11.0
Sentry SDK Version
7.15.0
Steps to Reproduce
- Configure your app's version code and name via the property-based APIs AGP offers for that these days.
- Use this plugin to upload ProGuard mapping files for your release build.
- Check out the uploaded mappings at https://example.sentry.io/settings/projects/myproject/proguard/.
- Notice that all of them are linked to the non-existing release
com.example.myproject@undefined
.- This means it's quite difficult to find the mappings used in a release.
- Why do I care? Because I log (to Sentry) a bunch of things that aren't exceptions, Sentry's automatic deobfuscation doesn't apply. To deobfuscate logged details manually, I need the correct mappings file of the release that raised an issue. While it's rare for me to apply this manual process, it's still crucial to allow understanding all Sentry errors. Downloading the mappings file from Sentry allows there to be a single source of truth when it comes to all things related to a release.
- Note: This is not breaking Sentry's automatic deobfuscation of stack traces. That still works fine thanks to the UUID-based lookup.
- As seen here, that seems to be expected at this time since the plugin doesn't support all the various ways the version details can be set in newer AGP versions.
- This means it's quite difficult to find the mappings used in a release.
Expected Result
The lazily configured version details should be used when uploading ProGuard mappings.
Actual Result
The statically set version values are used when uploading ProGuard mappings.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog
Status
No status