Skip to content

Commit

Permalink
Enable the intepreter for apple platforms on maui
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Feb 23, 2024
1 parent 954a526 commit c157d5d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Tests/Tests.Maui/Tests.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@
<!-- Required for C# Hot Reload -->
<UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter>

<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">13.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-ios'))">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-maccatalyst'))">13.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-android'))">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>

<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) or $(TargetFramework.Contains('-maccatalyst'))">
<!-- Enable the interpreter as that's needed for the xsl transformation of the test results -->
<UseIntepreter>true</UseIntepreter>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Realm.Tests\Realm.Tests.csproj" />
</ItemGroup>
Expand Down Expand Up @@ -59,7 +64,7 @@
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-ios' AND '$(UseRealmNupkgsWithVersion)' == ''">
<ItemGroup Condition="$(TargetFramework.Contains('-ios')) AND '$(UseRealmNupkgsWithVersion)' == ''">
<NativeReference Include="..\..\wrappers\build\iphoneos\$(Configuration)\realm-wrappers.framework" Condition="$(RuntimeIdentifier.StartsWith('ios-'))">
<Kind>Framework</Kind>
<SmartLink>False</SmartLink>
Expand All @@ -70,7 +75,7 @@
</NativeReference>
</ItemGroup>
<ItemGroup Condition="'$(UseRealmNupkgsWithVersion)' == ''">
<NativeReference Include="..\..\wrappers\build\macosx\$(Configuration)\realm-wrappers.framework" Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">
<NativeReference Include="..\..\wrappers\build\macosx\$(Configuration)\realm-wrappers.framework" Condition="$(TargetFramework.Contains('-maccatalyst'))">
<Kind>Framework</Kind>
<SmartLink>False</SmartLink>
</NativeReference>
Expand All @@ -82,7 +87,7 @@
</None>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-android' AND '$(UseRealmNupkgsWithVersion)' == ''">
<ItemGroup Condition="$(TargetFramework.Contains('-android')) AND '$(UseRealmNupkgsWithVersion)' == ''">
<AndroidNativeLibrary Include="..\..\wrappers\build\android\$(Configuration)-x86\librealm-wrappers.so">
<Link>lib\x86\librealm-wrappers.so</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down

0 comments on commit c157d5d

Please sign in to comment.