-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Issue
Document if Mobile SDKs are supported for library authors.
Often we get questions like https://forum.sentry.io/t/restrict-sentry-events-just-from-the-android-sdk-library/13977/3
Description
There are a few issues when using the Android SDK for libraries.
eg you can't use SentryAndroid#init, you also have to disable the auto-init mode.
You can't use the Sentry#capture Events.
You can't add the Sentry Android Gradle plugin for libs, hence you can't demangle events if minified by the final App.
Ideally, you'd create your own instance of Hub and pass it around to capture your own events, but Hub does not add all the default integrations, so you lose Device context, uncaught handler, etc...
Suggested Solution
Either we documented as non supported and explain why or we document how to do it, creating a SentryOptions and Hub
Metadata
Metadata
Assignees
Labels
Projects
Status