From 0310da5fd2540430a5e65aa50aa8832330e23990 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Thu, 22 Jun 2023 20:09:04 +0200 Subject: [PATCH] Track auto-init usage in manifest (#2795) --- CHANGELOG.md | 6 ++++++ .../java/io/sentry/android/core/SentryInitProvider.java | 2 ++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index abbceea8e6..048890638c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Features + +- Add manifest `AutoInit` to integrations list ([#2795](https://github.com/getsentry/sentry-java/pull/2795)) + ## 6.24.0 ### Features diff --git a/sentry-android-core/src/main/java/io/sentry/android/core/SentryInitProvider.java b/sentry-android-core/src/main/java/io/sentry/android/core/SentryInitProvider.java index 9e0460f812..6d88bdad63 100644 --- a/sentry-android-core/src/main/java/io/sentry/android/core/SentryInitProvider.java +++ b/sentry-android-core/src/main/java/io/sentry/android/core/SentryInitProvider.java @@ -4,6 +4,7 @@ import android.content.pm.ProviderInfo; import android.net.Uri; import io.sentry.Sentry; +import io.sentry.SentryIntegrationPackageStorage; import io.sentry.SentryLevel; import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; @@ -22,6 +23,7 @@ public boolean onCreate() { } if (ManifestMetadataReader.isAutoInit(context, logger)) { SentryAndroid.init(context, logger); + SentryIntegrationPackageStorage.getInstance().addIntegration("AutoInit"); } return true; }