From ccc64cdd4950b5056444be8b915929500f548fee Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Fri, 4 Mar 2022 20:06:39 +0800 Subject: [PATCH] Update Maui to the later P14 (#1967) --- .../Platforms/Android/AndroidManifest.xml | 4 +-- .../Platforms/Windows/Package.appxmanifest | 30 ++----------------- .../SkiaSharpSample/SkiaSharpSample.csproj | 5 ++-- source/SkiaSharp.Build.props | 1 + .../Core/Extensions.cs | 20 ++++++------- 5 files changed, 17 insertions(+), 43 deletions(-) diff --git a/samples/Basic/Maui/SkiaSharpSample/Platforms/Android/AndroidManifest.xml b/samples/Basic/Maui/SkiaSharpSample/Platforms/Android/AndroidManifest.xml index 6a35c95a93..a4f8550d78 100644 --- a/samples/Basic/Maui/SkiaSharpSample/Platforms/Android/AndroidManifest.xml +++ b/samples/Basic/Maui/SkiaSharpSample/Platforms/Android/AndroidManifest.xml @@ -1,6 +1,4 @@  - - - + \ No newline at end of file diff --git a/samples/Basic/Maui/SkiaSharpSample/Platforms/Windows/Package.appxmanifest b/samples/Basic/Maui/SkiaSharpSample/Platforms/Windows/Package.appxmanifest index a706079bce..aa38e779ac 100644 --- a/samples/Basic/Maui/SkiaSharpSample/Platforms/Windows/Package.appxmanifest +++ b/samples/Basic/Maui/SkiaSharpSample/Platforms/Windows/Package.appxmanifest @@ -6,15 +6,10 @@ xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="uap rescap"> - + - SkiaSharpSample Microsoft - Assets\appiconStoreLogo.png @@ -27,28 +22,7 @@ - - - - - - - - - - - + diff --git a/samples/Basic/Maui/SkiaSharpSample/SkiaSharpSample.csproj b/samples/Basic/Maui/SkiaSharpSample/SkiaSharpSample.csproj index e5ca95ef6a..9d84a75d7a 100644 --- a/samples/Basic/Maui/SkiaSharpSample/SkiaSharpSample.csproj +++ b/samples/Basic/Maui/SkiaSharpSample/SkiaSharpSample.csproj @@ -10,9 +10,10 @@ SkiaSharpSample SkiaSharpSample com.companyname.SkiaSharpSample + 69157F47-E4B3-4267-82FE-04460C520A8F 1 1.0 - 9.0 + 10.0 True 14.2 14.0 @@ -21,7 +22,7 @@ - + diff --git a/source/SkiaSharp.Build.props b/source/SkiaSharp.Build.props index 1f5a4215a2..82acabcf5c 100644 --- a/source/SkiaSharp.Build.props +++ b/source/SkiaSharp.Build.props @@ -22,6 +22,7 @@ false $(MSBuildThisFileDirectory)..\docs\SkiaSharpAPI 9.0 + 10.0 diff --git a/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Core/Core/Extensions.cs b/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Core/Core/Extensions.cs index 2600f0693e..d6fbdda418 100644 --- a/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Core/Core/Extensions.cs +++ b/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Core/Core/Extensions.cs @@ -46,22 +46,22 @@ public static SKSize ToSKSize(this SizeF size) => // Rect - public static Rectangle ToMauiRectangle(this SKRectI rect) => - new Rectangle(rect.Left, rect.Top, rect.Width, rect.Height); + public static Rect ToMauiRectangle(this SKRectI rect) => + new Rect(rect.Left, rect.Top, rect.Width, rect.Height); - public static RectangleF ToMauiRectangleF(this SKRectI rect) => - new RectangleF(rect.Left, rect.Top, rect.Width, rect.Height); + public static RectF ToMauiRectangleF(this SKRectI rect) => + new RectF(rect.Left, rect.Top, rect.Width, rect.Height); - public static Rectangle ToMauiRectangle(this SKRect rect) => - new Rectangle(rect.Left, rect.Top, rect.Width, rect.Height); + public static Rect ToMauiRectangle(this SKRect rect) => + new Rect(rect.Left, rect.Top, rect.Width, rect.Height); - public static RectangleF ToMauiRectangleF(this SKRect rect) => - new RectangleF(rect.Left, rect.Top, rect.Width, rect.Height); + public static RectF ToMauiRectangleF(this SKRect rect) => + new RectF(rect.Left, rect.Top, rect.Width, rect.Height); - public static SKRect ToSKRect(this Rectangle rect) => + public static SKRect ToSKRect(this Rect rect) => new SKRect((float)rect.Left, (float)rect.Top, (float)rect.Right, (float)rect.Bottom); - public static SKRect ToSKRect(this RectangleF rect) => + public static SKRect ToSKRect(this RectF rect) => new SKRect(rect.Left, rect.Top, rect.Right, rect.Bottom); // Color