Skip to content

Commit 34020a9

Browse files
authored
Fix Calculate the absolute number of Android versionCode (getsentry#2313)
1 parent 6f06e9a commit 34020a9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 4.0.1
44

5+
- Fix Calculate the absolute number of Android versionCode ([#2313](https://github.com/getsentry/sentry-react-native/pull/2313))
56
- Filter out app start with more than 60s ([#2303](https://github.com/getsentry/sentry-react-native/pull/2303))
67

78
## 4.0.0

sentry.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ gradle.projectsEvaluated {
6565
variant = currentVariant[0]
6666
releaseName = currentVariant[1]
6767
versionCode = currentVariant[2]
68+
def absVersionCode = Math.abs(versionCode)
6869

6970
// The Sentry server distinguishes source maps by release (`--release` in the command
7071
// below) and distribution identifier (`--dist` below). Give the task a unique name
7172
// based on where we're uploading to.
72-
def nameCliTask = "${bundleTask.name}_SentryUpload_${releaseName}_${versionCode}"
73+
def nameCliTask = "${bundleTask.name}_SentryUpload_${releaseName}_${absVersionCode}"
7374

7475
// If several outputs have the same releaseName and versionCode, we'd do the exact same
7576
// upload for each of them. No need to repeat.

0 commit comments

Comments
 (0)