Summary: Using shared code for reuse in other platforms based on iOS native implementation. Adds YogaKit sample. Adds YogaKit tests (same as objc). ``` YogaKitTest : 80 ms Facebook.YogaKit.iOS.Tests.exe : 81 ms Tests run: 11 Passed: 8 Inconclusive: 0 Failed: 3 Ignored: 1 ``` Since we don't have extension properties we need to go with a extension method to get access to the YogaLayout . I m also not sure this is leak free yet, would love some help with testing and feedback about view/node lifecycle Closes https://github.com/facebook/yoga/pull/336 Reviewed By: splhack Differential Revision: D4415027 Pulled By: emilsjolander fbshipit-source-id: c88328212426c3200e6f0c48cda594cd2c432065
128 lines
5.6 KiB
XML
128 lines
5.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
|
<ProjectGuid>{6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}</ProjectGuid>
|
|
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
<OutputType>Exe</OutputType>
|
|
<RootNamespace>Facebook.YogaKit.iOS.Sample</RootNamespace>
|
|
<AssemblyName>Facebook.YogaKit.iOS.Sample</AssemblyName>
|
|
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>full</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
|
|
<DefineConstants>DEBUG;ENABLE_TEST_CLOUD;__IOS__</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<CodesignKey>iPhone Developer</CodesignKey>
|
|
<MtouchDebug>true</MtouchDebug>
|
|
<MtouchFastDev>true</MtouchFastDev>
|
|
<MtouchProfiling>true</MtouchProfiling>
|
|
<MtouchUseSGen>true</MtouchUseSGen>
|
|
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
|
<IOSDebuggerPort>56768</IOSDebuggerPort>
|
|
<MtouchLink>None</MtouchLink>
|
|
<MtouchArch>x86_64</MtouchArch>
|
|
<MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
|
|
<MtouchTlsProvider>Default</MtouchTlsProvider>
|
|
<DeviceSpecificBuild>false</DeviceSpecificBuild>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
|
<DebugType>pdbonly</DebugType>
|
|
<Optimize>true</Optimize>
|
|
<OutputPath>bin\iPhone\Release</OutputPath>
|
|
<DefineConstants></DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<CodesignKey>iPhone Developer</CodesignKey>
|
|
<MtouchUseSGen>true</MtouchUseSGen>
|
|
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
|
<MtouchFloat32>true</MtouchFloat32>
|
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
|
<MtouchLink>SdkOnly</MtouchLink>
|
|
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
|
<MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
|
|
<MtouchTlsProvider>Default</MtouchTlsProvider>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
|
<DebugType></DebugType>
|
|
<Optimize>true</Optimize>
|
|
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
|
|
<DefineConstants></DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<CodesignKey>iPhone Developer</CodesignKey>
|
|
<MtouchUseSGen>true</MtouchUseSGen>
|
|
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
|
<MtouchLink>None</MtouchLink>
|
|
<MtouchArch>x86_64</MtouchArch>
|
|
<MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
|
|
<MtouchTlsProvider>Default</MtouchTlsProvider>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>full</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\iPhone\Debug</OutputPath>
|
|
<DefineConstants>DEBUG;ENABLE_TEST_CLOUD;</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<CodesignKey>iPhone Developer</CodesignKey>
|
|
<DeviceSpecificBuild>true</DeviceSpecificBuild>
|
|
<MtouchDebug>true</MtouchDebug>
|
|
<MtouchFastDev>true</MtouchFastDev>
|
|
<MtouchProfiling>true</MtouchProfiling>
|
|
<MtouchUseSGen>true</MtouchUseSGen>
|
|
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
|
<MtouchFloat32>true</MtouchFloat32>
|
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
|
<MtouchLink>SdkOnly</MtouchLink>
|
|
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
|
<MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
|
|
<MtouchTlsProvider>Default</MtouchTlsProvider>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Xml" />
|
|
<Reference Include="System.Core" />
|
|
<Reference Include="Xamarin.iOS" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json" />
|
|
<ImageAsset Include="Assets.xcassets\Contents.json" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Folder Include="Resources\" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<InterfaceDefinition Include="LaunchScreen.storyboard" />
|
|
<InterfaceDefinition Include="Main.storyboard" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="Info.plist" />
|
|
<None Include="Entitlements.plist" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="Main.cs" />
|
|
<Compile Include="AppDelegate.cs" />
|
|
<Compile Include="ViewController.cs" />
|
|
<Compile Include="ViewController.designer.cs">
|
|
<DependentUpon>ViewController.cs</DependentUpon>
|
|
</Compile>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Facebook.YogaKit.iOS\Facebook.YogaKit.iOS.csproj">
|
|
<Project>{0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}</Project>
|
|
<Name>Facebook.YogaKit.iOS</Name>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\Facebook.Yoga.iOS\Facebook.Yoga.iOS.csproj">
|
|
<Project>{128FB32A-C4A1-4363-BF06-0A36E700B7FA}</Project>
|
|
<Name>Facebook.Yoga.iOS</Name>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
|
</Project> |