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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proguard(R8) mapping not recognized by Sentry #824

Closed
5 of 11 tasks
rozPierog opened this issue Apr 20, 2020 · 2 comments
Closed
5 of 11 tasks

Proguard(R8) mapping not recognized by Sentry #824

rozPierog opened this issue Apr 20, 2020 · 2 comments

Comments

@rozPierog
Copy link

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native
  • react-native-sentry

SDK version: 1.3.7
react-native version: 0.60.6

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

I have following issue:
When I enable obfuscation via proguard-rules.pro and send mapping to sentry via

../node_modules/@sentry/cli/bin/sentry-cli upload-proguard --android-manifest app/build/intermediates/merged_manifests/<app_flavor>/<abi>/AndroidManifest.xml app/build/outputs/mapping/<app_flavor>/mapping.txt

sentry-cli is confirming upload but when I check logs on the site it's still in it's obfuscated form. Is there a React-Native plugin way of doing this, or am I missing something important?

Steps to reproduce:

  • comment out/remove -dontobfuscate from proguard-rules.pro in your android react native project
  • build release version of the app
  • upload mapping to sentry using
../node_modules/@sentry/cli/bin/sentry-cli upload-proguard --android-manifest app/build/intermediates/merged_manifests/<app_flavor>/<abi>/AndroidManifest.xml app/build/outputs/mapping/<app_flavor>/mapping.txt

Actual result:

  • code on sentry web UI is obfuscated

Expected result:

  • code should be deobfuscated using mapping provided by developer
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2021

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@marandaneto
Copy link
Contributor

please integrate our Sentry Android Gradle plugin that does the upload of the proguard mapping file and association of the file and event

https://docs.sentry.io/platforms/android/proguard/

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

No branches or pull requests

2 participants