Skip to content

Commit

Permalink
Track auto-init usage in manifest (#2795)
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn authored Jun 22, 2023
1 parent 6c21ee4 commit 0310da5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,6 +23,7 @@ public boolean onCreate() {
}
if (ManifestMetadataReader.isAutoInit(context, logger)) {
SentryAndroid.init(context, logger);
SentryIntegrationPackageStorage.getInstance().addIntegration("AutoInit");
}
return true;
}
Expand Down

0 comments on commit 0310da5

Please sign in to comment.