Skip to content

Commit 0bf5414

Browse files
Add SupportedOSPlatform to reduce compiler warnings
1 parent 2ac604e commit 0bf5414

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/CommunityToolkit.Maui.Camera/AppBuilderExtensions.shared.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using CommunityToolkit.Maui.Core;
1+
using System.Runtime.Versioning;
2+
using CommunityToolkit.Maui.Core;
23
using CommunityToolkit.Maui.Core.Handlers;
34
using CommunityToolkit.Maui.Views;
45

@@ -7,6 +8,11 @@ namespace CommunityToolkit.Maui;
78
/// <summary>
89
/// This class contains CameraView's <see cref="MauiAppBuilder"/> extensions.
910
/// </summary>
11+
[SupportedOSPlatform("windows10.0.10240.0")]
12+
[SupportedOSPlatform("android21.0")]
13+
[SupportedOSPlatform("ios")]
14+
[SupportedOSPlatform("maccatalyst")]
15+
[SupportedOSPlatform("tizen")]
1016
public static class AppBuilderExtensions
1117
{
1218
/// <summary>

src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
using System.ComponentModel;
2+
using System.Runtime.Versioning;
23
using System.Windows.Input;
34
using CommunityToolkit.Maui.Core.Primitives;
45
using CommunityToolkit.Maui.Views;
56
namespace CommunityToolkit.Maui.Core;
67

78
/// <summary>Default Values for <see cref="ICameraView"/>"/></summary>
9+
[SupportedOSPlatform("windows10.0.10240.0")]
10+
[SupportedOSPlatform("android21.0")]
11+
[SupportedOSPlatform("ios")]
12+
[SupportedOSPlatform("maccatalyst")]
13+
[SupportedOSPlatform("tizen")]
814
[EditorBrowsable(EditorBrowsableState.Never)]
915
public static class CameraViewDefaults
1016
{

src/CommunityToolkit.Maui.Camera/Views/CameraView.shared.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace CommunityToolkit.Maui.Views;
1414
[SupportedOSPlatform("android21.0")]
1515
[SupportedOSPlatform("ios")]
1616
[SupportedOSPlatform("maccatalyst")]
17+
[SupportedOSPlatform("tizen")]
1718
public partial class CameraView : View, ICameraView
1819
{
1920
static readonly BindablePropertyKey isAvailablePropertyKey =

0 commit comments

Comments
 (0)