Skip to content

Commit 920221a

Browse files
committed
...so let's add it to the options if the SDK supports it (adapt to >= S, since that is the earliest version where REASON_CRASH_NATIVE provides tombstones via the traceInputStream)
1 parent 28652e0 commit 920221a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ static void initializeIntegrationsAndProcessors(
189189
options.addEventProcessor(new ScreenshotEventProcessor(options, buildInfoProvider));
190190
options.addEventProcessor(new ViewHierarchyEventProcessor(options));
191191
options.addEventProcessor(new AnrV2EventProcessor(context, options, buildInfoProvider));
192+
if (buildInfoProvider.getSdkInfoVersion() >= Build.VERSION_CODES.S) {
193+
options.addEventProcessor(new TombstoneEventProcessor(context, options, buildInfoProvider));
194+
}
192195
if (options.getTransportGate() instanceof NoOpTransportGate) {
193196
options.setTransportGate(new AndroidTransportGate(options));
194197
}
@@ -373,7 +376,7 @@ static void installDefaultIntegrations(
373376
final Class<?> sentryNdkClass = loadClass.loadClass(SENTRY_NDK_CLASS_NAME, options.getLogger());
374377
options.addIntegration(new NdkIntegration(sentryNdkClass));
375378

376-
if (buildInfoProvider.getSdkInfoVersion() >= Build.VERSION_CODES.R) {
379+
if (buildInfoProvider.getSdkInfoVersion() >= Build.VERSION_CODES.S) {
377380
options.addIntegration(new TombstoneIntegration(context));
378381
}
379382

0 commit comments

Comments
 (0)