-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Allow some mobile options to be modified from defaults #1857
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome stuff
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
i like it. but did we not need to add/change any tests related to this? |
@@ -179,7 +165,7 @@ private static void InitSentryAndroidSdk(SentryOptions options) | |||
o.AddIgnoredExceptionForType(JavaClass.ForName("android.runtime.JavaProxyThrowable")); | |||
})); | |||
|
|||
// Set options for the managed SDK that depend on the Android SDK | |||
// Set options for the managed SDK that depend on the Android SDK. (The user will not be able to modify these.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user will not be able to modify these
does this mean "there is no API what the user can use to modify these" or "we ignore/overwrite the options the user sets"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It means, we set these options ourselves during init, ignoring whatever the user provided. These should be limited to what is needed to make the native and managed SDKs work together.
Not until we have ability to write tests for ios/android |
On Android, iOS, and MacCatalyst (and Windows if using MAUI):
DetectStartupTime
should default toFast
(notBest
), but should be allowed to set toNone
AutoSessionTracking
should betrue
by default, but should be allowed to set tofalse
IsGlobalModeEnabled
should always betrue
and not allowed to be changed.Additionally:
__IOS__
covers both iOS and MacCatalyst,__MOBILE__
covers those plus AndroidSentrySdk.Init
methods that took an AndroidContext
parameter, since we can get the application context directly.