From 44115ff155e6e97500dbbd4814be66f6624e2a70 Mon Sep 17 00:00:00 2001 From: Dan Ardelean Date: Fri, 18 Oct 2024 11:31:17 +0200 Subject: [PATCH] Add support for net8.0-ios (#98) * Add support for net8.0-ios * Update workflows for iOS workload * Generate artifact attestations on master only --------- Co-authored-by: Dan Ardelean Co-authored-by: David Sungaila --- .github/workflows/dotnet.yml | 3 + .github/workflows/githubpages.yml | 4 +- .github/workflows/githubpages_staging.yml | 4 +- README.md | 2 +- src/FrameworkTests/MauiApp/App.xaml | 9 +- src/FrameworkTests/MauiApp/AppShell.xaml | 19 +- src/FrameworkTests/MauiApp/MainPage.xaml | 7 +- src/FrameworkTests/MauiApp/MainPage.xaml.cs | 10 +- src/FrameworkTests/MauiApp/MauiApp.csproj | 17 +- .../Resources/Resource.designer.cs | 23807 +--------------- src/PDFtoImage/Compatibility/Conversion.cs | 1 + src/PDFtoImage/Conversion.Base64.cs | 1 + src/PDFtoImage/Conversion.ByteArray.cs | 1 + src/PDFtoImage/Conversion.Deprecated.cs | 1 + src/PDFtoImage/Conversion.Stream.cs | 1 + src/PDFtoImage/Conversion.cs | 1 + src/PDFtoImage/PDFtoImage.csproj | 44 +- .../net8.0-ios/PublicAPI.Shipped.txt | 182 + .../net8.0-ios/PublicAPI.Unshipped.txt | 1 + 19 files changed, 378 insertions(+), 23737 deletions(-) create mode 100644 src/PDFtoImage/PublicAPI/net8.0-ios/PublicAPI.Shipped.txt create mode 100644 src/PDFtoImage/PublicAPI/net8.0-ios/PublicAPI.Unshipped.txt diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 06863cdf..5194cb51 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -74,6 +74,8 @@ jobs: 8.x - name: Setup .NET workload maui-android run: dotnet workload install maui-android + - name: Setup .NET workload maui-ios + run: dotnet workload install maui-ios - name: Setup .NET workload maui-windows run: dotnet workload install maui-windows - name: Setup .NET workload wasm-tools @@ -85,6 +87,7 @@ jobs: - name: Pack run: dotnet pack src/PDFtoImage/PDFtoImage.csproj -c ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} -p:VersionSuffix=ci --no-restore - name: Generate artifact attestation + if: github.repository == 'sungaila/PDFtoImage' && github.ref == 'refs/heads/master' uses: actions/attest-build-provenance@main with: subject-path: src/PDFtoImage/bin/${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}/*.nupkg diff --git a/.github/workflows/githubpages.yml b/.github/workflows/githubpages.yml index e3072c31..d628b7e6 100644 --- a/.github/workflows/githubpages.yml +++ b/.github/workflows/githubpages.yml @@ -11,7 +11,7 @@ on: jobs: publish: name: Publish - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: Checkout uses: actions/checkout@main @@ -23,6 +23,8 @@ jobs: dotnet-version: 8.x - name: Setup .NET workload maui-android run: dotnet workload install maui-android + - name: Setup .NET workload maui-ios + run: dotnet workload install maui-ios - name: Setup .NET workload wasm-tools run: dotnet workload install wasm-tools - name: Update relative paths diff --git a/.github/workflows/githubpages_staging.yml b/.github/workflows/githubpages_staging.yml index 0b8defcb..24ccd626 100644 --- a/.github/workflows/githubpages_staging.yml +++ b/.github/workflows/githubpages_staging.yml @@ -12,7 +12,7 @@ on: jobs: publish: name: Publish - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: Checkout uses: actions/checkout@main @@ -24,6 +24,8 @@ jobs: dotnet-version: 8.x - name: Setup .NET workload maui-android run: dotnet workload install maui-android + - name: Setup .NET workload maui-ios + run: dotnet workload install maui-ios - name: Setup .NET workload wasm-tools run: dotnet workload install wasm-tools - name: Update relative paths diff --git a/README.md b/README.md index 94f9c380..14d4fe2c 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ using Conversion = PDFtoImage.Compatibility.Conversion; * [ASP.NET](https://learn.microsoft.com/en-us/aspnet/overview) * [ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core) * [Blazor WebAssembly](https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly) -* [.NET Multi-platform App UI (.NET MAUI)](https://learn.microsoft.com/en-us/dotnet/maui/what-is-maui) (excluding **macOS** and **iOS**) +* [.NET Multi-platform App UI (.NET MAUI)](https://learn.microsoft.com/en-us/dotnet/maui/what-is-maui) (excluding **macOS**) * [Unity](https://docs.unity3d.com/Manual/Mono.html) * [Universal Windows Platform (UWP)](https://learn.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide) * [Windows UI Library 3 (WinUI 3)](https://learn.microsoft.com/en-us/windows/apps/winui/winui3/) diff --git a/src/FrameworkTests/MauiApp/App.xaml b/src/FrameworkTests/MauiApp/App.xaml index 66a5b30c..17a489b9 100644 --- a/src/FrameworkTests/MauiApp/App.xaml +++ b/src/FrameworkTests/MauiApp/App.xaml @@ -1,9 +1,8 @@  - + diff --git a/src/FrameworkTests/MauiApp/AppShell.xaml b/src/FrameworkTests/MauiApp/AppShell.xaml index afe07697..1cfbf01f 100644 --- a/src/FrameworkTests/MauiApp/AppShell.xaml +++ b/src/FrameworkTests/MauiApp/AppShell.xaml @@ -1,14 +1,13 @@ - + - + diff --git a/src/FrameworkTests/MauiApp/MainPage.xaml b/src/FrameworkTests/MauiApp/MainPage.xaml index ffdb6166..3b75e218 100644 --- a/src/FrameworkTests/MauiApp/MainPage.xaml +++ b/src/FrameworkTests/MauiApp/MainPage.xaml @@ -8,7 +8,8 @@ Spacing="25" VerticalOptions="Center"> - @@ -23,7 +24,7 @@ HorizontalOptions="Center" SemanticProperties.Description="Welcome to dot net Multi platform App U I" SemanticProperties.HeadingLevel="Level2" - Text="Tab the button below to test PDFtoImage." /> + Text="Tap the button below to test PDFtoImage." />