diff --git a/src/MauiSherpa.Core/Services/DoctorService.cs b/src/MauiSherpa.Core/Services/DoctorService.cs index bbce2691..0f042cbb 100644 --- a/src/MauiSherpa.Core/Services/DoctorService.cs +++ b/src/MauiSherpa.Core/Services/DoctorService.cs @@ -794,7 +794,7 @@ private async Task CheckJdkAsync(VersionDependency jdkDep, List@dep.Message } - @if (dep.IsFixable) + @if (IsMissingJdk(dep)) + { + + } + else if (dep.IsFixable) { } @@ -1182,6 +1191,18 @@ else _ => "status-unknown" }; + private static bool IsMissingJdk(DependencyStatus dependency) => + dependency.Category == DependencyCategory.Jdk && + dependency.Status == DependencyStatusType.Error; + + private static string GetDependencyActionLabel(DependencyStatus dependency) => + dependency.FixAction == "install-android-sdk" + ? "Install Android SDK" + : "Fix"; + + private Task DownloadMicrosoftOpenJdk() => + OpenUrl("https://learn.microsoft.com/java/openjdk/download"); + private string GetCategoryName(DependencyCategory category) => category switch { DependencyCategory.DotNetSdk => ".NET SDK",