|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<Project Sdk="Xamarin.Legacy.Sdk"> |
| 1 | +<Project Sdk="Xamarin.Legacy.Sdk"> |
3 | 2 | <PropertyGroup>
|
4 | 3 | <TargetFrameworks>xamarin.ios10;net6.0-ios</TargetFrameworks>
|
5 | 4 | <NoNFloatUsing Condition="'$(TargetFramework)' == 'xamarin.ios10'">true</NoNFloatUsing>
|
|
15 | 14 | <IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
|
16 | 15 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
17 | 16 | </PropertyGroup>
|
18 |
| - |
19 | 17 | <PropertyGroup>
|
20 | 18 | <PackageId>Xamarin.Firebase.iOS.ABTesting</PackageId>
|
21 | 19 | <Title>Firebase APIs A/B Testing iOS Library</Title>
|
|
30 | 28 | <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
31 | 29 | <PackageVersion>8.10.0</PackageVersion>
|
32 | 30 | </PropertyGroup>
|
33 |
| - |
34 | 31 | <ItemGroup>
|
35 | 32 | <Compile Include="..\AssemblyInfo.cs" />
|
36 | 33 | </ItemGroup>
|
37 |
| - |
38 | 34 | <ItemGroup>
|
39 | 35 | <Folder Include="Resources\" />
|
40 | 36 | </ItemGroup>
|
41 |
| - |
42 | 37 | <ItemGroup>
|
| 38 | + <None Include="ABTesting.targets" Pack="True" PackagePath="build/Xamarin.Firebase.iOS.ABTesting.targets" /> |
| 39 | + <None Include="ABTesting.targets" Pack="True" PackagePath="buildTransitive/Xamarin.Firebase.iOS.ABTesting.targets" /> |
43 | 40 | <None Include="External-Dependency-Info.txt" Pack="True" PackagePath="THIRD-PARTY-NOTICES.txt" />
|
44 | 41 | <None Include="License.md" Pack="True" PackagePath="License.md" />
|
45 | 42 | <None Include="../../../icons/firebaseiosabtesting_128x128.png" Pack="True" PackagePath="firebaseiosabtesting_128x128.png" />
|
46 | 43 | </ItemGroup>
|
47 |
| - |
| 44 | + <!-- An iOS app project cannot find Xcframeworks within a NuGet if a TFM |
| 45 | + previous than net6.0-ios is used. |
| 46 | + https://github.com/xamarin/xamarin-macios/issues/13693 |
| 47 | + You must include the Xcframework's NativeReference tag into the iOS app |
| 48 | + project so sidecar can work properly. --> |
| 49 | + <!-- This workaround was designed like this to have the same |
| 50 | + the NativeReference tag for the iOS binding and for the .targets file --> |
| 51 | + <Import Project="ABTesting.targets" /> |
48 | 52 | <ItemGroup>
|
49 |
| - <NativeReference Include="..\..\..\externals\FirebaseABTesting.framework"> |
50 |
| - <Kind>Framework</Kind> |
51 |
| - <SmartLink>True</SmartLink> |
52 |
| - <ForceLoad>True</ForceLoad> |
53 |
| - <LinkerFlags>-ObjC -lz</LinkerFlags> |
54 |
| - <Frameworks>Security SystemConfiguration</Frameworks> |
55 |
| - </NativeReference> |
| 53 | + <_NativeReference Include="..\..\..\externals\FirebaseABTesting.xcframework"> |
| 54 | + <_Id>$(_FirebaseABTestingId)</_Id> |
| 55 | + </_NativeReference> |
56 | 56 | </ItemGroup>
|
57 |
| - |
| 57 | + <!-- End of workaround --> |
58 | 58 | <ItemGroup Condition="'$(TargetFramework)' == 'xamarin.ios10'">
|
59 | 59 | <Compile Remove="ApiDefinition.cs" />
|
60 | 60 | <Compile Remove="Enums.cs" />
|
61 | 61 | </ItemGroup>
|
62 |
| - |
63 | 62 | <ItemGroup>
|
64 | 63 | <ObjcBindingCoreSource Include="Enums.cs" Condition=" '$(EnableDefaultCompileItems)' == 'true'" />
|
65 | 64 | </ItemGroup>
|
66 |
| - |
67 | 65 | <ItemGroup>
|
68 | 66 | <ObjcBindingApiDefinition Include="ApiDefinition.cs" Condition=" '$(EnableDefaultCompileItems)' == 'true'" />
|
69 | 67 | </ItemGroup>
|
70 |
| - |
71 | 68 | <ItemGroup>
|
72 | 69 | <PackageReference Include="Xamarin.Build.Download" Version="0.11.0" PrivateAssets="None" />
|
73 | 70 | </ItemGroup>
|
74 |
| - |
75 | 71 | <ItemGroup>
|
76 | 72 | <ProjectReference Include="..\Core\Core.csproj" PrivateAssets="None" />
|
77 | 73 | </ItemGroup>
|
78 |
| - |
79 | 74 | </Project>
|
0 commit comments