From f79eecfc96c81e45b312c72aea32e4943329666b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Andra=C5=A1ec?= Date: Tue, 23 May 2023 12:22:55 +0000 Subject: [PATCH] Change SDK name of Sentry Native for Flutter (#1468) Co-authored-by: Manoel Aranda Neto Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> --- .../src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt index 00819cc1ed..492638dffc 100644 --- a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt +++ b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt @@ -42,7 +42,7 @@ class SentryFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAware { private val flutterSdk = "sentry.dart.flutter" private val androidSdk = "sentry.java.android.flutter" - private val nativeSdk = "sentry.native.android" + private val nativeSdk = "sentry.native.android.flutter" override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) { context = flutterPluginBinding.applicationContext @@ -182,6 +182,7 @@ class SentryFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAware { options.sdkVersion = sdkVersion options.sentryClientName = "$androidSdk/$VERSION_NAME" + options.nativeSdkName = nativeSdk options.setBeforeSend { event, _ -> setEventOriginTag(event)