From 34aba0802bf802288f91fada55c0b133252fe67f Mon Sep 17 00:00:00 2001 From: LucasZF Date: Wed, 24 May 2023 20:55:30 +0900 Subject: [PATCH] Bump android SDK to 6.19.0 & set native SDK name (#3086) --- CHANGELOG.md | 3 +++ android/build.gradle | 2 +- android/src/main/java/io/sentry/react/RNSentryModuleImpl.java | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f674ca84e..55d937a905 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ - Bump JavaScript SDK from v7.52.0 to v7.52.1 ([#3071](https://github.com/getsentry/sentry-react-native/pull/3071)) - [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#7521) - [diff](https://github.com/getsentry/sentry-javascript/compare/7.52.0...7.52.1) +- Bump Android SDK from v6.18.1 to v6.19.0 ([#3086](https://github.com/getsentry/sentry-react-native/pull/3086)) + - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6190) + - [diff](https://github.com/getsentry/sentry-java/compare/6.18.1...6.19.0) ## 5.5.0 diff --git a/android/build.gradle b/android/build.gradle index 685ced52d3..feea1d2dc7 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -42,5 +42,5 @@ android { dependencies { implementation 'com.facebook.react:react-native:+' - api 'io.sentry:sentry-android:6.18.1' + api 'io.sentry:sentry-android:6.19.0' } diff --git a/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java b/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java index 236d0b1279..0d8713a41d 100644 --- a/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +++ b/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java @@ -68,7 +68,7 @@ public class RNSentryModuleImpl { public static final String NAME = "RNSentry"; - private static final String NATIVE_SDK_NAME = "sentry.native.android"; + private static final String NATIVE_SDK_NAME = "sentry.native.android.react-native"; private static final String ANDROID_SDK_NAME = "sentry.java.android.react-native"; private static final ILogger logger = new AndroidLogger(NAME); private static final BuildInfoProvider buildInfo = new BuildInfoProvider(logger); @@ -113,6 +113,7 @@ public void initNativeSdk(final ReadableMap rnOptions, Promise promise) { } options.setSentryClientName(sdkVersion.getName() + "/" + sdkVersion.getVersion()); + options.setNativeSdkName(NATIVE_SDK_NAME); options.setSdkVersion(sdkVersion); if (rnOptions.hasKey("debug") && rnOptions.getBoolean("debug")) {