From 9ac7e0c98d9850cafbf749cde7d76e59eafeb74b Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Wed, 20 May 2026 21:06:21 +0200 Subject: [PATCH 01/25] build and use sentry-native on macos --- .github/workflows/ci.yml | 2 + .github/workflows/sdk.yml | 12 ++++- build/native-sdks.targets | 53 ++++++++++++++++++- scripts/download-native-sdks.ps1 | 7 ++- .../ConfigurationWindow/AdvancedTab.cs | 13 +++++ .../Native/BuildPostProcess.cs | 51 +++++++++++++++++- src/Sentry.Unity.Native/SentryNativeBridge.cs | 10 ++++ src/Sentry.Unity/MacosBackend.cs | 16 ++++++ .../ScriptableSentryUnityOptions.cs | 2 + src/Sentry.Unity/SentryUnityOptions.cs | 7 +++ .../IntegrationOptionsConfiguration.cs | 3 ++ .../ScriptableSentryUnityOptionsTests.cs | 19 +++++++ .../SentryUnityOptionsTests.cs | 14 +++++ 13 files changed, 204 insertions(+), 5 deletions(-) create mode 100644 src/Sentry.Unity/MacosBackend.cs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0414c8868..311166d62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,8 @@ jobs: host: windows-latest - target: Cocoa host: macos-latest + - target: MacOSNative + host: macos-latest uses: ./.github/workflows/sdk.yml with: target: ${{ matrix.target }} diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml index 35c963615..e3819943b 100644 --- a/.github/workflows/sdk.yml +++ b/.github/workflows/sdk.yml @@ -107,12 +107,20 @@ jobs: name: ${{ env.TARGET }}-sdk path: | package-dev/Plugins/iOS/Sentry.xcframework~ - package-dev/Plugins/macOS/Sentry + package-dev/Plugins/macOS/Sentry~ # Lower retention period - we only need this to retry CI. retention-days: 14 - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - if: ${{ env.TARGET != 'Cocoa' }} + if: ${{ env.TARGET == 'MacOSNative' }} + with: + name: ${{ env.TARGET }}-sdk + path: package-dev/Plugins/macOS/SentryNative~ + # Lower retention period - we only need this to retry CI. + retention-days: 14 + + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + if: ${{ env.TARGET != 'Cocoa' && env.TARGET != 'MacOSNative' }} with: name: ${{ env.TARGET }}-sdk path: package-dev/Plugins/${{ env.TARGET }} diff --git a/build/native-sdks.targets b/build/native-sdks.targets index 63be39e0e..8b679fbd8 100644 --- a/build/native-sdks.targets +++ b/build/native-sdks.targets @@ -5,7 +5,8 @@ $(RepoRoot)modules/sentry-cocoa/ $(SentryArtifactsDestination)iOS/Sentry.xcframework~/ - $(SentryArtifactsDestination)macOS/Sentry/ + $(SentryArtifactsDestination)macOS/Sentry~/ + $(SentryArtifactsDestination)macOS/SentryNative~/ $(RepoRoot)modules/sentry-java/ @@ -131,6 +132,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + + + + + + + + - - - + + + @@ -169,17 +171,16 @@ - - + - - - - - - - + + + $(RepoRoot)modules/sentry-native/ $(SentryArtifactsDestination)Linux/Sentry/ - $(SentryArtifactsDestination)Windows/Sentry/ + $(SentryArtifactsDestination)Windows/Sentry~/ + $(SentryArtifactsDestination)Windows/SentryNative~/ + + @@ -111,14 +114,18 @@ + + + + - + @@ -132,6 +139,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - @@ -118,7 +117,6 @@ - From 8b5af5b020624feaf9c6bba98f7d370104a340ba Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Fri, 29 May 2026 14:00:17 +0200 Subject: [PATCH 23/25] . --- .github/workflows/build.yml | 8 +++++++- .../package-release.zip.snapshot | 20 ++++++++++--------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed0309e6d..37e6f050e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -108,7 +108,13 @@ jobs: uses: ./.github/actions/wait-for-artifact with: name: Windows-sdk - path: package-dev/Plugins/Windows + path: package-dev/Plugins/Windows/Sentry~ + + - name: Download WindowsNative SDK + uses: ./.github/actions/wait-for-artifact + with: + name: WindowsNative-sdk + path: package-dev/Plugins/Windows/SentryNative~ - name: Build Sentry.Unity Solution run: docker exec unity dotnet build -c Release -v:d diff --git a/test/Scripts.Tests/package-release.zip.snapshot b/test/Scripts.Tests/package-release.zip.snapshot index 85cbbef6e..10397d39e 100644 --- a/test/Scripts.Tests/package-release.zip.snapshot +++ b/test/Scripts.Tests/package-release.zip.snapshot @@ -235,15 +235,17 @@ Plugins/Android/Sentry~/sentry-native-ndk-release.aar Plugins/Android/Sentry~/sentry.jar Plugins/Switch/sentry_native_stubs.c Plugins/Switch/sentry_native_stubs.c.meta -Plugins/Windows/Sentry.meta -Plugins/Windows/Sentry/crashpad_handler.exe -Plugins/Windows/Sentry/crashpad_handler.exe.meta -Plugins/Windows/Sentry/crashpad_wer.dll -Plugins/Windows/Sentry/crashpad_wer.dll.meta -Plugins/Windows/Sentry/sentry.dll -Plugins/Windows/Sentry/sentry.dll.meta -Plugins/Windows/Sentry/sentry.pdb -Plugins/Windows/Sentry/sentry.pdb.meta +Plugins/Windows/Sentry~/crashpad_handler.exe +Plugins/Windows/Sentry~/crashpad_wer.dll +Plugins/Windows/Sentry~/crashpad_wer.pdb +Plugins/Windows/Sentry~/sentry.dll +Plugins/Windows/Sentry~/sentry.pdb +Plugins/Windows/SentryNative~/sentry.dll +Plugins/Windows/SentryNative~/sentry.pdb +Plugins/Windows/SentryNative~/sentry-crash.exe +Plugins/Windows/SentryNative~/sentry-crash.pdb +Plugins/Windows/SentryNative~/sentry-wer.dll +Plugins/Windows/SentryNative~/sentry-wer.pdb Prefabs/SentryUserFeedback.prefab Prefabs/SentryUserFeedback.prefab.meta Runtime/io.sentry.unity.runtime.asmdef From a9e598a9c180069755aba0285b5f2b608affc783 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Fri, 29 May 2026 16:09:15 +0200 Subject: [PATCH 24/25] updated snapshot --- test/Scripts.Tests/package-release.zip.snapshot | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/Scripts.Tests/package-release.zip.snapshot b/test/Scripts.Tests/package-release.zip.snapshot index 10397d39e..1c6980db1 100644 --- a/test/Scripts.Tests/package-release.zip.snapshot +++ b/test/Scripts.Tests/package-release.zip.snapshot @@ -27,6 +27,7 @@ Editor/sentry-cli/sentry-cli-Linux-x86_64 Editor/sentry-cli/sentry-cli-Linux-x86_64.meta Editor/sentry-cli/sentry-cli-Windows-x86_64.exe Editor/sentry-cli/sentry-cli-Windows-x86_64.exe.meta +Plugins/Windows/ Plugins/Android.meta Plugins/iOS.meta Plugins/Linux.meta @@ -235,17 +236,17 @@ Plugins/Android/Sentry~/sentry-native-ndk-release.aar Plugins/Android/Sentry~/sentry.jar Plugins/Switch/sentry_native_stubs.c Plugins/Switch/sentry_native_stubs.c.meta +Plugins/Windows/SentryNative~/sentry-crash.exe +Plugins/Windows/SentryNative~/sentry-crash.pdb +Plugins/Windows/SentryNative~/sentry-wer.dll +Plugins/Windows/SentryNative~/sentry-wer.pdb +Plugins/Windows/SentryNative~/sentry.dll +Plugins/Windows/SentryNative~/sentry.pdb Plugins/Windows/Sentry~/crashpad_handler.exe Plugins/Windows/Sentry~/crashpad_wer.dll Plugins/Windows/Sentry~/crashpad_wer.pdb Plugins/Windows/Sentry~/sentry.dll Plugins/Windows/Sentry~/sentry.pdb -Plugins/Windows/SentryNative~/sentry.dll -Plugins/Windows/SentryNative~/sentry.pdb -Plugins/Windows/SentryNative~/sentry-crash.exe -Plugins/Windows/SentryNative~/sentry-crash.pdb -Plugins/Windows/SentryNative~/sentry-wer.dll -Plugins/Windows/SentryNative~/sentry-wer.pdb Prefabs/SentryUserFeedback.prefab Prefabs/SentryUserFeedback.prefab.meta Runtime/io.sentry.unity.runtime.asmdef From ad1c58e4984e8ac6d4080babca600097145a4f00 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Mon, 1 Jun 2026 14:33:12 +0200 Subject: [PATCH 25/25] revert unrelated changelog changes --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4fc81e07..37759aef6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -499,7 +499,7 @@ This release contains the bump of the Cocoa SDK with the following note and reso ### API Changes - The Runtime- and BuildTime-Configuration have been merged into a single `OptionsConfiguration` script. This allows for programmatic configuration of the SDK in one place using precompile directives. Note, that the current limitation of options for Android and iOS being baked into the project at build time still remains. ([#1888](https://github.com/getsentry/sentry-unity/pull/1888)) - This is part of a larger effort to simplify the configuration of the native SDKs and enable users to modify their options at runtime. For more information see + This is part of a larger effort to simplify the configuration of the native SDKs and enable users to modify their options at runtime. For more information see https://github.com/getsentry/sentry-unity/issues/1907 ### Features @@ -585,7 +585,7 @@ This release contains the bump of the Cocoa SDK with the following note and reso - The `SentrySdk.Metrics` module is deprecated and will be removed in the next major release. Sentry will reject all metrics sent after October 7, 2024. - Learn more: ([#3619](https://github.com/getsentry/sentry-dotnet/pull/3619)) + Learn more: https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics ([#3619](https://github.com/getsentry/sentry-dotnet/pull/3619)) ### Fixes @@ -1020,7 +1020,7 @@ If you have compilation errors you can find the affected types or overloads miss - Bump CLI from v2.21.2 to v2.24.1 ([#1501](https://github.com/getsentry/sentry-unity/pull/1501), [#1502](https://github.com/getsentry/sentry-unity/pull/1502), [#1525](https://github.com/getsentry/sentry-unity/pull/1525), [#1528](https://github.com/getsentry/sentry-unity/pull/1528), [#1532](https://github.com/getsentry/sentry-unity/pull/1532)) - [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2241) - [diff](https://github.com/getsentry/sentry-cli/compare/2.21.2...2.24.1) -- Bump Cocoa SDK from v8.16.1 to v8.17.1 [#1503](, [#1508](https://github.com/getsentry/sentry-unity/pull/1508), [#1520](https://github.com/getsentry/sentry-unity/pull/1520), [#1530](https://github.com/getsentry/sentry-unity/pull/1530)) +- Bump Cocoa SDK from v8.16.1 to v8.17.1 [#1503](https://github.com/getsentry/sentry-unity/pull/1503, [#1508](https://github.com/getsentry/sentry-unity/pull/1508), [#1520](https://github.com/getsentry/sentry-unity/pull/1520), [#1530](https://github.com/getsentry/sentry-unity/pull/1530)) - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8180) - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.16.1...8.18.0) - Bump .NET SDK from v3.41.2 to v3.41.3 [#1505](https://github.com/getsentry/sentry-unity/pull/1505) @@ -2146,7 +2146,7 @@ If you have compilation errors you can find the affected types or overloads miss - UPM meta updated ([#124](https://github.com/getsentry/sentry-unity/pull/124)) - Bump dotnet 3.3.4 ([#132](https://github.com/getsentry/sentry-unity/pull/132)) - - + - https://github.com/getsentry/sentry-dotnet/blob/main/CHANGELOG.md#334 - Bug fixes for performance monitoring - Ability to keep failed envelopes for troubleshooting when they are too large