-
-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot remove default integrations, i.e. TempSensorBreadcrumbsIntegration
#2355
Comments
I think you can simply do SentryAndroid.init(context) { options ->
options.integrations.removeIf { it is TempSensorBreadcrumbsIntegration }
} Also, I'm curious which stores are rejecting the app? Is it Google Play or some others? We might need to remove it from default integrations then |
I will have a try, thanks! (Not checked it yet so not sure whether integrations is mutable or not)
Others, indeed tencent store, which seem to have >1 billion target users (where google play is banned) |
yep, it's mutable. Chinese stores are very restrictive, we have a few issues opened about reading too much data 🙈 Maybe we need to think of a chinese flavour of the SDK without all those sensitive default integrations/data collectors, if there's a demand. I might open an issue to collect feedback 👍 Gonna close this one, since it should be resolved by using remove/removeIf. |
Thank you! |
Dupe of getsentry/sentry-dart#1129 |
@marandaneto Get it, sorry for that. Originally I thought this is Android while that is Flutter... By the way, the two issues have different answers that are both helpful and needed to be combined indeed :) |
That's what I meant by:
Here it is the very same answer, but with a code snippet =P |
@marandaneto You are right =P P.S. My mind seemed to be wrong to Android before, because IIRC the dart integrations are not removeable (use something like UnmodifiableListView the last time I check it) and I wrongly thought it was Android |
You can mutate the Flutter integrations as well. |
Totally agree. Not sure why I was so stupid when checking it :) |
Well, there is error on some devices:
So just a reminder for those who wants to use this API :) |
oh 🙈 SentryAndroid.init(context) { options ->
val tempSensorIntegration = options.integrations.indexOfFirst { it is TempSensorBreadcrumbsIntegration }
options.integrations.removeAt(tempSensorIntegration)
} |
I used |
@marandaneto Well the fix only lasts for 4 days... and it does not work: #2821 |
Hey @fzyzcjy this issue was fixed in the release |
@stefanosiano Looks great, thank you! |
Integration
sentry-android
Build System
Gradle
AGP Version
latest
Proguard
Enabled
Version
latest
Steps to Reproduce
Hi, I have to remove
TempSensorBreadcrumbsIntegration
integration, because otherwise app is rejected by stores since it reads privacy data. However, I have not seen a way to remove it (there is no things as removeIntegration etc).Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: