Skip to content

No way to remove TempSensorBreadcrumbsIntegration (in new versions), causing app *rejected* by app stores #2821

@fzyzcjy

Description

@fzyzcjy

Integration

sentry-android

Build System

Gradle

AGP Version

latest

Proguard

Enabled

Version

latest

Steps to Reproduce

Last time I submitted #2355 which caused apps rejected by stores, the solution was to do something like:

SentryAndroid.init(context) { options ->
  options.integrations.removeAll { it is TempSensorBreadcrumbsIntegration }
}

However, that does not work after I upgrade Sentry. Indeed, that issue was solved at 2022.11.14, while the code that breaks the solution was created at 2022.11.18 (what a short time!) at #2377.

As you can see, with that PR, the configure callback is executed before the TempSensorBreadcrumbsIntegration has a chance to be added to the integrations.

configuration.configure(options);
AndroidOptionsInitializer.initializeIntegrationsAndProcessors(

Therefore, I would appreciate it if this could be fixed. For example, we can add something similar to isEnableSystemEventBreadcrumbs, but specific to temperature sensor.

Expected Result

Actual Result

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

Status

Done

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions