Skip to content

Commit

Permalink
Add SupportedOSPlatform to reduce compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCodeTraveler committed Jan 29, 2025
1 parent 2ac604e commit 0bf5414
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CommunityToolkit.Maui.Core;
using System.Runtime.Versioning;
using CommunityToolkit.Maui.Core;
using CommunityToolkit.Maui.Core.Handlers;
using CommunityToolkit.Maui.Views;

Expand All @@ -7,6 +8,11 @@ namespace CommunityToolkit.Maui;
/// <summary>
/// This class contains CameraView's <see cref="MauiAppBuilder"/> extensions.
/// </summary>
[SupportedOSPlatform("windows10.0.10240.0")]
[SupportedOSPlatform("android21.0")]
[SupportedOSPlatform("ios")]
[SupportedOSPlatform("maccatalyst")]
[SupportedOSPlatform("tizen")]
public static class AppBuilderExtensions
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
using System.ComponentModel;
using System.Runtime.Versioning;
using System.Windows.Input;
using CommunityToolkit.Maui.Core.Primitives;
using CommunityToolkit.Maui.Views;
namespace CommunityToolkit.Maui.Core;

/// <summary>Default Values for <see cref="ICameraView"/>"/></summary>
[SupportedOSPlatform("windows10.0.10240.0")]
[SupportedOSPlatform("android21.0")]
[SupportedOSPlatform("ios")]
[SupportedOSPlatform("maccatalyst")]
[SupportedOSPlatform("tizen")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static class CameraViewDefaults
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace CommunityToolkit.Maui.Views;
[SupportedOSPlatform("android21.0")]
[SupportedOSPlatform("ios")]
[SupportedOSPlatform("maccatalyst")]
[SupportedOSPlatform("tizen")]
public partial class CameraView : View, ICameraView
{
static readonly BindablePropertyKey isAvailablePropertyKey =
Expand Down

0 comments on commit 0bf5414

Please sign in to comment.