Skip to content

Commit

Permalink
fix: Removed MacOS from runtimes list
Browse files Browse the repository at this point in the history
  • Loading branch information
mcNets committed Dec 17, 2024
1 parent e2675e1 commit 6a0eb4f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ public void When_IsMacCatalyst()
}
#endif

#if __MACOS__
[TestMethod]
public void When_IsMacOS()
{
Uno.UI.Helpers.PlatformRuntimeHelper.Current.IsMacOS().Should().BeTrue();
}
#endif

#if __WASM__
[TestMethod]
public void When_IsWebAssembly()
Expand All @@ -78,6 +70,12 @@ public void When_IsWindows()
{
Uno.UI.Toolkit.PlatformRuntimeHelper.Current.Should().Be(Uno.UI.Toolkit.UnoRuntimePlatform.Windows);
}
#else
[TestMethod]
public void When_IsUnoIsKnown()
{
Uno.UI.Helpers.PlatformRuntimeHelper.Current.Should().NotBe(Uno.UI.Toolkit.UnoRuntimePlatform.Unknown);
}
#endif
}
}
1 change: 0 additions & 1 deletion src/Uno.UI.Toolkit/UnoRuntimePlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ public enum UnoRuntimePlatform
Android,
iOS,
MacCatalyst,
MacOSX,
WebAssembly,
Windows,
SkiaGtk,
Expand Down
2 changes: 0 additions & 2 deletions src/Uno.UI/Helpers/PlatformRuntimeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ private static UnoRuntimePlatform GetPlatform() =>
UnoRuntimePlatform.iOS;
#elif __MACCATALYST__
UnoRuntimePlatform.MacCatalyst;
#elif __MACOS__
UnoRuntimePlatform.MacOSX;
#elif __WASM__
UnoRuntimePlatform.WebAssembly;
#elif __SKIA__
Expand Down
1 change: 0 additions & 1 deletion src/Uno.UI/Helpers/UnoRuntimePlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public enum UnoRuntimePlatform
Android,
iOS,
MacCatalyst,
MacOSX,
WebAssembly,
Windows,
SkiaGtk,
Expand Down
2 changes: 0 additions & 2 deletions src/Uno.UI/Helpers/Xaml/UnoRuntimePlatformExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public static bool IsSkia(this UnoRuntimePlatform platform) => platform == UnoRu

public static bool IsMacCatalyst(this UnoRuntimePlatform platform) => platform == UnoRuntimePlatform.MacCatalyst;

public static bool IsMacOS(this UnoRuntimePlatform platform) => platform == UnoRuntimePlatform.MacOSX;

public static bool IsWebAssembly(this UnoRuntimePlatform platform) => platform == UnoRuntimePlatform.WebAssembly;

public static bool IsWindows(this UnoRuntimePlatform platform) => platform == UnoRuntimePlatform.Windows;
Expand Down

0 comments on commit 6a0eb4f

Please sign in to comment.