From 645f7fab0d60dc4a0e34a5600c79e10565f324f3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Dec 2022 09:16:57 +0000 Subject: [PATCH 1/2] Bump Microsoft.AspNetCore.Authentication.MicrosoftAccount Bumps [Microsoft.AspNetCore.Authentication.MicrosoftAccount](https://github.com/dotnet/aspnetcore) from 7.0.0 to 7.0.1. - [Release notes](https://github.com/dotnet/aspnetcore/releases) - [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md) - [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.0...v7.0.1) --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Authentication.MicrosoftAccount dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- eng/Versions.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/Versions.props b/eng/Versions.props index c18d56711ebe..1d6cbd4bd2bf 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -30,7 +30,7 @@ 7.0.0 7.0.0 7.0.0 - 7.0.0 + 7.0.1 7.0.0 7.0.0 7.0.0 From 3111e23e9b5d74235299c2df9560a6735f206ceb Mon Sep 17 00:00:00 2001 From: GitHub Actions Autoformatter Date: Wed, 14 Dec 2022 09:18:06 +0000 Subject: [PATCH 2/2] Auto-format source code --- src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs | 4 ++-- .../Compatibility/Handlers/ListView/iOS/CellRenderer.cs | 2 +- src/Controls/src/Core/Platform/iOS/DragAndDropDelegate.cs | 4 ++-- src/Controls/src/Core/Platform/iOS/ModalWrapper.cs | 2 +- src/Controls/tests/DeviceTests/ControlsHandlerTestBase.cs | 2 +- .../tests/DeviceTests/Elements/Frame/FrameTests.iOS.cs | 4 ++-- .../tests/Xaml.UnitTests/NativeViewsAndBindings.xaml.cs | 2 +- src/Core/src/Platform/iOS/SearchBarExtensions.cs | 6 +++--- src/Essentials/src/Platform/PlatformUtils.android.cs | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs b/src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs index 078a153b29f5..ed14f198a469 100644 --- a/src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs +++ b/src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs @@ -199,12 +199,12 @@ public void StartUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSchemeTask dic.Add((NSString)"Content-Type", (NSString)contentType); // Disable local caching. This will prevent user scripts from executing correctly. dic.Add((NSString)"Cache-Control", (NSString)"no-cache, max-age=0, must-revalidate, no-store"); - if(urlSchemeTask.Request.Url != null) + if (urlSchemeTask.Request.Url != null) { using var response = new NSHttpUrlResponse(urlSchemeTask.Request.Url, statusCode, "HTTP/1.1", dic); urlSchemeTask.DidReceiveResponse(response); } - + } urlSchemeTask.DidReceiveData(NSData.FromArray(responseBytes)); urlSchemeTask.DidFinish(); diff --git a/src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/CellRenderer.cs b/src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/CellRenderer.cs index 4b6d1df7ee7f..87659d33bd33 100644 --- a/src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/CellRenderer.cs +++ b/src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/CellRenderer.cs @@ -48,7 +48,7 @@ public virtual UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, WireUpForceUpdateSizeRequested(item, tvc, tv); - if(OperatingSystem.IsIOSVersionAtLeast(14)) + if (OperatingSystem.IsIOSVersionAtLeast(14)) { var content = tvc.DefaultContentConfiguration; content.Text = item.ToString(); diff --git a/src/Controls/src/Core/Platform/iOS/DragAndDropDelegate.cs b/src/Controls/src/Core/Platform/iOS/DragAndDropDelegate.cs index fd34a6b6dc98..e637f31d9293 100644 --- a/src/Controls/src/Core/Platform/iOS/DragAndDropDelegate.cs +++ b/src/Controls/src/Core/Platform/iOS/DragAndDropDelegate.cs @@ -21,7 +21,7 @@ public DragAndDropDelegate(IPlatformViewHandler viewHandler) _viewHandler = viewHandler; } - #region UIDragInteractionDelegate +#region UIDragInteractionDelegate [Export("dragInteraction:session:willEndWithOperation:")] [Preserve(Conditional = true)] public void SessionWillEnd(UIDragInteraction interaction, IUIDragSession session, UIDropOperation operation) @@ -39,7 +39,7 @@ public UIDragItem[] GetItemsForBeginningSession(UIDragInteraction interaction, I { return HandleDragStarting((View)_viewHandler.VirtualView, _viewHandler); } - #endregion +#endregion [Export("dropInteraction:canHandleSession:")] [Preserve(Conditional = true)] diff --git a/src/Controls/src/Core/Platform/iOS/ModalWrapper.cs b/src/Controls/src/Core/Platform/iOS/ModalWrapper.cs index 5b2bac4eb04d..f99967647a54 100644 --- a/src/Controls/src/Core/Platform/iOS/ModalWrapper.cs +++ b/src/Controls/src/Core/Platform/iOS/ModalWrapper.cs @@ -104,7 +104,7 @@ public override UIInterfaceOrientation PreferredInterfaceOrientationForPresentat return base.PreferredInterfaceOrientationForPresentation(); } -// TODO: [UnsupportedOSPlatform("ios6.0")] + // TODO: [UnsupportedOSPlatform("ios6.0")] #pragma warning disable CA1416, CA1422 public override bool ShouldAutorotate() { diff --git a/src/Controls/tests/DeviceTests/ControlsHandlerTestBase.cs b/src/Controls/tests/DeviceTests/ControlsHandlerTestBase.cs index 31a6a12a29d7..72aaeda650b0 100644 --- a/src/Controls/tests/DeviceTests/ControlsHandlerTestBase.cs +++ b/src/Controls/tests/DeviceTests/ControlsHandlerTestBase.cs @@ -67,7 +67,7 @@ protected THandler CreateHandler(IElement view) return CreateHandler(view, MauiContext); } - protected async Task CreateHandlerAsync(IElement view) + protected async Task CreateHandlerAsync(IElement view) where THandler : IElementHandler, new() => await InvokeOnMainThreadAsync(() => CreateHandler(view)); diff --git a/src/Controls/tests/DeviceTests/Elements/Frame/FrameTests.iOS.cs b/src/Controls/tests/DeviceTests/Elements/Frame/FrameTests.iOS.cs index a42c70c15704..5a3acd6cc475 100644 --- a/src/Controls/tests/DeviceTests/Elements/Frame/FrameTests.iOS.cs +++ b/src/Controls/tests/DeviceTests/Elements/Frame/FrameTests.iOS.cs @@ -36,7 +36,7 @@ await InvokeOnMainThreadAsync(() => // so on iOS we just return the shadow that was hard coded into the renderer var expectedShadow = new Shadow() { Radius = 5, Opacity = 0.8f, Offset = new Point(0, 0), Brush = Brush.Black }; - if(platformView.Element is IView element) + if (platformView.Element is IView element) { var platformShadow = element.Shadow; await AssertionExtensions.Wait(() => platformShadow != null); @@ -45,7 +45,7 @@ await InvokeOnMainThreadAsync(() => Assert.Equal(platformShadow.Opacity, expectedShadow.Opacity); Assert.Equal(platformShadow.Offset, expectedShadow.Offset); } - })); + })); } } } \ No newline at end of file diff --git a/src/Controls/tests/Xaml.UnitTests/NativeViewsAndBindings.xaml.cs b/src/Controls/tests/Xaml.UnitTests/NativeViewsAndBindings.xaml.cs index b74fff2bdb70..9966946350fc 100644 --- a/src/Controls/tests/Xaml.UnitTests/NativeViewsAndBindings.xaml.cs +++ b/src/Controls/tests/Xaml.UnitTests/NativeViewsAndBindings.xaml.cs @@ -297,7 +297,7 @@ public void Setup() [TearDown] public void TearDown() => AppInfo.SetCurrent(null); [Test] - public void NativeInContentView([Values(false)]bool useCompiledXaml) + public void NativeInContentView([Values(false)] bool useCompiledXaml) { var layout = new NativeViewsAndBindings(useCompiledXaml); layout.BindingContext = new diff --git a/src/Core/src/Platform/iOS/SearchBarExtensions.cs b/src/Core/src/Platform/iOS/SearchBarExtensions.cs index fa128cd4681d..75422ec6430b 100644 --- a/src/Core/src/Platform/iOS/SearchBarExtensions.cs +++ b/src/Core/src/Platform/iOS/SearchBarExtensions.cs @@ -23,13 +23,13 @@ internal static void UpdateBackground(this UISearchBar uiSearchBar, ISearchBar s if (background is SolidPaint solidPaint) uiSearchBar.BarTintColor = solidPaint.Color.ToPlatform(); - if(background is GradientPaint gradientPaint) + if (background is GradientPaint gradientPaint) ViewExtensions.UpdateBackground(uiSearchBar, gradientPaint); - + if (background == null) uiSearchBar.BarTintColor = UISearchBar.Appearance.BarTintColor; } - + public static void UpdateIsEnabled(this UISearchBar uiSearchBar, ISearchBar searchBar) { uiSearchBar.UserInteractionEnabled = searchBar.IsEnabled; diff --git a/src/Essentials/src/Platform/PlatformUtils.android.cs b/src/Essentials/src/Platform/PlatformUtils.android.cs index e5cb453c3b18..b20c8eb5e1d1 100644 --- a/src/Essentials/src/Platform/PlatformUtils.android.cs +++ b/src/Essentials/src/Platform/PlatformUtils.android.cs @@ -81,7 +81,7 @@ internal static void SetLocale(Java.Util.Locale locale) #pragma warning disable CS0618 // Type or member is obsolete #pragma warning disable CA1422 // Validate platform compatibility #pragma warning disable CA1416 // Validate platform compatibility - config.Locale = locale; + config.Locale = locale; resources.UpdateConfiguration(config, resources.DisplayMetrics); #pragma warning restore CA1422 // Validate platform compatibility #pragma warning restore CA1416 // Validate platform compatibility