Skip to content

Commit

Permalink
3.0.11-beta - .NET MAUI controls package upgrade to 9.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
adospace committed Dec 20, 2024
1 parent 3a865e5 commit 1aab520
Show file tree
Hide file tree
Showing 37 changed files with 642 additions and 235 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
Solution_Name: ./src/MauiReactor.Build.sln
Test_Project: ./samples/UnitTests/UnitTests.csproj
TemplatePack_Name: ./src/MauiReactor.TemplatePack/MauiReactor.TemplatePack.csproj
Version: 3.0.10-beta
Version: 3.0.11-beta

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions samples/Calculator/Calculator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<ProjectReference Include="..\..\src\MauiReactor.ScaffoldGenerator\MauiReactor.ScaffoldGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="False" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/ChartApp/ChartApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<ProjectReference Include="..\..\src\MauiReactor.ScaffoldGenerator\MauiReactor.ScaffoldGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="False" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/Contentics/Contentics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
<ProjectReference Include="..\..\src\MauiReactor.Canvas\MauiReactor.Canvas.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/IntegrationTest/IntegrationTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
<ProjectReference Include="..\..\src\MauiReactor\MauiReactor.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>


Expand Down
4 changes: 2 additions & 2 deletions samples/MauiReactor.Calendar/MauiReactor.Calendar.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<ProjectReference Include="..\..\src\MauiReactor\MauiReactor.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/MauiReactor.MapsDemo/MauiReactor.MapsDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<ProjectReference Include="..\..\src\MauiReactor\MauiReactor.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/MauiReactor.TestApp/MauiReactor.TestApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
<ProjectReference Include="..\..\src\MauiReactor\MauiReactor.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
<ProjectReference Include="..\..\src\MauiReactor\MauiReactor.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>


Expand Down
4 changes: 2 additions & 2 deletions samples/SlidingPuzzle/SlidingPuzzle.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="9.0.21" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
</ItemGroup>

Expand Down
6 changes: 3 additions & 3 deletions src/MauiReactor.Blazor/MauiReactor.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="9.0.21" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/MauiReactor.Canvas/MauiReactor.Canvas.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/MauiReactor.FigmaPlugin/MauiReactor.FigmaPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
<ProjectReference Include="..\MauiReactor\MauiReactor.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/MauiReactor.Maps/MauiReactor.Maps.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls.Maps" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Maps" Version="9.0.21" />
</ItemGroup>

<ItemGroup>
Expand All @@ -43,8 +43,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/MauiReactor.Scaffold/MauiReactor.Scaffold.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"Profile 1": {
"commandName": "DebugRoslynComponent",
"targetProject": "..\\..\\..\\mauireactor-integration\\DevExpress\\DevExpressIntApp\\DevExpressIntApp.csproj"
"targetProject": "..\\..\\..\\..\\rtr\\fws-borg\\src\\FwsBorgApp\\FwsBorgApp.csproj"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public ScaffoldTypeGenerator(
.Where(_ => !_.Name.Contains("Command"))
.Where(_ => _.Type.GetFullyQualifiedName() != "Microsoft.Maui.Controls.DataTemplate")
.Where(_ => _.Type.GetFullyQualifiedName() != "Microsoft.Maui.Controls.DataTemplate?")
.Where(_ => _.Type.GetFullyQualifiedName() != "Microsoft.Maui.Controls.ControlTemplate")
.Where(_ => _.Type.GetFullyQualifiedName() != "Microsoft.Maui.Controls.ControlTemplate?")
.Where(_ => _.Name != "ItemsSource")
.Where(_ => _.Type.GetFullyQualifiedName() != "Microsoft.Maui.Controls.IItemsLayout")
.Where(_ => _.Type.GetFullyQualifiedName() != "Microsoft.Maui.Controls.LinearItemsLayout")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup>
<RuntimeHostConfigurationOption Include="MauiReactor.HotReload" Value="true" Trim="true" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
<PackageReference Include="Reactor.Maui" Version="3.0.5-beta" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup>
<RuntimeHostConfigurationOption Include="MauiReactor.HotReload" Value="true" Trim="true" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.14" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
<PackageReference Include="Reactor.Maui" Version="3.0.5-beta" />
</ItemGroup>
Expand Down
18 changes: 9 additions & 9 deletions src/MauiReactor/Animations/RxDoubleAnimation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ protected override void OnMigrateFrom(RxAnimation previousAnimation)
StartValue = previousDoubleAnimation.CurrentValue();
//System.Diagnostics.Debug.WriteLine($"Migrate StartValue from {StartValue} to {((RxDoubleAnimation)previousAnimation).TargetValue} (TargetValue={TargetValue})");

//if (!previousDoubleAnimation.IsCompleted())
//{
// var duration = Duration ?? DefaultDuration;
// var previousCompletion = previousDoubleAnimation.Completion();
// StartTime -= (long)(duration * (previousCompletion));
// //System.Diagnostics.Debug.WriteLine($"previousCompletion={previousDoubleAnimation.Completion()} -> completion={Completion()}");
// //if (StartTime < 0)
// //System.Diagnostics.Debug.Assert(StartTime > 0);
//}
if (!previousDoubleAnimation.IsCompleted())
{
var duration = Duration ?? DefaultDuration;
var previousCompletion = previousDoubleAnimation.Completion();
StartTime -= (long)(duration * (previousCompletion));
//System.Diagnostics.Debug.WriteLine($"previousCompletion={previousDoubleAnimation.Completion()} -> completion={Completion()}");
//if (StartTime < 0)
//System.Diagnostics.Debug.Assert(StartTime > 0);
}

base.OnMigrateFrom(previousAnimation);
}
Expand Down
18 changes: 10 additions & 8 deletions src/MauiReactor/Component.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections;
using MauiReactor.Internals;
using MauiReactor.Parameters;
using Microsoft.Extensions.Logging;

namespace MauiReactor
{
Expand Down Expand Up @@ -71,6 +72,10 @@ protected sealed override void OnRemoveChild(VisualNode widget, BindableObject n

protected sealed override IEnumerable<VisualNode> RenderChildren()
{
ServiceCollectionProvider
.ServiceProvider?
.GetService<ILogger<Component>>()?
.LogDebug("Rendering {Type}", GetType());
yield return Render();
}

Expand Down Expand Up @@ -146,27 +151,24 @@ protected virtual void OnMountedOrPropsChanged()
}

public INavigation Navigation
=> (IsContainerPageAvailable ? ContainerPage.Navigation : null) ?? NavigationProvider.Navigation ?? throw new InvalidOperationException("Navigation not available");
=> ContainerPage?.Navigation ?? NavigationProvider.Navigation ?? throw new InvalidOperationException("Navigation not available");

public bool IsNavigationAvailable
=> (IsContainerPageAvailable && ContainerPage.Navigation != null) || NavigationProvider.Navigation != null;
=> ContainerPage?.Navigation != null || NavigationProvider.Navigation != null;

private Microsoft.Maui.Controls.Page? _containerPage;

public Microsoft.Maui.Controls.Page ContainerPage
public Microsoft.Maui.Controls.Page? ContainerPage
{
get
{
_containerPage ??= ((IVisualNode)this).GetContainerPage();
return _containerPage ?? throw new InvalidOperationException("ContainerPage not available");
return _containerPage;
}
}

public bool IsContainerPageAvailable
=> _containerPage != null || ((IVisualNode)this).GetContainerPage() != null;

public static IServiceProvider Services
=> ServiceCollectionProvider.ServiceProvider;
=> ServiceCollectionProvider.ServiceProvider ?? throw new InvalidOperationException("Services not available");

internal void InvalidateComponent() => Invalidate();

Expand Down
Loading

0 comments on commit 1aab520

Please sign in to comment.