Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Ignore R8 minified libs from instrumentation #316

Merged
merged 2 commits into from May 12, 2022

Conversation

romtsn
Copy link
Member

@romtsn romtsn commented May 11, 2022

馃摐 Description

Ignore R8-minified libs from instrumentation by looking at the constant pool of a .class file and search for the R8 marker. This uses a lot of reflection, but should be fine because it's done on JVM and not Android. Still, I filed an issue on AGP's tracker, maybe they provide and API for that, so we can avoid reflection.

馃挕 Motivation and Context

Closes #315

馃挌 How did you test it?

Manually on a sample project and automatically

馃摑 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

馃敭 Next steps

@romtsn romtsn requested a review from marandaneto as a code owner May 11, 2022 14:35
@romtsn romtsn merged commit 0ece4be into main May 12, 2022
@romtsn romtsn deleted the fix/ignore-r8-minified-libs-from-instrumentation branch May 12, 2022 13:16
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.

Sentry Plugin is causing the application to crash
2 participants