Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/SharedMauiCoreLibrary/Services/DeviceProviderService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
namespace AndreasReitberger.Shared.Core.Services
#if ANDROID || IOS || MACCATALYST || WINDOWS
using System.Runtime.Versioning;
#endif

namespace AndreasReitberger.Shared.Core.Services
{
// Somehow has trouble with .NET 6
#if ANDROID || IOS || MACCATALYST || WINDOWS
[SupportedOSPlatform(SPlatforms.AndroidVersion)]
[SupportedOSPlatform(SPlatforms.IOSVersion)]
[SupportedOSPlatform(SPlatforms.WindowsVersion)]
[SupportedOSPlatform(SPlatforms.MACCatalystVersion)]
public partial class DeviceProviderService
{
public static partial string? GetDeviceId();
Expand Down
10 changes: 9 additions & 1 deletion src/SharedMauiCoreLibrary/Services/ImageResizerService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
namespace AndreasReitberger.Shared.Core.Services
#if ANDROID || IOS || MACCATALYST || WINDOWS
using System.Runtime.Versioning;
#endif

namespace AndreasReitberger.Shared.Core.Services
{
// Somehow has trouble with .NET 6
#if ANDROID || IOS || MACCATALYST || WINDOWS
[SupportedOSPlatform(SPlatforms.AndroidVersion)]
[SupportedOSPlatform(SPlatforms.IOSVersion)]
[SupportedOSPlatform(SPlatforms.WindowsVersion)]
[SupportedOSPlatform(SPlatforms.MACCatalystVersion)]
public partial class ImageResizerService
{
public partial byte[] ResizeImage(byte[] imageData, float width, float height = -1);
Expand Down
Loading