-
-
Notifications
You must be signed in to change notification settings - Fork 143
Add .NET MAUI sample app #367
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
Open
niemyjski
wants to merge
4
commits into
main
Choose a base branch
from
feature/maui-sample
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| namespace Exceptionless.SampleMaui; | ||
|
|
||
| public sealed class App : Application { | ||
| private readonly ExceptionlessClient _exceptionlessClient; | ||
| private readonly MainPage _mainPage; | ||
|
|
||
| public App(MainPage mainPage, ExceptionlessClient exceptionlessClient) { | ||
| _exceptionlessClient = exceptionlessClient; | ||
| _mainPage = mainPage; | ||
| } | ||
|
|
||
| protected override Window CreateWindow(IActivationState? activationState) { | ||
| return new Window(_mainPage); | ||
| } | ||
|
|
||
| protected override void OnSleep() { | ||
| _ = _exceptionlessClient.ProcessQueueAsync(); | ||
| base.OnSleep(); | ||
| } | ||
| } |
40 changes: 40 additions & 0 deletions
40
samples/Exceptionless.SampleMaui/Exceptionless.SampleMaui.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 |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>net10.0-android</TargetFrameworks> | ||
| <TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('linux'))">$(TargetFrameworks);net10.0-ios;net10.0-maccatalyst</TargetFrameworks> | ||
| <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks> | ||
| <OutputType>Exe</OutputType> | ||
| <RootNamespace>Exceptionless.SampleMaui</RootNamespace> | ||
| <UseMaui>true</UseMaui> | ||
| <SingleProject>true</SingleProject> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
|
|
||
| <ApplicationTitle>Exceptionless MAUI Sample</ApplicationTitle> | ||
| <ApplicationId>com.exceptionless.samplemaui</ApplicationId> | ||
| <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> | ||
| <ApplicationVersion>1</ApplicationVersion> | ||
| <WindowsPackageType>None</WindowsPackageType> | ||
|
|
||
| <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> | ||
| <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion> | ||
| <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion> | ||
| <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> | ||
| <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#3A6EA5" /> | ||
| <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#3A6EA5" BaseSize="128,128" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\..\src\Exceptionless\Exceptionless.csproj" SetTargetFramework="TargetFramework=netstandard2.0" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
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,193 @@ | ||
| using Exceptionless.Logging; | ||
| using Microsoft.Maui.Controls.Shapes; | ||
|
|
||
| namespace Exceptionless.SampleMaui; | ||
|
|
||
| public sealed class MainPage : ContentPage { | ||
| private readonly ExceptionlessClient _exceptionlessClient; | ||
| private readonly Label _statusLabel; | ||
| private readonly Label _lastReferenceIdLabel; | ||
| private readonly ActivityIndicator _activityIndicator; | ||
|
|
||
| public MainPage(ExceptionlessClient exceptionlessClient) { | ||
| _exceptionlessClient = exceptionlessClient; | ||
|
|
||
| Title = "Exceptionless"; | ||
| BackgroundColor = Color.FromArgb("#F6F8FA"); | ||
|
|
||
| _statusLabel = new Label { | ||
| Text = "Ready", | ||
| FontSize = 14, | ||
| TextColor = Color.FromArgb("#314256"), | ||
| LineBreakMode = LineBreakMode.WordWrap | ||
| }; | ||
|
|
||
| _lastReferenceIdLabel = new Label { | ||
| Text = "Last reference id: none", | ||
| FontSize = 13, | ||
| TextColor = Color.FromArgb("#576575"), | ||
| LineBreakMode = LineBreakMode.TailTruncation | ||
| }; | ||
|
|
||
| _activityIndicator = new ActivityIndicator { | ||
| IsVisible = false, | ||
| Color = Color.FromArgb("#276749") | ||
| }; | ||
|
|
||
| Content = BuildContent(); | ||
| } | ||
|
|
||
| private View BuildContent() { | ||
| var sendExceptionButton = CreateActionButton("Send Handled Exception", OnSendExceptionClicked); | ||
| var sendLogButton = CreateActionButton("Send Warning Log", OnSendLogClicked); | ||
| var trackFeatureButton = CreateActionButton("Track Feature", OnTrackFeatureClicked); | ||
| var flushButton = CreateActionButton("Flush Queue", OnFlushClicked); | ||
|
|
||
| return new ScrollView { | ||
| Content = new VerticalStackLayout { | ||
| Padding = new Thickness(24, 28), | ||
| Spacing = 18, | ||
| Children = { | ||
| new Label { | ||
| Text = "Exceptionless MAUI Sample", | ||
| FontSize = 26, | ||
| FontAttributes = FontAttributes.Bold, | ||
| TextColor = Color.FromArgb("#1D2733") | ||
| }, | ||
| new Label { | ||
| Text = "Submit sample events through the core Exceptionless client.", | ||
| FontSize = 15, | ||
| TextColor = Color.FromArgb("#576575"), | ||
| LineBreakMode = LineBreakMode.WordWrap | ||
| }, | ||
|
niemyjski marked this conversation as resolved.
|
||
| new Border { | ||
| Stroke = Color.FromArgb("#D8DEE6"), | ||
| StrokeThickness = 1, | ||
| BackgroundColor = Colors.White, | ||
| StrokeShape = new RoundRectangle { CornerRadius = 8 }, | ||
| Padding = new Thickness(18), | ||
| Content = new VerticalStackLayout { | ||
| Spacing = 12, | ||
| Children = { | ||
| new Label { | ||
| Text = "Client", | ||
| FontSize = 18, | ||
| FontAttributes = FontAttributes.Bold, | ||
| TextColor = Color.FromArgb("#1D2733") | ||
| }, | ||
|
niemyjski marked this conversation as resolved.
|
||
| new Label { | ||
| Text = $"Server: {_exceptionlessClient.Configuration.ServerUrl}", | ||
| FontSize = 13, | ||
| TextColor = Color.FromArgb("#576575"), | ||
| LineBreakMode = LineBreakMode.TailTruncation | ||
| }, | ||
|
niemyjski marked this conversation as resolved.
|
||
| new Label { | ||
| Text = $"Private information: {_exceptionlessClient.Configuration.IncludePrivateInformation}", | ||
| FontSize = 13, | ||
| TextColor = Color.FromArgb("#576575") | ||
| }, | ||
|
niemyjski marked this conversation as resolved.
|
||
| _statusLabel, | ||
| _lastReferenceIdLabel, | ||
| _activityIndicator | ||
| } | ||
| } | ||
| }, | ||
| new Grid { | ||
| ColumnDefinitions = { | ||
| new ColumnDefinition { Width = GridLength.Star }, | ||
| new ColumnDefinition { Width = GridLength.Star } | ||
| }, | ||
| RowDefinitions = { | ||
| new RowDefinition { Height = GridLength.Auto }, | ||
| new RowDefinition { Height = GridLength.Auto } | ||
| }, | ||
| ColumnSpacing = 12, | ||
| RowSpacing = 12, | ||
| Children = { | ||
| sendExceptionButton, | ||
| sendLogButton, | ||
| trackFeatureButton, | ||
| flushButton | ||
|
niemyjski marked this conversation as resolved.
|
||
| } | ||
| } | ||
|
niemyjski marked this conversation as resolved.
Outdated
|
||
| } | ||
| } | ||
| }; | ||
| } | ||
|
|
||
| private static Button CreateActionButton(string text, EventHandler clicked) { | ||
| var button = new Button { | ||
| Text = text, | ||
| BackgroundColor = Color.FromArgb("#285A84"), | ||
| TextColor = Colors.White, | ||
| CornerRadius = 8, | ||
| FontAttributes = FontAttributes.Bold, | ||
| MinimumHeightRequest = 48 | ||
| }; | ||
|
|
||
| button.Clicked += clicked; | ||
| return button; | ||
| } | ||
|
|
||
| private async void OnSendExceptionClicked(object? sender, EventArgs e) { | ||
| await RunClientActionAsync("Handled exception queued.", () => { | ||
| string referenceId = Guid.NewGuid().ToString("N"); | ||
|
|
||
| try { | ||
| throw new InvalidOperationException("Exceptionless MAUI sample handled exception."); | ||
| } catch (Exception ex) { | ||
| ex.ToExceptionless(_exceptionlessClient) | ||
| .SetReferenceId(referenceId) | ||
| .AddTags("handled") | ||
| .SetProperty("Screen", nameof(MainPage)) | ||
| .Submit(); | ||
| } | ||
|
github-code-quality[bot] marked this conversation as resolved.
Fixed
|
||
|
|
||
| SetLastReferenceId(referenceId); | ||
| return Task.CompletedTask; | ||
| }); | ||
| } | ||
|
|
||
| private async void OnSendLogClicked(object? sender, EventArgs e) { | ||
| await RunClientActionAsync("Warning log queued.", () => { | ||
| _exceptionlessClient.SubmitLog("Exceptionless.SampleMaui.MainPage", "MAUI sample warning log.", LogLevel.Warn); | ||
| SetLastReferenceId(_exceptionlessClient.GetLastReferenceId()); | ||
| return Task.CompletedTask; | ||
| }); | ||
| } | ||
|
|
||
| private async void OnTrackFeatureClicked(object? sender, EventArgs e) { | ||
| await RunClientActionAsync("Feature usage queued.", () => { | ||
| _exceptionlessClient.SubmitFeatureUsage("MauiSample.TrackFeature"); | ||
| SetLastReferenceId(_exceptionlessClient.GetLastReferenceId()); | ||
| return Task.CompletedTask; | ||
| }); | ||
| } | ||
|
|
||
| private async void OnFlushClicked(object? sender, EventArgs e) { | ||
| await RunClientActionAsync("Queue processed.", () => _exceptionlessClient.ProcessQueueAsync()); | ||
| } | ||
|
|
||
| private async Task RunClientActionAsync(string successMessage, Func<Task> action) { | ||
| try { | ||
| _activityIndicator.IsVisible = true; | ||
| _activityIndicator.IsRunning = true; | ||
| _statusLabel.Text = "Working..."; | ||
|
|
||
| await action(); | ||
|
|
||
| _statusLabel.Text = successMessage; | ||
| } catch (Exception ex) { | ||
| _statusLabel.Text = $"Error: {ex.Message}"; | ||
| } finally { | ||
|
github-code-quality[bot] marked this conversation as resolved.
Fixed
|
||
| _activityIndicator.IsRunning = false; | ||
| _activityIndicator.IsVisible = false; | ||
| } | ||
| } | ||
|
|
||
| private void SetLastReferenceId(string? referenceId) { | ||
| _lastReferenceIdLabel.Text = String.IsNullOrEmpty(referenceId) | ||
| ? "Last reference id: none" | ||
| : $"Last reference id: {referenceId}"; | ||
| } | ||
| } | ||
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,43 @@ | ||
| using Exceptionless.Logging; | ||
| using Microsoft.Extensions.DependencyInjection; | ||
| using Microsoft.Maui.Storage; | ||
|
|
||
| namespace Exceptionless.SampleMaui; | ||
|
|
||
| public static class MauiProgram { | ||
| private const string DefaultApiKey = "LhhP1C9gijpSKCslHHCvwdSIz298twx271nTest"; | ||
| private const string DefaultServerUrl = "https://ex.dev.localhost:7111"; | ||
|
|
||
| public static MauiApp CreateMauiApp() { | ||
| var builder = MauiApp.CreateBuilder(); | ||
| var exceptionlessClient = CreateExceptionlessClient(); | ||
|
|
||
| builder | ||
| .UseMauiApp<App>(); | ||
|
|
||
| builder.Services.AddSingleton(exceptionlessClient); | ||
| builder.Services.AddSingleton<MainPage>(); | ||
|
|
||
| return builder.Build(); | ||
| } | ||
|
|
||
| private static ExceptionlessClient CreateExceptionlessClient() { | ||
| string appDataDirectory = FileSystem.Current.AppDataDirectory; | ||
|
|
||
| var client = new ExceptionlessClient(config => { | ||
| config.ApiKey = Environment.GetEnvironmentVariable("EXCEPTIONLESS_API_KEY") ?? DefaultApiKey; | ||
| config.ServerUrl = Environment.GetEnvironmentVariable("EXCEPTIONLESS_SERVER_URL") ?? DefaultServerUrl; | ||
| config.IncludePrivateInformation = false; | ||
| config.DefaultTags.Add("maui"); | ||
| config.DefaultTags.Add("sample"); | ||
| config.DefaultData["Platform"] = DeviceInfo.Current.Platform.ToString(); | ||
| config.DefaultData["DeviceIdiom"] = DeviceInfo.Current.Idiom.ToString(); | ||
| config.SetVersion(AppInfo.Current.VersionString); | ||
| config.UseFolderStorage(Path.Combine(appDataDirectory, "exceptionless-queue")); | ||
|
github-code-quality[bot] marked this conversation as resolved.
Fixed
|
||
| config.UseFileLogger(Path.Combine(appDataDirectory, "exceptionless-client.log"), LogLevel.Info); | ||
|
github-code-quality[bot] marked this conversation as resolved.
Fixed
|
||
| }); | ||
|
|
||
| client.Startup(); | ||
| return client; | ||
| } | ||
| } | ||
6 changes: 6 additions & 0 deletions
6
samples/Exceptionless.SampleMaui/Platforms/Android/AndroidManifest.xml
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,6 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true" /> | ||
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
| <uses-permission android:name="android.permission.INTERNET" /> | ||
| </manifest> |
8 changes: 8 additions & 0 deletions
8
samples/Exceptionless.SampleMaui/Platforms/Android/MainActivity.cs
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,8 @@ | ||
| using Android.App; | ||
| using Android.Content.PM; | ||
|
|
||
| namespace Exceptionless.SampleMaui; | ||
|
|
||
| [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] | ||
| public class MainActivity : MauiAppCompatActivity { | ||
| } |
12 changes: 12 additions & 0 deletions
12
samples/Exceptionless.SampleMaui/Platforms/Android/MainApplication.cs
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,12 @@ | ||
| using Android.App; | ||
| using Android.Runtime; | ||
|
|
||
| namespace Exceptionless.SampleMaui; | ||
|
|
||
| [Application] | ||
| public class MainApplication : MauiApplication { | ||
| public MainApplication(IntPtr handle, JniHandleOwnership ownership) : base(handle, ownership) { | ||
| } | ||
|
|
||
| protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); | ||
| } |
8 changes: 8 additions & 0 deletions
8
samples/Exceptionless.SampleMaui/Platforms/MacCatalyst/AppDelegate.cs
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,8 @@ | ||
| using Foundation; | ||
|
|
||
| namespace Exceptionless.SampleMaui; | ||
|
|
||
| [Register("AppDelegate")] | ||
| public class AppDelegate : MauiUIApplicationDelegate { | ||
| protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); | ||
| } |
10 changes: 10 additions & 0 deletions
10
samples/Exceptionless.SampleMaui/Platforms/MacCatalyst/Entitlements.plist
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,10 @@ | ||
| <?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>com.apple.security.app-sandbox</key> | ||
| <true/> | ||
| <key>com.apple.security.network.client</key> | ||
| <true/> | ||
| </dict> | ||
| </plist> |
31 changes: 31 additions & 0 deletions
31
samples/Exceptionless.SampleMaui/Platforms/MacCatalyst/Info.plist
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,31 @@ | ||
| <?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>UIDeviceFamily</key> | ||
| <array> | ||
| <integer>2</integer> | ||
| </array> | ||
| <key>LSApplicationCategoryType</key> | ||
| <string>public.app-category.developer-tools</string> | ||
| <key>UIRequiredDeviceCapabilities</key> | ||
| <array> | ||
| <string>arm64</string> | ||
| </array> | ||
| <key>UISupportedInterfaceOrientations</key> | ||
| <array> | ||
| <string>UIInterfaceOrientationPortrait</string> | ||
| <string>UIInterfaceOrientationLandscapeLeft</string> | ||
| <string>UIInterfaceOrientationLandscapeRight</string> | ||
| </array> | ||
| <key>UISupportedInterfaceOrientations~ipad</key> | ||
| <array> | ||
| <string>UIInterfaceOrientationPortrait</string> | ||
| <string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
| <string>UIInterfaceOrientationLandscapeLeft</string> | ||
| <string>UIInterfaceOrientationLandscapeRight</string> | ||
| </array> | ||
| <key>XSAppIconAssets</key> | ||
| <string>Assets.xcassets/appicon.appiconset</string> | ||
| </dict> | ||
| </plist> |
9 changes: 9 additions & 0 deletions
9
samples/Exceptionless.SampleMaui/Platforms/MacCatalyst/Program.cs
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 @@ | ||
| using UIKit; | ||
|
|
||
| namespace Exceptionless.SampleMaui; | ||
|
|
||
| public static class Program { | ||
| private static void Main(string[] args) { | ||
| UIApplication.Main(args, null, typeof(AppDelegate)); | ||
| } | ||
| } |
Oops, something went wrong.
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.