Android Proguard File Creation With No Upload to VPN Self Hosted Sentry #1912
-
Hello! We're using a self hosted Sentry instance behind a VPN, so automatic mapping upload fails due to the server/ports not being accessible from Github actions (where we run our assembling of production build). Looking at the Sentry Gradle options, I'm not seeing one where the mapping is created but NOT uploaded. I'm looking for a scenario where the build process creates the mapping.txt file but is just sitting there so that I can action on it with a different build step. However, with Sentry Android Gradle Plugin i am only able to either
Is there a configuration within the Sentry Android Gradle Plugin where I can achieve this desired output? It's feeling like I need to do this with Sentry CLI but it would be nice if Gradle Plugin supported this use case. Thank you! (I didn't see discussions on the android gradle plugin repo so I started it here, rather than starting a "bug" there) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Actually we are not the ones who's creating the mapping file, but the Android Gradle plugin. So your mapping file is always available (regardless of what error monitoring solution you're using), precisely at When using You can access this I think this should be sufficient for your case, let me know if we can assist further! |
Beta Was this translation helpful? Give feedback.
-
(also, I just enabled discussions on the gradle plugin repo, thanks for the heads up) |
Beta Was this translation helpful? Give feedback.
-
Since the Plugin uses sentry-cli under the hood, you can export an env. var. or set the Example using |
Beta Was this translation helpful? Give feedback.
Actually we are not the ones who's creating the mapping file, but the Android Gradle plugin. So your mapping file is always available (regardless of what error monitoring solution you're using), precisely at
build/outputs/mapping/$variantName/mapping.txt
.When using
autoUploadProguardMapping=false
(note, that this is only available in the version3.0.0
or above, which is currently at3.0.0-beta.4
), we do not auto-upload the mapping.txt file, but just generate theuuid
, which is packaged inside your final apk/aab. This uuid is then used by our sentry-android SDK to associate all errors/events with the mapping file on the backend.You can access this
uuid
underbuild/generated/assets/sentry…