Skip to content

Commit

Permalink
Upgrades to nugets
Browse files Browse the repository at this point in the history
  • Loading branch information
edgiardina committed Mar 23, 2024
1 parent 237b3ba commit 992b730
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions IfpaMaui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />
<PackageReference Include="AathifMahir.Maui.MauiIcons.Fluent" Version="2.1.1" />
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.14" />
<PackageReference Include="AathifMahir.Maui.MauiIcons.Fluent" Version="2.1.2" />
<PackageReference Include="CommunityToolkit.Maui" Version="7.0.1" />
<PackageReference Include="LiveChartsCore.SkiaSharpView.Maui" Version="2.0.0-beta.911" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Maui.Controls.Maps" Version="8.0.7" />
<PackageReference Include="PinballApi" Version="2.3.0" />
<PackageReference Include="Microsoft.Maui.Controls.Maps" Version="8.0.14" />
<PackageReference Include="PinballApi" Version="2.4.1" />
<PackageReference Include="Plugin.Maui.Calendar" Version="1.1.4" />
<PackageReference Include="Scrutor" Version="4.2.2" />
<PackageReference Include="Serilog.Sinks.Xamarin" Version="1.0.0" />
Expand Down Expand Up @@ -248,6 +248,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Update="Microsoft.Maui.Controls.Compatibility" Version="8.0.7" />
<PackageReference Update="Microsoft.Maui.Controls.Compatibility" Version="8.0.14" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion ViewModels/PlayerDetailViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class PlayerDetailViewModel : BaseViewModel

public int PlayerId { get; set; }
public int LastTournamentCount { get; set; }
private Player playerRecord = new Player { PlayerStats = new PinballApi.Models.WPPR.v1.Players.PlayerStats { }, ChampionshipSeries = new List<ChampionshipSeries> { } };
private Player playerRecord = new Player { PlayerStats = new PlayerStats { }, ChampionshipSeries = new List<ChampionshipSeries> { } };

private static readonly int s_logBase = 10;

Expand Down
7 changes: 3 additions & 4 deletions ViewModels/PlayerSearchViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Text.Json;
using Ifpa.Models;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using PinballApi;

namespace Ifpa.ViewModels
Expand Down Expand Up @@ -40,8 +39,8 @@ public Command SearchCommand
var items = await PinballRankingApi.SearchForPlayerByName(text.Trim());
foreach (var item in items.Search)
{
var serializedParent = JsonConvert.SerializeObject(item);
var c = JsonConvert.DeserializeObject<PlayerSearchResult>(serializedParent);
var serializedParent = JsonSerializer.Serialize(item);
var c = JsonSerializer.Deserialize<PlayerSearchResult>(serializedParent);

Players.Add(c);
}
Expand Down
4 changes: 2 additions & 2 deletions ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class SettingsViewModel : BaseViewModel
{
AppSettings AppSettings;

private Player playerRecord = new Player { PlayerStats = new PinballApi.Models.WPPR.v1.Players.PlayerStats { }, ChampionshipSeries = new List<ChampionshipSeries> { } };
private Player playerRecord = new Player { PlayerStats = new PlayerStats { }, ChampionshipSeries = new List<ChampionshipSeries> { } };

public string PlayerAvatar
{
Expand Down Expand Up @@ -42,7 +42,7 @@ public async Task LoadPlayer()
}
else
{
playerRecord = new Player { PlayerStats = new PinballApi.Models.WPPR.v1.Players.PlayerStats { }, ChampionshipSeries = new List<ChampionshipSeries> { } };
playerRecord = new Player { PlayerStats = new PlayerStats { }, ChampionshipSeries = new List<ChampionshipSeries> { } };
OnPropertyChanged(null);
}
}
Expand Down
1 change: 0 additions & 1 deletion Views/CalendarPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
ArrowsColor="{StaticResource IconAccentColor}"
Events="{Binding TournamentCalenderItems}"
IsVisible="{Binding CurrentType, Converter={StaticResource IsEqualConverter}, ConverterParameter={x:Static vm:CalendarType.Calendar}}"
MinimumDate="{Binding Source={x:Static sys:DateTime.Now}}"
ShownDate="{Binding Source={x:Static sys:DateTime.Now}}"
ShowYearPicker="False"
TodayOutlineColor="{StaticResource IconAccentColor}"
Expand Down

0 comments on commit 992b730

Please sign in to comment.