Skip to content

Commit

Permalink
Merge branch 'main' into antonis/3995-appLaunchedInForeground
Browse files Browse the repository at this point in the history
  • Loading branch information
antonis authored Oct 9, 2024
2 parents 94123f4 + f31859f commit f632e1c
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
- 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 Cocoa SDK from v8.36.0 to v8.37.0 ([#4156](https://github.com/getsentry/sentry-react-native/pull/4156))
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8370)
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.36.0...8.37.0)

## 5.33.2

Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ _Bad software is everywhere, and we're tired of it. Sentry is on a mission to he
[![Discord Chat](https://img.shields.io/discord/621778831602221064?logo=discord&logoColor=ffffff&color=7389D8)](https://discord.gg/PXa5Apfe7K)
[![Runs with Expo](https://img.shields.io/badge/Runs%20with%20Expo-4630EB.svg?style=flat-square&logo=EXPO&labelColor=f3f3f3&logoColor=000)](https://expo.dev/)

## Releases

This repo uses the following ways to release SDK updates:

- `Pre-release`: We create pre-releases (alpha, beta, RC,…) for larger and potentially more impactful changes, such as new features or major versions.
- `Latest`: We continuously release major/minor/hotfix versions from the `main` branch. These releases go through all our internal quality gates and are very safe to use and intended to be the default for most teams.
- `Stable`: We promote releases from `Latest` when they have been used in the field for some time and in scale, considering time since release, adoption, and other quality and stability metrics. These releases will be indicated on [the releases page](https://github.com/getsentry/sentry-react-native/releases/) with the `Stable` suffix.

## Requirements

- `react-native >= 0.65.0`
Expand Down
2 changes: 1 addition & 1 deletion RNSentry.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Pod::Spec.new do |s|

s.compiler_flags = other_cflags

s.dependency 'Sentry/HybridSDK', '8.36.0'
s.dependency 'Sentry/HybridSDK', '8.37.0'

if defined? install_modules_dependencies
# Default React Native dependencies for 0.71 and above (new and legacy architecture)
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 @@ -146,6 +146,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-watchman": "watchman watch-del-all",
"set-build-number": "npx react-native-version --skip-tag --never-amend --set-build",
"set-version": "npm version --no-git-tag-version",
"postversion": "npx react-native-version --skip-tag --never-amend"
"postversion": "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

0 comments on commit f632e1c

Please sign in to comment.