Skip to content

Commit c615166

Browse files
github-actions[bot]web-flowmattjohnsonpint
authored
chore(deps): update Cocoa SDK to v8.7.2 (#2375)
* chore: update modules/sentry-cocoa to 8.7.2 * . * . --------- Co-authored-by: GitHub <[email protected]> Co-authored-by: Matt Johnson-Pint <[email protected]>
1 parent 788ffd2 commit c615166

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
### Dependencies
2626

27-
- Bump Cocoa SDK from v8.6.0 to v8.7.1 ([#2359](https://github.com/getsentry/sentry-dotnet/pull/2359), [#2370](https://github.com/getsentry/sentry-dotnet/pull/2370))
28-
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#871)
29-
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.6.0...8.7.1)
27+
- Bump Cocoa SDK from v8.6.0 to v8.7.2 ([#2359](https://github.com/getsentry/sentry-dotnet/pull/2359), [#2370](https://github.com/getsentry/sentry-dotnet/pull/2370), [#2375](https://github.com/getsentry/sentry-dotnet/pull/2375))
28+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#872)
29+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.6.0...8.7.2)
3030

3131
## 3.31.0
3232

test/MauiTestUtils/DeviceTests.Runners.SourceGen/TestUtils.DeviceTests.Runners.SourceGen.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.*" PrivateAssets="All" />
12+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.5.0" PrivateAssets="All" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

test/MauiTestUtils/DeviceTests/AssertionExtensions.iOS.cs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -380,22 +380,25 @@ public static void AssertEqual(this CATransform3D expected, CATransform3D actual
380380

381381
static UIWindow? GetKeyWindow(UIApplication application)
382382
{
383-
if (OperatingSystem.IsIOSVersionAtLeast(15))
383+
if (OperatingSystem.IsIOSVersionAtLeast(13) || OperatingSystem.IsMacCatalystVersionAtLeast(13, 1))
384384
{
385+
#pragma warning disable CA1416
385386
foreach (var scene in application.ConnectedScenes)
386387
{
387-
if (scene is UIWindowScene windowScene
388-
&& windowScene.ActivationState == UISceneActivationState.ForegroundActive)
388+
if (scene is not UIWindowScene {ActivationState: UISceneActivationState.ForegroundActive} windowScene)
389389
{
390-
foreach (var window in windowScene.Windows)
390+
continue;
391+
}
392+
393+
foreach (var window in windowScene.Windows)
394+
{
395+
if (window.IsKeyWindow)
391396
{
392-
if (window.IsKeyWindow)
393-
{
394-
return window;
395-
}
397+
return window;
396398
}
397399
}
398400
}
401+
#pragma warning restore CA1416
399402

400403
return null;
401404
}
@@ -411,4 +414,4 @@ public static void AssertEqual(this CATransform3D expected, CATransform3D actual
411414

412415
return null;
413416
}
414-
}
417+
}

0 commit comments

Comments
 (0)