-
-
Notifications
You must be signed in to change notification settings - Fork 232
Expand file tree
/
Copy pathMainActivity.cs
More file actions
24 lines (21 loc) · 914 Bytes
/
MainActivity.cs
File metadata and controls
24 lines (21 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.OS;
namespace Sentry.Maui.Device.IntegrationTestApp;
[Activity(
Name = "io.sentry.dotnet.maui.device.integrationtestapp.MainActivity",
Theme = "@style/Maui.SplashTheme",
MainLauncher = true,
LaunchMode = LaunchMode.SingleTop,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density
)]
public class MainActivity : MauiAppCompatActivity
{
protected override void OnCreate(Bundle? savedInstanceState)
{
base.OnCreate(savedInstanceState);
System.Environment.SetEnvironmentVariable("SENTRY_DSN", Intent?.GetStringExtra("SENTRY_DSN"));
System.Environment.SetEnvironmentVariable("SENTRY_TEST_ARG", Intent?.GetStringExtra("SENTRY_TEST_ARG"));
}
}