Skip to content
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

Bump Xamarin.UITest from 4.0.0 to 4.0.1 #190

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="Xam.Plugin.DeviceInfo" Version="4.1.1" />
<PackageReference Include="Xamarin.UITest" Version="4.0.0" />
<PackageReference Include="Xamarin.UITest" Version="4.0.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<PackageReference Include="Selenium.Support" Version="4.1.1" />
<PackageReference Include="Selenium.WebDriver" Version="4.1.1" />
<PackageReference Include="Xam.Plugin.DeviceInfo" Version="4.1.1" />
<PackageReference Include="Xamarin.UITest" Version="4.0.0" />
<PackageReference Include="Xamarin.UITest" Version="4.0.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="Xam.Plugin.DeviceInfo" Version="4.1.1" />
<PackageReference Include="Xamarin.UITest" Version="4.0.0" />
<PackageReference Include="Xamarin.UITest" Version="4.0.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/Controls/src/Core/Platform/iOS/DragAndDropDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -39,7 +39,7 @@ public UIDragItem[] GetItemsForBeginningSession(UIDragInteraction interaction, I
{
return HandleDragStarting((View)_viewHandler.VirtualView, _viewHandler);
}
#endregion
#endregion

[Export("dropInteraction:canHandleSession:")]
[Preserve(Conditional = true)]
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/Core/Platform/iOS/ModalWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/tests/DeviceTests/ControlsHandlerTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected THandler CreateHandler<THandler>(IElement view)
return CreateHandler<THandler>(view, MauiContext);
}

protected async Task<THandler> CreateHandlerAsync<THandler>(IElement view)
protected async Task<THandler> CreateHandlerAsync<THandler>(IElement view)
where THandler : IElementHandler, new() =>
await InvokeOnMainThreadAsync(() => CreateHandler<THandler>(view));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -45,7 +45,7 @@ await InvokeOnMainThreadAsync(() =>
Assert.Equal(platformShadow.Opacity, expectedShadow.Opacity);
Assert.Equal(platformShadow.Offset, expectedShadow.Offset);
}
}));
}));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Core/src/Handlers/Editor/EditorHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static void MapPlaceholderColor(IEditorHandler handler, IEditor editor)
public static void MapCharacterSpacing(IEditorHandler handler, IEditor editor) =>
handler.PlatformView?.UpdateCharacterSpacing(editor);

public static void MapMaxLength(IEditorHandler handler, IEditor editor) =>
public static void MapMaxLength(IEditorHandler handler, IEditor editor) =>
handler.PlatformView?.UpdateMaxLength(editor);

public static void MapIsReadOnly(IEditorHandler handler, IEditor editor) =>
Expand All @@ -93,7 +93,7 @@ public static void MapIsTextPredictionEnabled(IEditorHandler handler, IEditor ed
public static void MapFont(IEditorHandler handler, IEditor editor) =>
handler.PlatformView?.UpdateFont(editor, handler.GetRequiredService<IFontManager>());

public static void MapHorizontalTextAlignment(IEditorHandler handler, IEditor editor) =>
public static void MapHorizontalTextAlignment(IEditorHandler handler, IEditor editor) =>
handler.PlatformView?.UpdateHorizontalTextAlignment(editor);

public static void MapVerticalTextAlignment(IEditorHandler handler, IEditor editor) =>
Expand Down
6 changes: 3 additions & 3 deletions src/Core/src/Handlers/ViewHandlerExtensions.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ internal static void PlatformArrangeHandler(this IViewHandler viewHandler, Rect
viewHandler.Invoke(nameof(IView.Frame), frame);
}

internal static void PrepareForTextViewArrange(this IViewHandler handler, Rect frame)
internal static void PrepareForTextViewArrange(this IViewHandler handler, Rect frame)
{
if (frame.Width < 0 || frame.Height < 0)
{
Expand Down Expand Up @@ -164,7 +164,7 @@ internal static void PrepareForTextViewArrange(this IViewHandler handler, Rect f
}
}

internal static bool NeedsExactMeasure(this IView virtualView)
internal static bool NeedsExactMeasure(this IView virtualView)
{
if (virtualView.VerticalLayoutAlignment != Primitives.LayoutAlignment.Fill
&& virtualView.HorizontalLayoutAlignment != Primitives.LayoutAlignment.Fill)
Expand All @@ -185,7 +185,7 @@ internal static bool NeedsExactMeasure(this IView virtualView)
return true;
}

internal static int MakeMeasureSpecExact(this Context context, double size)
internal static int MakeMeasureSpecExact(this Context context, double size)
{
// Convert to a native size to create the spec for measuring
var deviceSize = (int)context!.ToPixels(size);
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Platform/Android/KeyboardManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static bool IsSoftKeyboardVisible(this AView view)
var insets = ViewCompat.GetRootWindowInsets(view);
if (insets == null)
return false;

var result = insets.IsVisible(WindowInsetsCompat.Type.Ime());
return result;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Core/src/Platform/iOS/SearchBarExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Essentials/src/Accelerometer/Accelerometer.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public class AccelerometerChangedEventArgs : EventArgs
/// Public constructor for accelerometer data.
/// </summary>
/// <param name="x">X data</param>
/// <param name="y">Y data</param>
/// <param name="z">Z data</param>
/// <param name="y">Y data</param>
/// <param name="z">Z data</param>
public AccelerometerData(double x, double y, double z)
: this((float)x, (float)y, (float)z)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Essentials/src/Platform/PlatformUtils.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down