Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Jan 4, 2025
1 parent d8515a8 commit cee9c5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ protected override async void OnStart()
if (Version.TryParse(Android.Webkit.WebView.CurrentWebViewPackage?.VersionName, out var webViewVersion) &&
webViewVersion.Major < minimumSupportedWebViewVersion)
{
logger.LogWarning("Web view version {version} is not supported", webViewVersion);
var webViewName = Android.Webkit.WebView.CurrentWebViewPackage.PackageName;
logger.LogWarning("{webViewName} version {version} is not supported.", webViewName, webViewVersion);
await App.Current!.Windows[0].Page!.DisplayAlert("Boilerplate", localizer[nameof(AppStrings.UpdateWebViewThroughGooglePlay)], localizer[nameof(AppStrings.Ok)]);
await Launcher.OpenAsync($"https://play.google.com/store/apps/details?id={Android.Webkit.WebView.CurrentWebViewPackage.PackageName}");
await Launcher.OpenAsync($"https://play.google.com/store/apps/details?id={webViewName}");
}
//-:cnd:noEmit
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
using System.Net;
using EmbedIO.Actions;
using System.Net.Sockets;
using Microsoft.Extensions.Logging;
using Boilerplate.Client.Core.Components;

namespace Boilerplate.Client.Maui.Services;

public partial class MauiLocalHttpServer : ILocalHttpServer
{
[AutoInject] private ILogger<ILocalHttpServer> logger;
[AutoInject] private IExceptionHandler exceptionHandler;
[AutoInject] private AbsoluteServerAddressProvider absoluteServerAddress;

Expand Down

0 comments on commit cee9c5c

Please sign in to comment.