-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to .NET 8 and Avalonia 11.0.7
This is not yet a complete upgrade, as some features have been momentarily removed, such as the map theming and the inertial scrolling. Also, analysis corrections have been applied where applicable. Bugs have not been fixed as well as many other idiosyncrasies. The Mac and Web workloads have not been looked at.
- Loading branch information
Showing
46 changed files
with
186 additions
and
203 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
.idea/.idea.BnbnavNetClient/.idea/codeStyles/codeStyleConfig.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
using Avalonia; | ||
using BnbnavNetClient.I18Next.Services; | ||
using Splat; | ||
|
||
namespace BnbnavNetClient.I18Next; | ||
public static class AppBuilderExtensions | ||
{ | ||
public static AppBuilder UseI18NextLocalization(this AppBuilder appBuilder) | ||
{ | ||
This comment has been minimized.
Sorry, something went wrong. |
||
appBuilder.With<IAvaloniaI18Next>(new AvaloniaI18Next()); | ||
Locator.CurrentMutable.RegisterConstant<IAvaloniaI18Next>(new AvaloniaI18Next()); | ||
return appBuilder; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
using Avalonia; | ||
using Avalonia.Markup.Xaml; | ||
using BnbnavNetClient.I18Next.Services; | ||
using Splat; | ||
|
||
namespace BnbnavNetClient.I18Next; | ||
|
||
|
@@ -11,6 +12,6 @@ public sealed class Tr : MarkupExtension | |
|
||
public override object ProvideValue(IServiceProvider serviceProvider) | ||
This comment has been minimized.
Sorry, something went wrong.
Vrabbers
Author
Owner
|
||
{ | ||
return AvaloniaLocator.Current.GetRequiredService<IAvaloniaI18Next>()[Key]; | ||
return Locator.Current.GetService<IAvaloniaI18Next>()![Key]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using BnbnavNetClient.I18Next.Services; | ||
using BnbnavNetClient.Settings; | ||
using Splat; | ||
|
||
namespace BnbnavNetClient.Extensions; | ||
|
||
public static class SplatExtensions | ||
{ | ||
public static IAvaloniaI18Next GetI18Next(this IReadonlyDependencyResolver me) => | ||
me.GetService<IAvaloniaI18Next>() ?? throw new InvalidOperationException("Avalonia I18Next must be registered"); | ||
|
||
public static ISettingsManager GetSettingsManager(this IReadonlyDependencyResolver me) => | ||
me.GetService<ISettingsManager>() ?? throw new InvalidOperationException("Settings manager must be registered"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Don't have this as an extension method. This applies to usesettingsmanagers