Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .generated.NoMobile.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<Project Path="samples/Sentry.Samples.Log4Net/Sentry.Samples.Log4Net.csproj" />
<Project Path="samples/Sentry.Samples.MacCatalyst/Sentry.Samples.MacCatalyst.csproj" />
<Project Path="samples/Sentry.Samples.MacOS/Sentry.Samples.MacOS.csproj" />
<Project Path="samples/Sentry.Samples.Maui.MacOS/Sentry.Samples.Maui.MacOS.csproj" />
<Project Path="samples/Sentry.Samples.Maui/Sentry.Samples.Maui.csproj">
<Deploy Solution="Debug|Any CPU" />
</Project>
Expand All @@ -120,6 +121,7 @@
<Project Path="samples/Sentry.Samples.OpenTelemetry.MongoDB/Sentry.Samples.OpenTelemetry.MongoDB.csproj" />
<Project Path="samples/Sentry.Samples.Quartz/Sentry.Samples.Quartz.csproj" />
<Project Path="samples/Sentry.Samples.Serilog/Sentry.Samples.Serilog.csproj" />
<Project Path="samples/Sentry.Samples.Tvos/Sentry.Samples.Tvos.csproj" />
</Folder>
<Folder Name="/scripts/">
<File Path="scripts/accept-verifier-changes.ps1" />
Expand Down
11 changes: 7 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

The Sentry SDK for .NET: a multi-package repo (`Sentry`, `Sentry.AspNetCore`, `Sentry.Maui`,
`Sentry.Serilog`, `Sentry.OpenTelemetry`, ~25 packages under `src/`) built with the .NET SDK
pinned in `global.json`. It spans .NET Framework through the latest .NET, plus Android, iOS
and Mac Catalyst via bindings over the native Sentry SDKs — see [Platform Targets](#platform-targets)
pinned in `global.json`. It spans .NET Framework through the latest .NET, plus Android, iOS,
Mac Catalyst, tvOS and macOS via bindings over the native Sentry SDKs — see [Platform Targets](#platform-targets)
for the target frameworks and per-platform toolchain requirements.

## Getting Started
Expand Down Expand Up @@ -41,7 +41,7 @@ Use solution filters instead of the full `Sentry.slnx`:
| `Sentry-CI-Build-macOS.slnf` | All macOS projects except the app samples |
| `Sentry-CI-Build-Windows.slnf` | All Windows projects except the app samples |
| `Sentry-CI-Build-Linux.slnf` | All Linux projects except the app samples |
| `Sentry-CI-Build-Samples-macOS.slnf` | The MAUI, Android, iOS, Mac Catalyst and macOS sample apps |
| `Sentry-CI-Build-Samples-macOS.slnf` | The MAUI, Android, iOS, Mac Catalyst, tvOS and macOS sample apps |
| `Sentry-CI-Build-Samples-Linux.slnf` | The MAUI and Android sample apps, built on Linux |
| `Sentry-CI-IntegrationTest-macOS.slnf` | The packages the integration tests use, on macOS |
| `Sentry-CI-IntegrationTest.slnf` | The packages the integration tests use, on Linux and Windows |
Expand Down Expand Up @@ -164,9 +164,12 @@ and the local checks must be run **serially**.
- Built on all platforms (Linux, macOS, Windows).
- `Sentry.Bindings.Android` wraps the native Android SDK.

### iOS / Mac Catalyst
### iOS / Mac Catalyst / tvOS / macOS
- **macOS only**. Requires Xcode.
- `Sentry.Bindings.Cocoa` wraps the native Cocoa SDK.
- Code shared by every Cocoa platform uses the `COCOA` define (set in `Directory.Build.props`). Note that `__IOS__` is also defined for Mac Catalyst but not for tvOS or macOS, and `__MOBILE__` isn't defined for macOS.
- The bindings are generated from the iOS headers. Cocoa SDK classes and selectors that aren't built for tvOS (e.g. profiling) or macOS (e.g. session replay, screenshots) are compiled out with `#if !__TVOS__` / `#if !__MACOS__` by `scripts/patch-cocoa-bindings.cs`. A selector bound on a platform that lacks it builds fine but throws `unrecognized selector` at runtime.
- `Sentry.Maui` targets macOS for the AppKit platform from maui-labs (`Microsoft.Maui.Platforms.MacOS`), which it hooks into without referencing it (see `LateBoundLifecycleEvents`).
- Device tests run in CI only.
- `src/Sentry.Bindings.Cocoa/ApiDefinition.cs` and `StructsAndEnums.cs` are **auto-generated** — do not edit them directly. All changes must go in `scripts/patch-cocoa-bindings.cs` and be applied by running `scripts/generate-cocoa-bindings.ps1`.

Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ See https://docs.microsoft.com/dotnet/maui/ for details. JetBrains also have a g

Basically, if you can build and run the `MyMauiApp` example you should also be able to build and run the Sentry MAUI sample app.

### Targeting Android, iOS and Mac Catalyst
### Targeting Android, iOS, Mac Catalyst, tvOS and macOS

* Targeting the mobile platforms requires aditional dependencies.
- `Java` is required for building the Android bindings. If you're building Sentry using an IDE you provide the path to your Java installation via the IDE settings (open the settings for Visual Studio or Rider and search for "android"). Building Sentry from the command line (using `dotnet build`) requires `JAVA_HOME` to be available on the environment.
- Compiling for iOS and Mac Catalyst happens on macOS only.
- Compiling for iOS, Mac Catalyst, tvOS and macOS happens on macOS only.

Although the files in `/src/Sentry/Platforms/` are part of the `Sentry` project, they are [conditionally targeted](https://github.com/getsentry/sentry-dotnet/blob/b1bfe1efc04eb4c911a85f1cf4cd2e5a176d7c8a/src/Sentry/Sentry.csproj#L19-L21) when the platform is Android, iOS, or Mac Catalyst. We build for Android on all platforms.
Although the files in `/src/Sentry/Platforms/` are part of the `Sentry` project, they are [conditionally targeted](https://github.com/getsentry/sentry-dotnet/blob/b1bfe1efc04eb4c911a85f1cf4cd2e5a176d7c8a/src/Sentry/Sentry.csproj#L19-L21) when the platform is Android, iOS, Mac Catalyst, tvOS or macOS. We build for Android on all platforms.

```xml
<!-- Platform-specific props included here -->
<Import Project="Platforms\Android\Sentry.Android.props" Condition="'$(TargetPlatformIdentifier)' == 'android'" />
<Import Project="Platforms\Cocoa\Sentry.Cocoa.props" Condition="'$(TargetPlatformIdentifier)' == 'ios' Or '$(TargetPlatformIdentifier)' == 'maccatalyst'" />
<Import Project="Platforms\Cocoa\Sentry.Cocoa.props" Condition="'$(PlatformIsCocoa)' == 'true'" />
```

These `*.props` files are used to add platform-specific files, such as references to the binding projects for each native SDK. These binding projects are .NET wrappers around native Android or Cocoa SDK functions.
Expand Down Expand Up @@ -192,7 +192,7 @@ time, in the integration tests, or in projects that aren't in any filter.
Mobile and non-mobile follow different rules, because mobile workloads are far more expensive to
keep working across versions:

- **Mobile** (`-android`, `-ios`, `-maccatalyst`, `-windows`): every .NET version still supported
- **Mobile** (`-android`, `-ios`, `-maccatalyst`, `-tvos`, `-macos`, `-windows`): every .NET version still supported
by Microsoft — in practice the latest two.
- **Non-mobile**: the latest two LTS releases, plus every STS release after the older of them.

Expand Down
16 changes: 15 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
<PreviousIosTfm>net10.0-ios26</PreviousIosTfm>
<LatestMacCatalystTfm>net11.0-maccatalyst27.2</LatestMacCatalystTfm>
<PreviousMacCatalystTfm>net10.0-maccatalyst26</PreviousMacCatalystTfm>
<LatestTvosTfm>net11.0-tvos27.2</LatestTvosTfm>
<PreviousTvosTfm>net10.0-tvos26</PreviousTvosTfm>
<LatestMacOSTfm>net11.0-macos27.2</LatestMacOSTfm>
<PreviousMacOSTfm>net10.0-macos26</PreviousMacOSTfm>
<LatestWindowsTfm>net11.0-windows10.0.19041.0</LatestWindowsTfm>
<PreviousWindowsTfm>net10.0-windows10.0.19041.0</PreviousWindowsTfm>
</PropertyGroup>
Expand All @@ -61,6 +65,8 @@
<NO_ANDROID>true</NO_ANDROID>
<NO_IOS>true</NO_IOS>
<NO_MACCATALYST>true</NO_MACCATALYST>
<NO_TVOS>true</NO_TVOS>
<NO_MACOS>true</NO_MACOS>
<NO_WINDOWS>true</NO_WINDOWS>
</PropertyGroup>

Expand All @@ -84,12 +90,20 @@
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'ios'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst' And $([MSBuild]::VersionGreaterThanOrEquals($([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')), '11.0'))">17.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'tvos'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'macos'">12.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'android' And $([MSBuild]::VersionGreaterThanOrEquals($([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')), '11.0'))">24.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="'$(TargetPlatformIdentifier)' == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>

<!-- Platforms where we bind the Sentry Cocoa SDK. -->
<PropertyGroup>
<PlatformIsCocoa Condition="'$(TargetPlatformIdentifier)' == 'ios' Or '$(TargetPlatformIdentifier)' == 'maccatalyst' Or '$(TargetPlatformIdentifier)' == 'tvos' Or '$(TargetPlatformIdentifier)' == 'macos'">true</PlatformIsCocoa>
<DefineConstants Condition="'$(PlatformIsCocoa)' == 'true'">$(DefineConstants);COCOA</DefineConstants>
</PropertyGroup>

<!-- This is helpful in code to distinguish neutral targets. -->
<PropertyGroup>
<DefineConstants Condition="'$(TargetPlatformIdentifier)' == ''">$(DefineConstants);PLATFORM_NEUTRAL</DefineConstants>
Expand Down Expand Up @@ -129,7 +143,7 @@
<!-- dotnet-gcdump needs net6+ and won't work on mobile. -->
<PropertyGroup>
<PlatformIsLegacy Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' Or '$(TargetFrameworkIdentifier)' == '.NETStandard'">true</PlatformIsLegacy>
<PlatformIsMobile Condition="'$(TargetPlatformIdentifier)' == 'android' or '$(TargetPlatformIdentifier)' == 'ios' or '$(TargetPlatformIdentifier)' == 'maccatalyst'">true</PlatformIsMobile>
<PlatformIsMobile Condition="'$(TargetPlatformIdentifier)' == 'android' or '$(TargetPlatformIdentifier)' == 'ios' or '$(TargetPlatformIdentifier)' == 'maccatalyst' or '$(TargetPlatformIdentifier)' == 'tvos'">true</PlatformIsMobile>
<MemoryDumpSupported Condition="!($(PlatformIsLegacy) == 'true' or $(PlatformIsMobile) == 'true')">true</MemoryDumpSupported>

<DefineConstants Condition="'$(MemoryDumpSupported)' == 'true'">$(DefineConstants);MEMORY_DUMP_SUPPORTED</DefineConstants>
Expand Down
12 changes: 11 additions & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'ios'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst' And $([MSBuild]::VersionGreaterThanOrEquals($([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')), '11.0'))">17.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'tvos'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'macos'">12.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'android' And $([MSBuild]::VersionGreaterThanOrEquals($([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')), '11.0'))">24.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetPlatformIdentifier)' == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
Expand All @@ -32,7 +34,7 @@ Only runs on Windows and not relevant for our library packages (dll + xml only).
<Compile Remove="**\Android\**\*.cs" />
</ItemGroup>

<ItemGroup Condition="'$(TargetPlatformIdentifier)' != 'ios' And '$(TargetPlatformIdentifier)' != 'maccatalyst'">
<ItemGroup Condition="'$(PlatformIsCocoa)' != 'true'">
<!-- Exclude our platform-specific code: -->
<Compile Remove="**\*.Cocoa.cs" />
<Compile Remove="**\Cocoa\**\*.cs" />
Expand Down Expand Up @@ -63,6 +65,8 @@ Only runs on Windows and not relevant for our library packages (dll + xml only).
<AndroidWorkloadVersion>$([System.Text.RegularExpressions.Regex]::Match($(WorkloadList), "\s*(android)\s+(\S+)\s+SDK\s+([0-9\.]+).+").Groups[3].Value)</AndroidWorkloadVersion>
<IosWorkloadVersion>$([System.Text.RegularExpressions.Regex]::Match($(WorkloadList), "\s*(ios)\s+(\S+)\s+SDK\s+([0-9\.]+).+").Groups[3].Value)</IosWorkloadVersion>
<MacCatalystWorkloadVersion>$([System.Text.RegularExpressions.Regex]::Match($(WorkloadList), "\s*(maccatalyst)\s+(\S+)\s+SDK\s+([0-9\.]+).+").Groups[3].Value)</MacCatalystWorkloadVersion>
<TvosWorkloadVersion>$([System.Text.RegularExpressions.Regex]::Match($(WorkloadList), "\s*(tvos)\s+(\S+)\s+SDK\s+([0-9\.]+).+").Groups[3].Value)</TvosWorkloadVersion>
<MacOSWorkloadVersion>$([System.Text.RegularExpressions.Regex]::Match($(WorkloadList), "\s*(macos)\s+(\S+)\s+SDK\s+([0-9\.]+).+").Groups[3].Value)</MacOSWorkloadVersion>
<MauiWorkloadVersion>$([System.Text.RegularExpressions.Regex]::Match($(WorkloadList), "\s*(maui)\s+(\S+)\s+SDK\s+([0-9\.]+).+").Groups[3].Value)</MauiWorkloadVersion>
</PropertyGroup>

Expand All @@ -76,6 +80,12 @@ Only runs on Windows and not relevant for our library packages (dll + xml only).
<PropertyGroup Condition="'$(MacCatalystWorkloadVersion)' == ''">
<NO_MACCATALYST>true</NO_MACCATALYST>
</PropertyGroup>
<PropertyGroup Condition="'$(TvosWorkloadVersion)' == ''">
<NO_TVOS>true</NO_TVOS>
</PropertyGroup>
<PropertyGroup Condition="'$(MacOSWorkloadVersion)' == ''">
<NO_MACOS>true</NO_MACOS>
</PropertyGroup>
<PropertyGroup Condition="'$(MauiWorkloadVersion)' == ''">
<NO_WINDOWS>true</NO_WINDOWS>
</PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion Sentry-CI-Build-Samples-macOS.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"samples\\Sentry.Samples.Ios\\Sentry.Samples.Ios.csproj",
"samples\\Sentry.Samples.MacCatalyst\\Sentry.Samples.MacCatalyst.csproj",
"samples\\Sentry.Samples.MacOS\\Sentry.Samples.MacOS.csproj",
"samples\\Sentry.Samples.Maui\\Sentry.Samples.Maui.csproj"
"samples\\Sentry.Samples.Maui.MacOS\\Sentry.Samples.Maui.MacOS.csproj",
"samples\\Sentry.Samples.Maui\\Sentry.Samples.Maui.csproj",
"samples\\Sentry.Samples.Tvos\\Sentry.Samples.Tvos.csproj"
]
}
}
2 changes: 2 additions & 0 deletions Sentry.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<Project Path="samples/Sentry.Samples.Log4Net/Sentry.Samples.Log4Net.csproj" />
<Project Path="samples/Sentry.Samples.MacCatalyst/Sentry.Samples.MacCatalyst.csproj" />
<Project Path="samples/Sentry.Samples.MacOS/Sentry.Samples.MacOS.csproj" />
<Project Path="samples/Sentry.Samples.Maui.MacOS/Sentry.Samples.Maui.MacOS.csproj" />
<Project Path="samples/Sentry.Samples.Maui/Sentry.Samples.Maui.csproj">
<Deploy Solution="Debug|Any CPU" />
</Project>
Expand All @@ -120,6 +121,7 @@
<Project Path="samples/Sentry.Samples.OpenTelemetry.MongoDB/Sentry.Samples.OpenTelemetry.MongoDB.csproj" />
<Project Path="samples/Sentry.Samples.Quartz/Sentry.Samples.Quartz.csproj" />
<Project Path="samples/Sentry.Samples.Serilog/Sentry.Samples.Serilog.csproj" />
<Project Path="samples/Sentry.Samples.Tvos/Sentry.Samples.Tvos.csproj" />
</Folder>
<Folder Name="/scripts/">
<File Path="scripts/accept-verifier-changes.ps1" />
Expand Down
1 change: 1 addition & 0 deletions SentryMobile.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"samples\\Sentry.Samples.Ios\\Sentry.Samples.Ios.csproj",
"samples\\Sentry.Samples.MacCatalyst\\Sentry.Samples.MacCatalyst.csproj",
"samples\\Sentry.Samples.Maui\\Sentry.Samples.Maui.csproj",
"samples\\Sentry.Samples.Tvos\\Sentry.Samples.Tvos.csproj",
"src\\Sentry.Analyzers\\Sentry.Analyzers.csproj",
"src\\Sentry.Android.AssemblyReader\\Sentry.Android.AssemblyReader.csproj",
"src\\Sentry.Bindings.Android\\Sentry.Bindings.Android.csproj",
Expand Down
10 changes: 10 additions & 0 deletions samples/Sentry.Samples.MacOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ public override void DidFinishLaunching(NSNotification notification)
#endif
options.Debug = true;
options.TracesSampleRate = 1.0;
options.ProfilesSampleRate = 1.0;

// On macOS, Sentry uses the native Cocoa SDK, so its options are available below
// https://docs.sentry.io/platforms/apple/guides/macos/configuration/
options.Native.EnableAppHangTracking = true;

options.OnCrashedLastRun = e =>
{
Console.WriteLine(e);
};
});

// You can now capture messages and exceptions
Expand Down
40 changes: 39 additions & 1 deletion samples/Sentry.Samples.MacOS/ViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,45 @@ public override void ViewDidLoad()
{
base.ViewDidLoad();

// Do any additional setup after loading the view.
// A managed exception that we catch and handle (won't crash the app)
var managedCrashButton = NSButton.CreateButton("Managed Crash", () =>
{
try
{
throw new Exception("Catch this!");
}
catch (Exception e)
{
SentrySdk.CaptureException(e);
}
});

// An unhandled managed exception. It crashes the app before Sentry can send the event, but the
// caching transport writes it to disk and sends it the next time the app is launched.
var unhandledCrashButton = NSButton.CreateButton("Unhandled Crash", () =>
{
string s = null!;
Console.WriteLine("Length: {0}", s.Length);
});

// A native crash. The Cocoa SDK captures it and sends it the next time the app is launched.
var nativeCrashButton = NSButton.CreateButton("Native Crash", () =>
{
#pragma warning disable CS0618 // Type or member is obsolete
SentrySdk.CauseCrash(CrashType.Native);
#pragma warning restore CS0618 // Type or member is obsolete
});

var stackView = NSStackView.FromViews([managedCrashButton, unhandledCrashButton, nativeCrashButton]);
stackView.Orientation = NSUserInterfaceLayoutOrientation.Vertical;
stackView.Spacing = 10;
stackView.TranslatesAutoresizingMaskIntoConstraints = false;

View.AddSubview(stackView);
NSLayoutConstraint.ActivateConstraints([
stackView.CenterXAnchor.ConstraintEqualTo(View.CenterXAnchor),
stackView.CenterYAnchor.ConstraintEqualTo(View.CenterYAnchor)
]);
}

public override NSObject RepresentedObject
Expand Down
7 changes: 7 additions & 0 deletions samples/Sentry.Samples.Maui.MacOS/App.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Sentry.Samples.Maui.MacOS;

public class App : Application
{
protected override Window CreateWindow(IActivationState? activationState) =>
new(new NavigationPage(new MainPage())) { Title = "Sentry MAUI on macOS" };
}
20 changes: 20 additions & 0 deletions samples/Sentry.Samples.Maui.MacOS/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>Sentry.Samples.Maui.MacOS</string>
<key>CFBundleIdentifier</key>
<string>io.sentry.dotnet.samples.maui.macos</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>LSMinimumSystemVersion</key>
<string>14.0</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
6 changes: 6 additions & 0 deletions samples/Sentry.Samples.Maui.MacOS/Main.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using AppKit;
using Sentry.Samples.Maui.MacOS;

NSApplication.Init();
NSApplication.SharedApplication.Delegate = new MauiMacOSAppDelegate();
NSApplication.Main(args);
Loading
Loading