sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Detect if Sentry.init is called on Android instead of SentryAndroid.init

Open romtsn opened this issue 1 year ago • 1 comments

Description

We could detect that by Platform.isAndroid and fail the SDK (throw an exception), to let users know early that they are using the wrong static class

romtsn avatar May 23 '24 11:05 romtsn

There should be no reason on Android to call Sentry.init, so let's be clear to the user and throw an Exception.

markushi avatar May 29 '24 13:05 markushi