Skip to content

Commit

Permalink
Remove deprecated method usage
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 committed Oct 9, 2024
1 parent 81bb571 commit d47db18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Avalonia.Maui/Avalonia.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
<PackageReference Include="Avalonia.Android" Version="$(AvaloniaVersion)" />
<PackageReference Include="Xamarin.AndroidX.Collection" Version="1.3.0.2" />
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.3.0.2" />
<PackageReference Include="Xamarin.AndroidX.Collection" Version="1.4.4" />
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.4.4" />
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<PackageReference Include="Avalonia.iOS" Version="$(AvaloniaVersion)" />
Expand All @@ -31,7 +31,7 @@
<Version>11.0.9</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/AvaloniaUI/AvaloniaMauiHybrid</RepositoryUrl>
<PackageTags>avalonia;avaloniaui;maui;android</PackageTags>
<PackageTags>avalonia;avaloniaui;maui;android;ios</PackageTags>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
Expand Down
4 changes: 2 additions & 2 deletions Avalonia.Maui/AvaloniaAppBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Maui;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Embedding;
using Microsoft.Maui.Controls.Hosting;
using Microsoft.Maui.Hosting;
using Microsoft.Maui.Platform;
using MauiWindow = Microsoft.Maui.Controls.Window;
Expand Down Expand Up @@ -36,7 +36,7 @@ public static AppBuilder UseMaui<TMauiApplication>(this AppBuilder appBuilder, A
.AfterSetup(appBuilder =>
{
var builder = MauiApp.CreateBuilder()
.UseMauiEmbedding<TMauiApplication>();
.UseMauiApp<TMauiApplication>();

builder.Services.AddSingleton(appBuilder.Instance!)
#if ANDROID
Expand Down

0 comments on commit d47db18

Please sign in to comment.