Skip to content

Commit

Permalink
Merge branch 'main' into v6
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Oct 8, 2024
2 parents a623ec3 + 46b60ab commit 654c75c
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 43 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

## Unreleased

### Fixes

- Upload source maps for all splits on Android (not only the last found) ([#4125](https://github.com/getsentry/sentry-react-native/pull/4125))

### Dependencies

- Bump CLI from v2.36.6 to v2.37.0 ([#4153](https://github.com/getsentry/sentry-react-native/pull/4153))
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2370)
- [diff](https://github.com/getsentry/sentry-cli/compare/2.36.6...2.37.0)
- Bump JavaScript SDK from v8.30.0 to v8.33.1` ([#4154](https://github.com/getsentry/sentry-react-native/pull/4154))
- [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#8331)
- [diff](https://github.com/getsentry/sentry-javascript/compare/v8.30.0...8.33.1)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"set-version-samples": "lerna run set-version"
},
"devDependencies": {
"@sentry/cli": "2.36.6",
"@sentry/cli": "2.37.0",
"downlevel-dts": "^0.11.0",
"lerna": "^8.1.8",
"npm-run-all2": "^6.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"dependencies": {
"@sentry/babel-plugin-component-annotate": "2.20.1",
"@sentry/browser": "8.33.1",
"@sentry/cli": "2.36.6",
"@sentry/cli": "2.37.0",
"@sentry/core": "8.33.1",
"@sentry/react": "8.33.1",
"@sentry/types": "8.33.1",
Expand Down
9 changes: 3 additions & 6 deletions packages/core/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
33 changes: 33 additions & 0 deletions samples/react-native/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,39 @@ android {
keyPassword 'android'
}
}

if (System.getenv('SENTRY_SAMPLE_ENABLE_ABI_SPLIT') == 'true') {
splits {
abi {
enable true
reset()
include 'x86', 'arm64-v8a'
universalApk true
}
}
project.ext.versionCodes = ['armeabi': 1, 'armeabi-v7a': 2, 'arm64-v8a': 3, 'mips': 5, 'mips64': 6, 'x86': 8, 'x86_64': 9]
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
output.versionCodeOverride =
project.ext.versionCodes.get(output.getFilter(
com.android.build.OutputFile.ABI), 0) * 10000000 + android.defaultConfig.versionCode
}
}
}

if (System.getenv('SENTRY_SAMPLE_ENABLE_FLAVORS') == 'true') {
flavorDimensions "version"
productFlavors {
regular {
dimension "version"
}
demo {
dimension "version"
applicationIdSuffix "demo"
}
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
Expand Down
3 changes: 2 additions & 1 deletion samples/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"clean-ios": "cd ios; rm -rf Podfile.lock Pods build; cd ..",
"clean-watchman": "watchman watch-del-all",
"set-build-number": "npx react-native-version --skip-tag --never-amend --set-build",
"set-version": "npx react-native-version --skip-tag --never-amend"
"set-version": "npx react-native-version --skip-tag --never-amend",
"build-android-release-splits-flavors": "export SENTRY_SAMPLE_ENABLE_ABI_SPLIT=true; export SENTRY_SAMPLE_ENABLE_FLAVORS=true; cd android; ./gradlew assembleRelease; cd .."
},
"dependencies": {
"@react-navigation/bottom-tabs": "^6.5.12",
Expand Down
68 changes: 34 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5806,66 +5806,66 @@ __metadata:
languageName: node
linkType: hard

"@sentry/cli-darwin@npm:2.36.6":
version: 2.36.6
resolution: "@sentry/cli-darwin@npm:2.36.6"
"@sentry/cli-darwin@npm:2.37.0":
version: 2.37.0
resolution: "@sentry/cli-darwin@npm:2.37.0"
conditions: os=darwin
languageName: node
linkType: hard

"@sentry/cli-linux-arm64@npm:2.36.6":
version: 2.36.6
resolution: "@sentry/cli-linux-arm64@npm:2.36.6"
"@sentry/cli-linux-arm64@npm:2.37.0":
version: 2.37.0
resolution: "@sentry/cli-linux-arm64@npm:2.37.0"
conditions: (os=linux | os=freebsd) & cpu=arm64
languageName: node
linkType: hard

"@sentry/cli-linux-arm@npm:2.36.6":
version: 2.36.6
resolution: "@sentry/cli-linux-arm@npm:2.36.6"
"@sentry/cli-linux-arm@npm:2.37.0":
version: 2.37.0
resolution: "@sentry/cli-linux-arm@npm:2.37.0"
conditions: (os=linux | os=freebsd) & cpu=arm
languageName: node
linkType: hard

"@sentry/cli-linux-i686@npm:2.36.6":
version: 2.36.6
resolution: "@sentry/cli-linux-i686@npm:2.36.6"
"@sentry/cli-linux-i686@npm:2.37.0":
version: 2.37.0
resolution: "@sentry/cli-linux-i686@npm:2.37.0"
conditions: (os=linux | os=freebsd) & (cpu=x86 | cpu=ia32)
languageName: node
linkType: hard

"@sentry/cli-linux-x64@npm:2.36.6":
version: 2.36.6
resolution: "@sentry/cli-linux-x64@npm:2.36.6"
"@sentry/cli-linux-x64@npm:2.37.0":
version: 2.37.0
resolution: "@sentry/cli-linux-x64@npm:2.37.0"
conditions: (os=linux | os=freebsd) & cpu=x64
languageName: node
linkType: hard

"@sentry/cli-win32-i686@npm:2.36.6":
version: 2.36.6
resolution: "@sentry/cli-win32-i686@npm:2.36.6"
"@sentry/cli-win32-i686@npm:2.37.0":
version: 2.37.0
resolution: "@sentry/cli-win32-i686@npm:2.37.0"
conditions: os=win32 & (cpu=x86 | cpu=ia32)
languageName: node
linkType: hard

"@sentry/cli-win32-x64@npm:2.36.6":
version: 2.36.6
resolution: "@sentry/cli-win32-x64@npm:2.36.6"
"@sentry/cli-win32-x64@npm:2.37.0":
version: 2.37.0
resolution: "@sentry/cli-win32-x64@npm:2.37.0"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@sentry/cli@npm:2.36.6":
version: 2.36.6
resolution: "@sentry/cli@npm:2.36.6"
"@sentry/cli@npm:2.37.0":
version: 2.37.0
resolution: "@sentry/cli@npm:2.37.0"
dependencies:
"@sentry/cli-darwin": 2.36.6
"@sentry/cli-linux-arm": 2.36.6
"@sentry/cli-linux-arm64": 2.36.6
"@sentry/cli-linux-i686": 2.36.6
"@sentry/cli-linux-x64": 2.36.6
"@sentry/cli-win32-i686": 2.36.6
"@sentry/cli-win32-x64": 2.36.6
"@sentry/cli-darwin": 2.37.0
"@sentry/cli-linux-arm": 2.37.0
"@sentry/cli-linux-arm64": 2.37.0
"@sentry/cli-linux-i686": 2.37.0
"@sentry/cli-linux-x64": 2.37.0
"@sentry/cli-win32-i686": 2.37.0
"@sentry/cli-win32-x64": 2.37.0
https-proxy-agent: ^5.0.0
node-fetch: ^2.6.7
progress: ^2.0.3
Expand All @@ -5888,7 +5888,7 @@ __metadata:
optional: true
bin:
sentry-cli: bin/sentry-cli
checksum: d1848fab01be38233f72603ee363bbff808d2c39b4bd59ae418d8a8c8bbce0ad0ced5e7cd3146aa5c74aa79ed1a914bb5dec384aaf94b1f944d363c6c35e4675
checksum: 92e88688b5148e5abed2cc253290008da89029c5816d7f1bdb5fbed035305c0bcfb5f49e4976ff8ced5fbb876d28e655eef838d32c7a388d3582654ff67d65e0
languageName: node
linkType: hard

Expand Down Expand Up @@ -5965,7 +5965,7 @@ __metadata:
"@sentry-internal/typescript": 8.33.1
"@sentry/babel-plugin-component-annotate": 2.20.1
"@sentry/browser": 8.33.1
"@sentry/cli": 2.36.6
"@sentry/cli": 2.37.0
"@sentry/core": 8.33.1
"@sentry/react": 8.33.1
"@sentry/types": 8.33.1
Expand Down Expand Up @@ -23284,7 +23284,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "sentry-react-native@workspace:."
dependencies:
"@sentry/cli": 2.36.6
"@sentry/cli": 2.37.0
downlevel-dts: ^0.11.0
lerna: ^8.1.8
npm-run-all2: ^6.2.2
Expand Down

0 comments on commit 654c75c

Please sign in to comment.