-
-
Notifications
You must be signed in to change notification settings - Fork 222
Initial MAUI support #1663
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
Merged
Merged
Initial MAUI support #1663
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
2e583a9
Add MAUI projects
mattjohnsonpint 157710c
Add extension method, first unit test, and solution filter
mattjohnsonpint bd40fa2
Get initialization working, first test passes!
mattjohnsonpint bc63f47
Update tests and sample
mattjohnsonpint 60417c9
Improve initialization
mattjohnsonpint b9803e3
Add an exception button to the sample app
mattjohnsonpint 4635cce
Update CONTRIBUTING.md
mattjohnsonpint 0169edb
Update CHANGELOG.md
mattjohnsonpint 3a20e96
tabs->spaces, no-bom, eol
mattjohnsonpint af9bbee
Merge branch 'main' into maui
mattjohnsonpint 0724b99
Update CHANGELOG.md
mattjohnsonpint 552895f
Update build and solution filters
mattjohnsonpint 57865e6
Update build.yml
mattjohnsonpint 424235f
Update build.yml
mattjohnsonpint e0a48d7
Update MAUI sample build targets
mattjohnsonpint b3a50ba
Remove tizen from MAUI sample
mattjohnsonpint 6d56715
Put windows versioned tfm back
mattjohnsonpint ead7937
Compile on macos-12 for Xcode 13.3 requirement
mattjohnsonpint 6338150
Fix build error when packing a single project locally
mattjohnsonpint d1bc01b
Fix targets, and pack MAUI on macOS
mattjohnsonpint fd1e354
Target net6.0-windows in maui tests when running on Windows
mattjohnsonpint 1ee6b74
Add supported platform versions
mattjohnsonpint 7862995
Add more platform min versions
mattjohnsonpint c852a14
Update windows target versions
mattjohnsonpint 478a19b
Fix build issues
mattjohnsonpint 310355c
Update for MAUI GA
mattjohnsonpint be0b337
Pin MAUI projects to 6.0.300
mattjohnsonpint 319356a
Merge branch 'main' into maui
mattjohnsonpint dbcc5b2
Update SentryMauiAppBuilderExtensions.cs
SimonCropp e4ada47
Merge branch 'maui' of https://github.com/getsentry/sentry-dotnet int…
SimonCropp 4756421
Update sample app to match MAUI GA
mattjohnsonpint c8d7efb
Temporarily disable the native sentry-android build
mattjohnsonpint 9ad3cb8
Disable auto-init to fix sample app
mattjohnsonpint File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"test\\Sentry.Tests\\Sentry.Tests.csproj" | ||
] | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ | |
"test\\Sentry.Tunnel.Tests\\Sentry.Tunnel.Tests.csproj" | ||
] | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"solution": { | ||
"path": "Sentry.sln", | ||
"projects": [ | ||
"samples\\Sentry.Samples.Maui\\Sentry.Samples.Maui.csproj", | ||
"src\\Sentry.Extensions.Logging\\Sentry.Extensions.Logging.csproj", | ||
"src\\Sentry.Maui\\Sentry.Maui.csproj", | ||
"src\\Sentry\\Sentry.csproj", | ||
"test\\Sentry.Extensions.Logging.Tests\\Sentry.Extensions.Logging.Tests.csproj", | ||
"test\\Sentry.Maui.Tests\\Sentry.Maui.Tests.csproj", | ||
"test\\Sentry.Testing\\Sentry.Testing.csproj", | ||
"test\\Sentry.Tests\\Sentry.Tests.csproj" | ||
] | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version = "1.0" encoding = "UTF-8" ?> | ||
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:Sentry.Samples.Maui" | ||
x:Class="Sentry.Samples.Maui.App"> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Resources/Styles/Colors.xaml" /> | ||
<ResourceDictionary Source="Resources/Styles/Styles.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Sentry.Samples.Maui; | ||
|
||
public partial class App : Application | ||
{ | ||
public App() | ||
{ | ||
InitializeComponent(); | ||
|
||
MainPage = new AppShell(); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<Shell | ||
x:Class="Sentry.Samples.Maui.AppShell" | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:Sentry.Samples.Maui" | ||
Shell.FlyoutBehavior="Disabled"> | ||
|
||
<ShellContent | ||
Title="Home" | ||
ContentTemplate="{DataTemplate local:MainPage}" | ||
Route="MainPage" /> | ||
|
||
</Shell> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Sentry.Samples.Maui; | ||
|
||
public partial class AppShell : Shell | ||
{ | ||
public AppShell() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Sentry.Samples.Maui.MainPage"> | ||
|
||
<ScrollView> | ||
<VerticalStackLayout | ||
Spacing="25" | ||
Padding="30,0" | ||
VerticalOptions="Center"> | ||
|
||
<Image | ||
Source="dotnet_bot.png" | ||
SemanticProperties.Description="Cute dot net bot waving hi to you!" | ||
HeightRequest="200" | ||
HorizontalOptions="Center" /> | ||
|
||
<Label | ||
Text="Hello, World!" | ||
SemanticProperties.HeadingLevel="Level1" | ||
FontSize="32" | ||
HorizontalOptions="Center" /> | ||
|
||
<Label | ||
Text="Welcome to .NET Multi-platform App UI" | ||
SemanticProperties.HeadingLevel="Level2" | ||
SemanticProperties.Description="Welcome to dot net Multi platform App U I" | ||
FontSize="18" | ||
HorizontalOptions="Center" /> | ||
|
||
<Button | ||
x:Name="CounterBtn" | ||
Text="Click me" | ||
SemanticProperties.Hint="Counts the number of times you click" | ||
Clicked="OnCounterClicked" | ||
HorizontalOptions="Center" /> | ||
|
||
<Button | ||
x:Name="ExceptionBtn" | ||
Text="Throw Exception" | ||
SemanticProperties.Hint="Throws an unhandled exception" | ||
Clicked="OnExceptionClicked" | ||
HorizontalOptions="Center" /> | ||
|
||
</VerticalStackLayout> | ||
</ScrollView> | ||
|
||
</ContentPage> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.