diff --git a/CHANGELOG.md b/CHANGELOG.md index f8bb13270..fb4760024 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Fixes + +- Upload source maps for all release variants on Android (not only the last found) ([#4125](https://github.com/getsentry/sentry-react-native/pull/4125)) + ## 5.33.2 ### Fixes diff --git a/sentry.gradle b/sentry.gradle index 99f2bafdf..640f9a3b2 100644 --- a/sentry.gradle +++ b/sentry.gradle @@ -65,9 +65,6 @@ gradle.projectsEvaluated { def currentVariants = extractCurrentVariants(bundleTask, releases) if (currentVariants == null) return - def variant = null - def releaseName = null - def versionCode = null def previousCliTask = null def applicationVariant = null @@ -75,9 +72,9 @@ gradle.projectsEvaluated { def nameModulesCleanup = "${bundleTask.name}_SentryCollectModulesCleanUp" // Upload the source map several times if necessary: once for each release and versionCode. currentVariants.each { key, currentVariant -> - variant = currentVariant[0] - releaseName = currentVariant[1] - versionCode = currentVariant[2] + def variant = currentVariant[0] + def releaseName = currentVariant[1] + def versionCode = currentVariant[2] applicationVariant = currentVariant[3] try {