Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/6.0.3xx'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed May 12, 2022
2 parents b7d1632 + 7dda2c6 commit a5ac726
Show file tree
Hide file tree
Showing 102 changed files with 108 additions and 118 deletions.
7 changes: 1 addition & 6 deletions .nuspec/Microsoft.Maui.Controls.MultiTargeting.targets
Expand Up @@ -79,11 +79,6 @@
<MonoAndroidAssetsPrefix>$(AndroidProjectFolder)Assets</MonoAndroidAssetsPrefix>
</PropertyGroup>

<!-- .NET Standard or .NET 6 -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'net$(_MauiDotNetVersion)' ">
<DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants>
</PropertyGroup>

<!-- Android -->
<PropertyGroup Condition=" '$(_MauiTargetPlatformIsAndroid)' == 'True' ">
<DefineConstants>$(DefineConstants);MONOANDROID</DefineConstants>
Expand Down Expand Up @@ -132,7 +127,7 @@
<PackageReference Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop" />
</ItemGroup>
<ItemGroup Condition=" '$(_MauiTargetPlatformIsTizen)' == 'True' ">
<PackageReference Include="Tizen.UIExtensions.ElmSharp" />
<PackageReference Include="Tizen.UIExtensions.ElmSharp" PrivateAssets="all" />
<PackageReference Include="Microsoft.Maui.Graphics.Skia" />
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions src/BlazorWebView/src/Maui/BlazorWebViewHandler.cs
Expand Up @@ -46,7 +46,7 @@ public BlazorWebViewHandler(PropertyMapper? mapper) : base(mapper ?? BlazorWebVi
/// <param name="webView">The <see cref="IBlazorWebView"/>.</param>
public static void MapHostPage(BlazorWebViewHandler handler, IBlazorWebView webView)
{
#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)
handler.HostPage = webView.HostPage;
handler.StartWebViewCoreIfPossible();
#endif
Expand All @@ -59,13 +59,13 @@ public static void MapHostPage(BlazorWebViewHandler handler, IBlazorWebView webV
/// <param name="webView">The <see cref="IBlazorWebView"/>.</param>
public static void MapRootComponents(BlazorWebViewHandler handler, IBlazorWebView webView)
{
#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)
handler.RootComponents = webView.RootComponents;
handler.StartWebViewCoreIfPossible();
#endif
}

#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)
private string? HostPage { get; set; }

internal void UrlLoading(UrlLoadingEventArgs args) =>
Expand Down
2 changes: 1 addition & 1 deletion src/Compatibility/Core/src/RendererToHandlerShim.cs
Expand Up @@ -25,7 +25,7 @@
using PlatformView = ElmSharp.EvasObject;
using Microsoft.Maui.Controls.Compatibility.Platform.Tizen;
using ViewHandler = Microsoft.Maui.Handlers.ViewHandler<Microsoft.Maui.IView, ElmSharp.EvasObject>;
#elif NETSTANDARD
#elif (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
using ViewHandler = Microsoft.Maui.Handlers.ViewHandler<Microsoft.Maui.IView, System.Object>;
#elif WINDOWS
Expand Down
Expand Up @@ -2,7 +2,7 @@
using Microsoft.Maui;
using Microsoft.Maui.Handlers;
#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)
using Microsoft.Maui.Graphics.Skia.Views;
#else
using SkiaGraphicsView = System.Object;
Expand Down Expand Up @@ -36,7 +36,7 @@ protected override SkiaGraphicsView CreatePlatformView()
public static void MapDrawable(SkiaGraphicsViewHandler handler, IGraphicsView graphicsView)
{
#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)
handler.PlatformView.Drawable = graphicsView.Drawable;
#endif
}
Expand Down
Expand Up @@ -3,7 +3,7 @@
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Graphics;
#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)
using Microsoft.Maui.Graphics.Skia.Views;
#else
using SkiaGraphicsView = System.Object;
Expand Down Expand Up @@ -45,7 +45,7 @@ protected override SkiaGraphicsView CreatePlatformView()
public static void MapShape(SkiaShapeViewHandler handler, IShapeView shapeView)
{
#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)
handler.PlatformView.Drawable = new ShapeDrawable(shapeView);
#endif
}
Expand All @@ -54,7 +54,7 @@ public static void MapShapeProperty(SkiaShapeViewHandler handler, IShapeView sha
{
#if __IOS__ || __MACCATALYST__
handler.PlatformView.SetNeedsDisplay();
#elif !NETSTANDARD
#elif !(NETSTANDARD || !PLATFORM)
handler.PlatformView.Invalidate();
#endif
}
Expand Down
Expand Up @@ -33,10 +33,6 @@
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == '$(_MauiDotNetTfm)'">
<DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" />
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/Core/Interactivity/PlatformBehavior.cs
Expand Up @@ -10,7 +10,7 @@
using PlatformView = Microsoft.UI.Xaml.FrameworkElement;
#elif TIZEN
using PlatformView = ElmSharp.EvasObject;
#elif NET6_0 || NETSTANDARD
#elif NET6_0 || (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
#endif

Expand Down
Expand Up @@ -6,12 +6,12 @@
using CurrentPlatform = Microsoft.Maui.Controls.PlatformConfiguration.Windows;
#elif TIZEN
using CurrentPlatform = Microsoft.Maui.Controls.PlatformConfiguration.Tizen;
#elif NETSTANDARD
#elif (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
#endif


#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)
namespace Microsoft.Maui.Controls.Platform
{
public static class PlatformConfigurationExtensions
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/Core/Platform/PlatformEffect.cs
Expand Up @@ -7,7 +7,7 @@
using PlatformView = Microsoft.UI.Xaml.FrameworkElement;
#elif TIZEN
using PlatformView = ElmSharp.EvasObject;
#elif NETSTANDARD
#elif (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/Core/Shapes/Shape.cs
Expand Up @@ -182,7 +182,7 @@ PathF IShape.PathForBounds(Graphics.Rect viewBounds)

var path = GetPath();

#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)

// TODO: not using this.GetPath().Bounds.Size;
// since default GetBoundsByFlattening(0.001) returns incorrect results for curves
Expand Down
Expand Up @@ -14,7 +14,7 @@
using PlatformView = Android.Views.View;
#elif WINDOWS
using PlatformView = Microsoft.UI.Xaml.FrameworkElement;
#elif NET6_0 || NETSTANDARD
#elif NET6_0 || (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
#endif

Expand Down
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.ProgressRing;
#elif TIZEN
using PlatformView = ElmSharp.ProgressBar;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.ProgressRing;
#elif TIZEN
using PlatformView = ElmSharp.ProgressBar;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Application/ApplicationHandler.cs
Expand Up @@ -46,7 +46,7 @@ public ApplicationHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
ILogger? Logger =>
_logger ??= MauiContext?.Services.CreateLogger<ApplicationHandler>();

#if !NETSTANDARD
#if !(NETSTANDARD || !PLATFORM)
protected override PlatformView CreatePlatformElement() =>
MauiContext?.Services.GetService<PlatformView>() ?? throw new InvalidOperationException($"MauiContext did not have a valid application.");
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Border/BorderHandler.cs
Expand Up @@ -7,7 +7,7 @@
using PlatformView = Microsoft.Maui.Platform.ContentPanel;
#elif TIZEN
using PlatformView = Microsoft.Maui.Platform.BorderView;
#elif NETSTANDARD
#elif (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Border/IBorderHandler.cs
Expand Up @@ -7,7 +7,7 @@
using PlatformView = Microsoft.Maui.Platform.ContentPanel;
#elif TIZEN
using PlatformView = Microsoft.Maui.Platform.BorderView;
#elif NETSTANDARD
#elif (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Button/ButtonHandler.cs
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.Button;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Button;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Button/IButtonHandler.cs
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.Button;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Button;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/CheckBox/CheckBoxHandler.cs
Expand Up @@ -7,7 +7,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.CheckBox;
#elif TIZEN
using PlatformView = ElmSharp.Check;
#elif NETSTANDARD
#elif (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/CheckBox/ICheckboxHandler.cs
Expand Up @@ -7,7 +7,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.CheckBox;
#elif TIZEN
using PlatformView = ElmSharp.Check;
#elif NETSTANDARD
#elif (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/ContentView/ContentViewHandler.cs
Expand Up @@ -7,7 +7,7 @@
using PlatformView = Microsoft.Maui.Platform.ContentPanel;
#elif TIZEN
using PlatformView = Microsoft.Maui.Platform.ContentCanvas;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/ContentView/IContentViewHandler.cs
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.Maui.Platform.ContentPanel;
#elif TIZEN
using PlatformView = Microsoft.Maui.Platform.ContentCanvas;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/DatePicker/DatePickerHandler.cs
Expand Up @@ -8,7 +8,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.CalendarDatePicker;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Entry;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/DatePicker/IDatePickerHandler.cs
Expand Up @@ -8,7 +8,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.CalendarDatePicker;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Entry;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Editor/EditorHandler.cs
Expand Up @@ -7,7 +7,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.TextBox;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Entry;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Editor/IEditorHandler.cs
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.TextBox;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Entry;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/ElementHandlerExtensions.cs
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.UI.Xaml.FrameworkElement;
#elif TIZEN
using PlatformView = ElmSharp.EvasObject;
#elif NETSTANDARD
#elif (NETSTANDARD || !PLATFORM)
using PlatformView = System.Object;
#endif
using System;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Entry/EntryHandler.cs
Expand Up @@ -7,7 +7,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.TextBox;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Entry;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Entry/IEntryHandler.cs
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.TextBox;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Entry;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/FlyoutView/FlyoutViewHandler.cs
Expand Up @@ -4,7 +4,7 @@
using PlatformView = Android.Views.View;
#elif WINDOWS
using PlatformView = Microsoft.Maui.Platform.RootNavigationView;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/FlyoutView/IFlyoutViewHandler.cs
Expand Up @@ -4,7 +4,7 @@
using PlatformView = Android.Views.View;
#elif WINDOWS
using PlatformView = Microsoft.Maui.Platform.RootNavigationView;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Image/IImageHandler.cs
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.Image;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Image;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Image/ImageHandler.cs
Expand Up @@ -8,7 +8,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.Image;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.Image;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/ImageButton/IImageButtonHandler.cs
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.UI.Xaml.Controls.Button;
#elif TIZEN
using PlatformView = Microsoft.Maui.Platform.MauiImageButton;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/ImageButton/ImageButtonHandler.cs
Expand Up @@ -15,7 +15,7 @@
using PlatformImage = Tizen.UIExtensions.ElmSharp.Image;
using PlatformImageView = Tizen.UIExtensions.ElmSharp.Image;
using PlatformView = Microsoft.Maui.Platform.MauiImageButton;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformImage = System.Object;
using PlatformImageView = System.Object;
using PlatformView = System.Object;
Expand Down
Expand Up @@ -6,7 +6,7 @@
using PlatformView = Microsoft.Maui.Platform.MauiPageControl;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.IndicatorView;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down
Expand Up @@ -7,7 +7,7 @@
using PlatformView = Microsoft.Maui.Platform.MauiPageControl;
#elif TIZEN
using PlatformView = Tizen.UIExtensions.ElmSharp.IndicatorView;
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID && !TIZEN)
#elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID && !TIZEN)
using PlatformView = System.Object;
#endif

Expand Down

0 comments on commit a5ac726

Please sign in to comment.