@@ -59,11 +59,11 @@ private static void InitSentryAndroidSdk(SentryOptions options)
59
59
AndroidEnvironment . UnhandledExceptionRaiser += AndroidEnvironment_UnhandledExceptionRaiser ;
60
60
61
61
// Define the configuration for the Android SDK
62
- SentryAndroidOptions ? androidOptions = null ;
62
+ SentryAndroidOptions ? nativeOptions = null ;
63
63
var configuration = new OptionsConfigurationCallback ( o =>
64
64
{
65
65
// Capture the android options reference on the outer scope
66
- androidOptions = o ;
66
+ nativeOptions = o ;
67
67
68
68
// TODO: Should we set the DistinctId to match the one used by GlobalSessionManager?
69
69
//o.DistinctId = ?
@@ -116,7 +116,7 @@ private static void InitSentryAndroidSdk(SentryOptions options)
116
116
}
117
117
118
118
// These options we have behind feature flags
119
- if ( options is { IsPerformanceMonitoringEnabled : true , Android . EnableAndroidSdkTracing : true } )
119
+ if ( options is { IsPerformanceMonitoringEnabled : true , Native . EnableTracing : true } )
120
120
{
121
121
o . EnableTracing = ( JavaBoolean ? ) options . EnableTracing ;
122
122
o . TracesSampleRate = ( JavaDouble ? ) options . TracesSampleRate ;
@@ -127,39 +127,39 @@ private static void InitSentryAndroidSdk(SentryOptions options)
127
127
}
128
128
}
129
129
130
- if ( options . Android . EnableAndroidSdkBeforeSend && options . BeforeSendInternal is { } beforeSend )
130
+ if ( options . Native . EnableBeforeSend && options . BeforeSendInternal is { } beforeSend )
131
131
{
132
132
o . BeforeSend = new BeforeSendCallback ( beforeSend , options , o ) ;
133
133
}
134
134
135
135
// These options are from SentryAndroidOptions
136
- o . AttachScreenshot = options . Android . AttachScreenshot ;
137
- o . AnrEnabled = options . Android . AnrEnabled ;
138
- o . AnrReportInDebug = options . Android . AnrReportInDebug ;
139
- o . AnrTimeoutIntervalMillis = ( long ) options . Android . AnrTimeoutInterval . TotalMilliseconds ;
140
- o . EnableActivityLifecycleBreadcrumbs = options . Android . EnableActivityLifecycleBreadcrumbs ;
141
- o . EnableAutoActivityLifecycleTracing = options . Android . EnableAutoActivityLifecycleTracing ;
142
- o . EnableActivityLifecycleTracingAutoFinish = options . Android . EnableActivityLifecycleTracingAutoFinish ;
143
- o . EnableAppComponentBreadcrumbs = options . Android . EnableAppComponentBreadcrumbs ;
144
- o . EnableAppLifecycleBreadcrumbs = options . Android . EnableAppLifecycleBreadcrumbs ;
145
- o . EnableRootCheck = options . Android . EnableRootCheck ;
146
- o . EnableSystemEventBreadcrumbs = options . Android . EnableSystemEventBreadcrumbs ;
147
- o . EnableUserInteractionBreadcrumbs = options . Android . EnableUserInteractionBreadcrumbs ;
148
- o . EnableUserInteractionTracing = options . Android . EnableUserInteractionTracing ;
136
+ o . AttachScreenshot = options . Native . AttachScreenshot ;
137
+ o . AnrEnabled = options . Native . AnrEnabled ;
138
+ o . AnrReportInDebug = options . Native . AnrReportInDebug ;
139
+ o . AnrTimeoutIntervalMillis = ( long ) options . Native . AnrTimeoutInterval . TotalMilliseconds ;
140
+ o . EnableActivityLifecycleBreadcrumbs = options . Native . EnableActivityLifecycleBreadcrumbs ;
141
+ o . EnableAutoActivityLifecycleTracing = options . Native . EnableAutoActivityLifecycleTracing ;
142
+ o . EnableActivityLifecycleTracingAutoFinish = options . Native . EnableActivityLifecycleTracingAutoFinish ;
143
+ o . EnableAppComponentBreadcrumbs = options . Native . EnableAppComponentBreadcrumbs ;
144
+ o . EnableAppLifecycleBreadcrumbs = options . Native . EnableAppLifecycleBreadcrumbs ;
145
+ o . EnableRootCheck = options . Native . EnableRootCheck ;
146
+ o . EnableSystemEventBreadcrumbs = options . Native . EnableSystemEventBreadcrumbs ;
147
+ o . EnableUserInteractionBreadcrumbs = options . Native . EnableUserInteractionBreadcrumbs ;
148
+ o . EnableUserInteractionTracing = options . Native . EnableUserInteractionTracing ;
149
149
150
150
// These options are in Java.SentryOptions but not ours
151
- o . AttachThreads = options . Android . AttachThreads ;
152
- o . ConnectionTimeoutMillis = ( int ) options . Android . ConnectionTimeout . TotalMilliseconds ;
153
- o . EnableNdk = options . Android . EnableNdk ;
154
- o . EnableShutdownHook = options . Android . EnableShutdownHook ;
155
- o . EnableUncaughtExceptionHandler = options . Android . EnableUncaughtExceptionHandler ;
156
- o . ProfilesSampleRate = ( JavaDouble ? ) options . Android . ProfilesSampleRate ;
157
- o . PrintUncaughtStackTrace = options . Android . PrintUncaughtStackTrace ;
158
- o . ReadTimeoutMillis = ( int ) options . Android . ReadTimeout . TotalMilliseconds ;
151
+ o . AttachThreads = options . Native . AttachThreads ;
152
+ o . ConnectionTimeoutMillis = ( int ) options . Native . ConnectionTimeout . TotalMilliseconds ;
153
+ o . EnableNdk = options . Native . EnableNdk ;
154
+ o . EnableShutdownHook = options . Native . EnableShutdownHook ;
155
+ o . EnableUncaughtExceptionHandler = options . Native . EnableUncaughtExceptionHandler ;
156
+ o . ProfilesSampleRate = ( JavaDouble ? ) options . Native . ProfilesSampleRate ;
157
+ o . PrintUncaughtStackTrace = options . Native . PrintUncaughtStackTrace ;
158
+ o . ReadTimeoutMillis = ( int ) options . Native . ReadTimeout . TotalMilliseconds ;
159
159
160
160
// In-App Excludes and Includes to be passed to the Android SDK
161
- options . Android . InAppExcludes ? . ForEach ( o . AddInAppExclude ) ;
162
- options . Android . InAppIncludes ? . ForEach ( o . AddInAppInclude ) ;
161
+ options . Native . InAppExcludes ? . ForEach ( o . AddInAppExclude ) ;
162
+ options . Native . InAppIncludes ? . ForEach ( o . AddInAppInclude ) ;
163
163
164
164
// These options are intentionally set and not exposed for modification
165
165
o . EnableExternalConfiguration = false ;
@@ -187,10 +187,10 @@ private static void InitSentryAndroidSdk(SentryOptions options)
187
187
}
188
188
189
189
// Set options for the managed SDK that depend on the Android SDK. (The user will not be able to modify these.)
190
- options . AddEventProcessor ( new AndroidEventProcessor ( androidOptions ! ) ) ;
191
- if ( options . Android . LogCatIntegration != LogCatIntegrationType . None )
190
+ options . AddEventProcessor ( new AndroidEventProcessor ( nativeOptions ! ) ) ;
191
+ if ( options . Native . LogCatIntegration != LogCatIntegrationType . None )
192
192
{
193
- options . AddEventProcessor ( new LogCatAttachmentEventProcessor ( options . DiagnosticLogger , options . Android . LogCatIntegration , options . Android . LogCatMaxLines ) ) ;
193
+ options . AddEventProcessor ( new LogCatAttachmentEventProcessor ( options . DiagnosticLogger , options . Native . LogCatIntegration , options . Native . LogCatMaxLines ) ) ;
194
194
}
195
195
options . CrashedLastRun = ( ) => JavaSdk . Sentry . IsCrashedLastRun ( ) ? . BooleanValue ( ) is true ;
196
196
options . EnableScopeSync = true ;
0 commit comments