Skip to content

Commit

Permalink
fix: Upload source maps for Android splits separately (#4125)
Browse files Browse the repository at this point in the history
  • Loading branch information
omidshafaei authored Oct 7, 2024
1 parent 3776f76 commit 2ec71da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 3 additions & 6 deletions sentry.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,16 @@ 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

def nameCleanup = "${bundleTask.name}_SentryUploadCleanUp"
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 {
Expand Down

0 comments on commit 2ec71da

Please sign in to comment.