-
-
Notifications
You must be signed in to change notification settings - Fork 342
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 Mappings are not uploaded using expo plugin #4400
Comments
Hello @rtorrente 👋 Also please note that we're winding down for the holidays, so responses will be slower than usual. |
Hey @antonis, The problem is that we don't have direct access to gradle file with expo and expo config plugin are used for that |
Thank you for your response @rtorrente 🙇 We will investigate this further and iterate back. Since you cannot directly access the Gradle file to add the Android Gradle Plugin, I would suggest manually uploading the mapping files as a workaround. |
Thank you for your patience @rtorrente 🙇
One solution to add the Sentry Android Gradle Plugin (SAGP) is to add a custom Expo plugin in your
The custom plugin implemented in example implementation
Note that we are planning to include this as a feature in the future. |
Hi @antonis, Thanks for the plugin code, it works very well. I just had to add the Here is the new sentryConfig
It works well Hope to see this merged directly in the default expo plugin to be usable by other people. Thanks you again! |
Thank you for the prompt feedback @rtorrente 🙇 |
What React Native libraries do you use?
React Navigation, Hermes, Expo Application Services (EAS), Expo (mobile only)
Are you using sentry.io or on-premise?
sentry.io (SaS)
@sentry/react-native SDK Version
6.3.0
How does your development environment look like?
expo-env-info 1.2.1 environment info:
System:
OS: macOS 15.2
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.0 - ~/.nvm/versions/node/v20.12.0/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.0/bin/npm
Managers:
CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.2, iOS 18.2, macOS 15.2, tvOS 18.2, visionOS 2.2, watchOS 11.2
IDEs:
Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
npmPackages:
expo: ~52.0.20 => 52.0.20
react: 18.3.1 => 18.3.1
react-native: 0.76.5 => 0.76.5
Expo Workflow: managed
New arch : disabled
Hermes: Enabled
Sentry.init()
And config on app.json expo
Steps to Reproduce
1 : Enable R8 and Proguard using expo-build-properties plugin
Config look like :
2 : Build with EAS for android
Expected Result
Proguard mapping are uploaded on Sentry
Actual Result
Source maps are uploaded but proguard mapping aren't uploaded.
So on issue, there is a "Unminify code" button
The text was updated successfully, but these errors were encountered: