Skip to content

Commit 8550af2

Browse files
committed
Switch AppSettings service & bump Shiny deps
Replace AddPersistentService with AddShinyService for AppSettings and remove the Shiny.Extensions.Stores usage and package. Bump several Shiny packages (Shiny.Maui.Shell -> 2.0.1, Shiny.Mediator.Maui/Sentry -> 6.2.1, Shiny.SqliteDocumentDb -> 1.0.0-beta-0015) and remove the SqliteDocumentDb reference from test project. Also apply minor .csproj formatting/whitespace cleanups. These changes align the code with the updated Shiny APIs and dependency versions.
1 parent 4f6739c commit 8550af2

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

ShinyWonderland.Tests/ShinyWonderland.Tests.csproj

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="coverlet.collector" Version="8.0.0">
12-
<PrivateAssets>all</PrivateAssets>
13-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
12+
<PrivateAssets>all</PrivateAssets>
13+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>
15-
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="10.3.0" />
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
15+
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="10.3.0"/>
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0"/>
1717
<PackageReference Include="NSubstitute" Version="5.3.0"/>
1818
<PackageReference Include="Shouldly" Version="4.3.0"/>
1919
<PackageReference Include="xunit" Version="2.9.3"/>
2020
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
21-
<PrivateAssets>all</PrivateAssets>
22-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
21+
<PrivateAssets>all</PrivateAssets>
22+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
</PackageReference>
24-
<PackageReference Include="Shiny.SqliteDocumentDb" Version="1.0.0-beta-0013" />
2524
</ItemGroup>
2625

2726
<ItemGroup>

ShinyWonderland/MauiProgram.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Microsoft.Extensions.Configuration;
2-
using Shiny.Extensions.Stores;
32
using Shiny.Jobs;
43
using Shiny.Maui.TableView;
54
using ShinyWonderland.Delegates;
@@ -57,7 +56,7 @@ public static MauiApp CreateMauiApp()
5756

5857
builder.Services.AddGeneratedServices();
5958
builder.Services.AddStronglyTypedLocalizations();
60-
builder.Services.AddPersistentService<AppSettings>();
59+
builder.Services.AddShinyService<AppSettings>();
6160

6261
builder.Services.AddSingleton(MediaPicker.Default);
6362
builder.Services.AddSingleton(TimeProvider.System);

ShinyWonderland/ShinyWonderland.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,16 @@
121121
<PrivateAssets>all</PrivateAssets>
122122
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
123123
</PackageReference>
124-
<PackageReference Include="Shiny.Extensions.Stores" Version="1.3.1"/>
125124
<PackageReference Include="Shiny.Extensions.DependencyInjection" Version="1.3.1"/>
126125
<PackageReference Include="Shiny.Maui.TableView" Version="1.0.2" />
127126
<PackageReference Include="Shiny.Reflector" Version="1.7.1"/>
128-
<PackageReference Include="Shiny.Maui.Shell" Version="2.0.0"/>
129-
<PackageReference Include="Shiny.Mediator.Maui" Version="6.2.0"/>
130-
<PackageReference Include="Shiny.Mediator.Sentry" Version="6.2.0"/>
127+
<PackageReference Include="Shiny.Maui.Shell" Version="2.0.1"/>
128+
<PackageReference Include="Shiny.Mediator.Maui" Version="6.2.1"/>
129+
<PackageReference Include="Shiny.Mediator.Sentry" Version="6.2.1"/>
131130
<PackageReference Include="Shiny.Locations" Version="$(ShinyVersion)"/>
132131
<PackageReference Include="Shiny.Jobs" Version="$(ShinyVersion)"/>
133132
<PackageReference Include="Shiny.Notifications" Version="$(ShinyVersion)"/>
134-
<PackageReference Include="Shiny.SqliteDocumentDb" Version="1.0.0-beta-0013" />
133+
<PackageReference Include="Shiny.SqliteDocumentDb" Version="1.0.0-beta-0015" />
135134
</ItemGroup>
136135

137136
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != ''">

0 commit comments

Comments
 (0)