Skip to content

Commit b808e21

Browse files
committed
cleanups & fixes
1 parent 65b8167 commit b808e21

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@
2020
<ProjectReference Include="..\..\src\Sentry\Sentry.csproj" />
2121
</ItemGroup>
2222

23-
<!--
24-
Use the arm64 runtime when building on arm64 Macs.
25-
See https://github.com/xamarin/xamarin-macios/issues/17841
26-
-->
27-
<PropertyGroup>
28-
<OSArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)</OSArchitecture>
29-
<!-- Switch to this when running on an actual device -->
30-
<!-- <RuntimeIdentifier Condition="'$(OSArchitecture)' == 'Arm64'">ios-arm64</RuntimeIdentifier>-->
31-
<RuntimeIdentifier Condition="'$(OSArchitecture)' == 'Arm64' And ('$(_iOSRuntimeIdentifier)' == 'iossimulator-x64' Or ('$(_iOSRuntimeIdentifier)' == '' And '$(RuntimeIdentifier)' == ''))">iossimulator-arm64</RuntimeIdentifier>
32-
</PropertyGroup>
33-
3423
<!--
3524
To run on a device, you need to set the CodesignEntitlements property.
3625
-->

samples/Sentry.Samples.Maui/Sentry.Samples.Maui.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<SingleProject>true</SingleProject>
1717
<ImplicitUsings>enable</ImplicitUsings>
1818
<PublishReadyToRun>false</PublishReadyToRun>
19-
<PublishAot>true</PublishAot>
19+
<PublishAot Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'android'">true</PublishAot>
2020

2121
<!-- Display name -->
2222
<ApplicationTitle>Sentry.Samples.Maui</ApplicationTitle>
@@ -59,11 +59,12 @@
5959
<TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier>
6060

6161
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'android' And '$(OSArchitecture)' == 'Arm64'">android-arm64</RuntimeIdentifier>
62-
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'ios' And '$(OSArchitecture)' == 'Arm64'">iossimulator-arm64</RuntimeIdentifier>
62+
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'ios' And '$(_IsPublishing)' == 'true'">ios-arm64</RuntimeIdentifier>
63+
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'ios' And '$(OSArchitecture)' == 'Arm64' And '$(_IsPublishing)' != 'true'">iossimulator-arm64</RuntimeIdentifier>
6364
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst' And '$(OSArchitecture)' == 'Arm64'">maccatalyst-arm64</RuntimeIdentifier>
6465

6566
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'android' And '$(OSArchitecture)' == 'x64'">android-x64</RuntimeIdentifier>
66-
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'ios' And '$(OSArchitecture)' == 'x64'">iossimulator-x64</RuntimeIdentifier>
67+
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'ios' And '$(OSArchitecture)' == 'x64' And '$(_IsPublishing)' != 'true'">iossimulator-x64</RuntimeIdentifier>
6768
<RuntimeIdentifier Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst' And '$(OSArchitecture)' == 'x64'">maccatalyst-x64</RuntimeIdentifier>
6869
</PropertyGroup>
6970

src/Sentry/Platforms/iOS/CFunctions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Sentry.Extensibility;
22
using Sentry.Internal.Extensions;
3+
using Sentry.Protocol;
34

45
namespace Sentry.iOS;
56

test/Sentry.Tests/Protocol/Exceptions/SentryStackFrameTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ public void ConfigureAppFrame_NativeAOTWithoutMethodInfo_InAppIsNull()
231231
Assert.Null(sut.InApp);
232232
}
233233

234+
#if NET6_0_OR_GREATER
234235
[Fact]
235236
public void ConfigureAppFrame_NativeAOTWithoutMethodInfo_InAppIsSet()
236237
{
@@ -244,5 +245,5 @@ public void ConfigureAppFrame_NativeAOTWithoutMethodInfo_InAppIsSet()
244245
sut.ConfigureAppFrame(new());
245246
Assert.True(sut.InApp);
246247
}
247-
248+
#endif
248249
}

0 commit comments

Comments
 (0)