Skip to content

Commit 0310da5

Browse files
authored
Track auto-init usage in manifest (#2795)
1 parent 6c21ee4 commit 0310da5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Features
6+
7+
- Add manifest `AutoInit` to integrations list ([#2795](https://github.com/getsentry/sentry-java/pull/2795))
8+
39
## 6.24.0
410

511
### Features

sentry-android-core/src/main/java/io/sentry/android/core/SentryInitProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.content.pm.ProviderInfo;
55
import android.net.Uri;
66
import io.sentry.Sentry;
7+
import io.sentry.SentryIntegrationPackageStorage;
78
import io.sentry.SentryLevel;
89
import org.jetbrains.annotations.ApiStatus;
910
import org.jetbrains.annotations.NotNull;
@@ -22,6 +23,7 @@ public boolean onCreate() {
2223
}
2324
if (ManifestMetadataReader.isAutoInit(context, logger)) {
2425
SentryAndroid.init(context, logger);
26+
SentryIntegrationPackageStorage.getInstance().addIntegration("AutoInit");
2527
}
2628
return true;
2729
}

0 commit comments

Comments
 (0)