19 changed files with 946 additions and 221 deletions
@ -0,0 +1,14 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<configuration> |
||||
|
<startup> |
||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" /> |
||||
|
</startup> |
||||
|
<runtime> |
||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
||||
|
<dependentAssembly> |
||||
|
<assemblyIdentity name="Mono.Cairo" publicKeyToken="0738eb9f132ed756" culture="neutral" /> |
||||
|
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" /> |
||||
|
</dependentAssembly> |
||||
|
</assemblyBinding> |
||||
|
</runtime> |
||||
|
</configuration> |
||||
@ -0,0 +1,123 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
|
<ProjectGuid>{2B888490-D14A-4BCA-AB4B-48676FA93C9B}</ProjectGuid> |
||||
|
<OutputType>WinExe</OutputType> |
||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
|
<RootNamespace>ControlCatalog.Desktop</RootNamespace> |
||||
|
<AssemblyName>ControlCatalog.Desktop</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="Serilog, Version=1.5.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL"> |
||||
|
<HintPath>..\..\packages\Serilog.1.5.14\lib\net45\Serilog.dll</HintPath> |
||||
|
<Private>True</Private> |
||||
|
</Reference> |
||||
|
<Reference Include="Serilog.FullNetFx, Version=1.5.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL"> |
||||
|
<HintPath>..\..\packages\Serilog.1.5.14\lib\net45\Serilog.FullNetFx.dll</HintPath> |
||||
|
<Private>True</Private> |
||||
|
</Reference> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="Microsoft.CSharp" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Net.Http" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="Program.cs" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
|
<None Include="packages.config" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<None Include="App.config" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\src\Gtk\Perspex.Cairo\Perspex.Cairo.csproj"> |
||||
|
<Project>{FB05AC90-89BA-4F2F-A924-F37875FB547C}</Project> |
||||
|
<Name>Perspex.Cairo</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Gtk\Perspex.Gtk\Perspex.Gtk.csproj"> |
||||
|
<Project>{54F237D5-A70A-4752-9656-0C70B1A7B047}</Project> |
||||
|
<Name>Perspex.Gtk</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Markup\Perspex.Markup.Xaml\Perspex.Markup.Xaml.csproj"> |
||||
|
<Project>{3E53A01A-B331-47F3-B828-4A5717E77A24}</Project> |
||||
|
<Name>Perspex.Markup.Xaml</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Markup\Perspex.Markup\Perspex.Markup.csproj"> |
||||
|
<Project>{6417E941-21BC-467B-A771-0DE389353CE6}</Project> |
||||
|
<Name>Perspex.Markup</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Base\Perspex.Base.csproj"> |
||||
|
<Project>{B09B78D8-9B26-48B0-9149-D64A2F120F3F}</Project> |
||||
|
<Name>Perspex.Base</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Controls\Perspex.Controls.csproj"> |
||||
|
<Project>{D2221C82-4A25-4583-9B43-D791E3F6820C}</Project> |
||||
|
<Name>Perspex.Controls</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Logging.Serilog\Perspex.Logging.Serilog.csproj"> |
||||
|
<Project>{B61B66A3-B82D-4875-8001-89D3394FE0C9}</Project> |
||||
|
<Name>Perspex.Logging.Serilog</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Styling\Perspex.Styling.csproj"> |
||||
|
<Project>{F1BAA01A-F176-4C6A-B39D-5B40BB1B148F}</Project> |
||||
|
<Name>Perspex.Styling</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Themes.Default\Perspex.Themes.Default.csproj"> |
||||
|
<Project>{3E10A5FA-E8DA-48B1-AD44-6A5B6CB7750F}</Project> |
||||
|
<Name>Perspex.Themes.Default</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Skia\Perspex.Skia.Desktop\Perspex.Skia.Desktop.csproj"> |
||||
|
<Project>{925DD807-B651-475F-9F7C-CBEB974CE43D}</Project> |
||||
|
<Name>Perspex.Skia.Desktop</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Windows\Perspex.Direct2D1\Perspex.Direct2D1.csproj"> |
||||
|
<Project>{3E908F67-5543-4879-A1DC-08EACE79B3CD}</Project> |
||||
|
<Name>Perspex.Direct2D1</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Windows\Perspex.Win32\Perspex.Win32.csproj"> |
||||
|
<Project>{811A76CF-1CF6-440F-963B-BBE31BD72A82}</Project> |
||||
|
<Name>Perspex.Win32</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\ControlCatalog\ControlCatalog.csproj"> |
||||
|
<Project>{d0a739b9-3c68-4ba6-a328-41606954b6bd}</Project> |
||||
|
<Name>ControlCatalog</Name> |
||||
|
</ProjectReference> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
|
Other similar extension points exist, see Microsoft.Common.targets. |
||||
|
<Target Name="BeforeBuild"> |
||||
|
</Target> |
||||
|
<Target Name="AfterBuild"> |
||||
|
</Target> |
||||
|
--> |
||||
|
</Project> |
||||
@ -0,0 +1,147 @@ |
|||||
|
using Perspex.Logging.Serilog; |
||||
|
using Serilog; |
||||
|
using System; |
||||
|
using System.Linq; |
||||
|
using Perspex; |
||||
|
using System.Reflection; |
||||
|
using Perspex.Platform; |
||||
|
|
||||
|
|
||||
|
// Not sure where the best home for this is
|
||||
|
namespace Perspex |
||||
|
{ |
||||
|
public static class SharedApplicationExtensions |
||||
|
{ |
||||
|
// For true Portable apps we need to select the PCL assembly NOT the host platform exe. Unfortunately
|
||||
|
// Win32 subsystem registers one by default (the wrong one) and so this can override that.
|
||||
|
//
|
||||
|
public static AppT UseAssetAssembly<AppT>(this AppT app, Assembly assembly) where AppT : Application |
||||
|
{ |
||||
|
// Asset loading searches our own assembly?
|
||||
|
PerspexLocator.CurrentMutable.GetService<IAssetLoader>().SetDefaultAssembly(assembly); |
||||
|
return app; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
namespace ControlCatalog |
||||
|
{ |
||||
|
internal class Program |
||||
|
{ |
||||
|
static void Main(string[] args) |
||||
|
{ |
||||
|
InitializeLogging(); |
||||
|
|
||||
|
new App() |
||||
|
.ConfigureRenderSystem(args) |
||||
|
.UseAssetAssembly(typeof(App).Assembly) |
||||
|
.LoadFromXaml() |
||||
|
.RunWithMainWindow<MainWindow>(); |
||||
|
} |
||||
|
|
||||
|
// This will be made into a runtime configuration extension soon!
|
||||
|
private static void InitializeLogging() |
||||
|
{ |
||||
|
#if DEBUG
|
||||
|
SerilogLogger.Initialize(new LoggerConfiguration() |
||||
|
.MinimumLevel.Warning() |
||||
|
.WriteTo.Trace(outputTemplate: "{Area}: {Message}") |
||||
|
.CreateLogger()); |
||||
|
#endif
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
// Experimental: Would like to move this into a shared location once I figure out the best place for it
|
||||
|
// considering all common libraries are PCL and do not have access to Environment.OSVersion.Platform
|
||||
|
// nor do they have access to the platform specific render/subsystem extensions.
|
||||
|
//
|
||||
|
// Perhaps via DI we register each system with a priority/rank
|
||||
|
//
|
||||
|
public static class RenderSystemExtensions |
||||
|
{ |
||||
|
[Flags] |
||||
|
enum RenderSystem |
||||
|
{ |
||||
|
None = 0, |
||||
|
GTK = 1, |
||||
|
Skia = 2, |
||||
|
Direct2D = 4 |
||||
|
}; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Default (Optimal) render system for a particular platform
|
||||
|
/// </summary>
|
||||
|
/// <returns></returns>
|
||||
|
private static RenderSystem DefaultRenderSystem() |
||||
|
{ |
||||
|
switch (Environment.OSVersion.Platform) |
||||
|
{ |
||||
|
case PlatformID.MacOSX: |
||||
|
return RenderSystem.GTK; |
||||
|
|
||||
|
case PlatformID.Unix: |
||||
|
return RenderSystem.GTK; |
||||
|
|
||||
|
case PlatformID.Win32Windows: |
||||
|
return RenderSystem.Direct2D; |
||||
|
} |
||||
|
|
||||
|
return RenderSystem.None; |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Returns an array of avalidable rendering systems in priority order
|
||||
|
/// </summary>
|
||||
|
/// <returns></returns>
|
||||
|
private static RenderSystem[] AvailableRenderSystems() |
||||
|
{ |
||||
|
switch (Environment.OSVersion.Platform) |
||||
|
{ |
||||
|
case PlatformID.MacOSX: |
||||
|
return new RenderSystem[] { RenderSystem.GTK, RenderSystem.Skia }; |
||||
|
|
||||
|
case PlatformID.Unix: |
||||
|
return new RenderSystem[] { RenderSystem.GTK, RenderSystem.Skia }; |
||||
|
|
||||
|
case PlatformID.Win32Windows: |
||||
|
return new RenderSystem[] { RenderSystem.Direct2D, RenderSystem.Skia, RenderSystem.GTK }; |
||||
|
} |
||||
|
|
||||
|
return new RenderSystem[0]; |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Selects the optimal render system for desktop platforms. Supports cmd line overrides
|
||||
|
/// </summary>
|
||||
|
/// <param name="app"></param>
|
||||
|
/// <param name="args"></param>
|
||||
|
public static TApp ConfigureRenderSystem<TApp>(this TApp app, string[] args) where TApp : Application |
||||
|
{ |
||||
|
// So this all works great under Windows where it can support
|
||||
|
// ALL configurations. But on OSX/Unix we cannot use Direct2D
|
||||
|
//
|
||||
|
if (args.Contains("--gtk") || DefaultRenderSystem() == RenderSystem.GTK) |
||||
|
{ |
||||
|
app.UseGtk(); |
||||
|
app.UseCairo(); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
app.UseWin32(); |
||||
|
|
||||
|
if (args.Contains("--skia") || DefaultRenderSystem() == RenderSystem.Skia) |
||||
|
{ |
||||
|
app.UseSkia(); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
app.UseDirect2D(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
return app; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,36 @@ |
|||||
|
using System.Reflection; |
||||
|
using System.Runtime.CompilerServices; |
||||
|
using System.Runtime.InteropServices; |
||||
|
|
||||
|
// General Information about an assembly is controlled through the following
|
||||
|
// set of attributes. Change these attribute values to modify the information
|
||||
|
// associated with an assembly.
|
||||
|
[assembly: AssemblyTitle("ControlCatalog.Desktop")] |
||||
|
[assembly: AssemblyDescription("")] |
||||
|
[assembly: AssemblyConfiguration("")] |
||||
|
[assembly: AssemblyCompany("")] |
||||
|
[assembly: AssemblyProduct("ControlCatalog.Desktop")] |
||||
|
[assembly: AssemblyCopyright("Copyright © 2016")] |
||||
|
[assembly: AssemblyTrademark("")] |
||||
|
[assembly: AssemblyCulture("")] |
||||
|
|
||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
|
// to COM components. If you need to access a type in this assembly from
|
||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||
|
[assembly: ComVisible(false)] |
||||
|
|
||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
|
[assembly: Guid("2b888490-d14a-4bca-ab4b-48676fa93c9b")] |
||||
|
|
||||
|
// Version information for an assembly consists of the following four values:
|
||||
|
//
|
||||
|
// Major Version
|
||||
|
// Minor Version
|
||||
|
// Build Number
|
||||
|
// Revision
|
||||
|
//
|
||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
|
// by using the '*' as shown below:
|
||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||
|
[assembly: AssemblyVersion("1.0.0.0")] |
||||
|
[assembly: AssemblyFileVersion("1.0.0.0")] |
||||
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<packages> |
||||
|
<package id="Serilog" version="1.5.14" targetFramework="net451" /> |
||||
|
</packages> |
||||
@ -0,0 +1,35 @@ |
|||||
|
using Foundation; |
||||
|
using UIKit; |
||||
|
using Perspex; |
||||
|
|
||||
|
namespace ControlCatalog |
||||
|
{ |
||||
|
// The UIApplicationDelegate for the application. This class is responsible for launching the
|
||||
|
// User Interface of the application, as well as listening (and optionally responding) to
|
||||
|
// application events from iOS.
|
||||
|
[Register("AppDelegate")] |
||||
|
public partial class AppDelegate : UIApplicationDelegate |
||||
|
{ |
||||
|
//
|
||||
|
// This method is invoked when the application has loaded and is ready to run. In this
|
||||
|
// method you should instantiate the window, load the UI into it and then make the window
|
||||
|
// visible.
|
||||
|
//
|
||||
|
// You have 17 seconds to return from this method, or iOS will terminate your application.
|
||||
|
//
|
||||
|
public override bool FinishedLaunching(UIApplication uiapp, NSDictionary options) |
||||
|
{ |
||||
|
new App() |
||||
|
.UseiOS() |
||||
|
.UseSkiaViewHost() |
||||
|
.UseSkia() |
||||
|
.UseAssetAssembly(typeof(App).Assembly) |
||||
|
.LoadFromXaml() |
||||
|
.RunWithMainWindow<MainWindow>(); |
||||
|
|
||||
|
return true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,188 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform> |
||||
|
<ProjectGuid>{57E0455D-D565-44BB-B069-EE1AA20F8337}</ProjectGuid> |
||||
|
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
||||
|
<OutputType>Exe</OutputType> |
||||
|
<RootNamespace>ControlCatalog.iOS</RootNamespace> |
||||
|
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix> |
||||
|
<AssemblyName>ControlCatalogiOS</AssemblyName> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' "> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath> |
||||
|
<DefineConstants>DEBUG</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<ConsolePause>false</ConsolePause> |
||||
|
<MtouchArch>i386</MtouchArch> |
||||
|
<MtouchLink>None</MtouchLink> |
||||
|
<MtouchDebug>true</MtouchDebug> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' "> |
||||
|
<DebugType>none</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\iPhoneSimulator\Release</OutputPath> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<MtouchLink>None</MtouchLink> |
||||
|
<MtouchArch>i386</MtouchArch> |
||||
|
<ConsolePause>false</ConsolePause> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' "> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\iPhone\Debug</OutputPath> |
||||
|
<DefineConstants>DEBUG</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<ConsolePause>false</ConsolePause> |
||||
|
<MtouchArch>ARMv7, ARM64</MtouchArch> |
||||
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements> |
||||
|
<CodesignKey>iPhone Developer</CodesignKey> |
||||
|
<MtouchDebug>true</MtouchDebug> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> |
||||
|
<DebugType>none</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\iPhone\Release</OutputPath> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements> |
||||
|
<MtouchArch>ARMv7, ARM64</MtouchArch> |
||||
|
<ConsolePause>false</ConsolePause> |
||||
|
<CodesignKey>iPhone Developer</CodesignKey> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' "> |
||||
|
<DebugType>none</DebugType> |
||||
|
<Optimize>True</Optimize> |
||||
|
<OutputPath>bin\iPhone\Ad-Hoc</OutputPath> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<ConsolePause>False</ConsolePause> |
||||
|
<MtouchArch>ARMv7, ARM64</MtouchArch> |
||||
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements> |
||||
|
<BuildIpa>True</BuildIpa> |
||||
|
<CodesignProvision>Automatic:AdHoc</CodesignProvision> |
||||
|
<CodesignKey>iPhone Distribution</CodesignKey> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' "> |
||||
|
<DebugType>none</DebugType> |
||||
|
<Optimize>True</Optimize> |
||||
|
<OutputPath>bin\iPhone\AppStore</OutputPath> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<ConsolePause>False</ConsolePause> |
||||
|
<MtouchArch>ARMv7, ARM64</MtouchArch> |
||||
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements> |
||||
|
<CodesignProvision>Automatic:AppStore</CodesignProvision> |
||||
|
<CodesignKey>iPhone Distribution</CodesignKey> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="Main.cs" /> |
||||
|
<Compile Include="AppDelegate.cs" /> |
||||
|
<None Include="Info.plist" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
|
<InterfaceDefinition Include="Resources\LaunchScreen.xib" /> |
||||
|
<Content Include="Entitlements.plist" /> |
||||
|
<None Include="packages.config" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Reactive.Core, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
||||
|
<HintPath>..\..\packages\Rx-Core.2.2.5\lib\portable-windows8+net45+wp8\System.Reactive.Core.dll</HintPath> |
||||
|
<Private>True</Private> |
||||
|
</Reference> |
||||
|
<Reference Include="System.Reactive.Interfaces, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
||||
|
<HintPath>..\..\packages\Rx-Interfaces.2.2.5\lib\portable-windows8+net45+wp8\System.Reactive.Interfaces.dll</HintPath> |
||||
|
<Private>True</Private> |
||||
|
</Reference> |
||||
|
<Reference Include="System.Reactive.Linq, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
||||
|
<HintPath>..\..\packages\Rx-Linq.2.2.5\lib\portable-windows8+net45+wp8\System.Reactive.Linq.dll</HintPath> |
||||
|
<Private>True</Private> |
||||
|
</Reference> |
||||
|
<Reference Include="System.Reactive.PlatformServices, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
||||
|
<HintPath>..\..\packages\Rx-PlatformServices.2.2.5\lib\portable-windows8+net45+wp8\System.Reactive.PlatformServices.dll</HintPath> |
||||
|
<Private>True</Private> |
||||
|
</Reference> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="Xamarin.iOS" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\src\iOS\Perspex.iOS\Perspex.iOS.csproj"> |
||||
|
<Project>{4488AD85-1495-4809-9AA4-DDFE0A48527E}</Project> |
||||
|
<Name>Perspex.iOS</Name> |
||||
|
<IsAppExtension>false</IsAppExtension> |
||||
|
<IsWatchApp>false</IsWatchApp> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Markup\Perspex.Markup.Xaml\Perspex.Markup.Xaml.csproj"> |
||||
|
<Project>{3E53A01A-B331-47F3-B828-4A5717E77A24}</Project> |
||||
|
<Name>Perspex.Markup.Xaml</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Markup\Perspex.Markup\Perspex.Markup.csproj"> |
||||
|
<Project>{6417E941-21BC-467B-A771-0DE389353CE6}</Project> |
||||
|
<Name>Perspex.Markup</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Animation\Perspex.Animation.csproj"> |
||||
|
<Project>{D211E587-D8BC-45B9-95A4-F297C8FA5200}</Project> |
||||
|
<Name>Perspex.Animation</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Base\Perspex.Base.csproj"> |
||||
|
<Project>{B09B78D8-9B26-48B0-9149-D64A2F120F3F}</Project> |
||||
|
<Name>Perspex.Base</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Controls\Perspex.Controls.csproj"> |
||||
|
<Project>{D2221C82-4A25-4583-9B43-D791E3F6820C}</Project> |
||||
|
<Name>Perspex.Controls</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Diagnostics\Perspex.Diagnostics.csproj"> |
||||
|
<Project>{7062AE20-5DCC-4442-9645-8195BDECE63E}</Project> |
||||
|
<Name>Perspex.Diagnostics</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.HtmlRenderer\Perspex.HtmlRenderer.csproj"> |
||||
|
<Project>{5FB2B005-0A7F-4DAD-ADD4-3ED01444E63D}</Project> |
||||
|
<Name>Perspex.HtmlRenderer</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Input\Perspex.Input.csproj"> |
||||
|
<Project>{62024B2D-53EB-4638-B26B-85EEAA54866E}</Project> |
||||
|
<Name>Perspex.Input</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Interactivity\Perspex.Interactivity.csproj"> |
||||
|
<Project>{6B0ED19D-A08B-461C-A9D9-A9EE40B0C06B}</Project> |
||||
|
<Name>Perspex.Interactivity</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Layout\Perspex.Layout.csproj"> |
||||
|
<Project>{42472427-4774-4C81-8AFF-9F27B8E31721}</Project> |
||||
|
<Name>Perspex.Layout</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.SceneGraph\Perspex.SceneGraph.csproj"> |
||||
|
<Project>{EB582467-6ABB-43A1-B052-E981BA910E3A}</Project> |
||||
|
<Name>Perspex.SceneGraph</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Styling\Perspex.Styling.csproj"> |
||||
|
<Project>{F1BAA01A-F176-4C6A-B39D-5B40BB1B148F}</Project> |
||||
|
<Name>Perspex.Styling</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Perspex.Themes.Default\Perspex.Themes.Default.csproj"> |
||||
|
<Project>{3E10A5FA-E8DA-48B1-AD44-6A5B6CB7750F}</Project> |
||||
|
<Name>Perspex.Themes.Default</Name> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\..\src\Skia\Perspex.Skia.iOS\Perspex.Skia.iOS.csproj"> |
||||
|
<Project>{47BE08A7-5985-410B-9FFC-2264B8EA595F}</Project> |
||||
|
<Name>Perspex.Skia.iOS</Name> |
||||
|
<IsAppExtension>false</IsAppExtension> |
||||
|
<IsWatchApp>false</IsWatchApp> |
||||
|
</ProjectReference> |
||||
|
<ProjectReference Include="..\ControlCatalog\ControlCatalog.csproj"> |
||||
|
<Project>{d0a739b9-3c68-4ba6-a328-41606954b6bd}</Project> |
||||
|
<Name>ControlCatalog</Name> |
||||
|
</ProjectReference> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" /> |
||||
|
</Project> |
||||
@ -0,0 +1,5 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
|
<plist version="1.0"> |
||||
|
<dict/> |
||||
|
</plist> |
||||
@ -0,0 +1,42 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
|
<plist version="1.0"> |
||||
|
<dict> |
||||
|
<key>CFBundleDisplayName</key> |
||||
|
<string>ControlCatalog.iOS</string> |
||||
|
<key>CFBundleIdentifier</key> |
||||
|
<string>com.companyname.ControlCatalog.iOS</string> |
||||
|
<key>CFBundleShortVersionString</key> |
||||
|
<string>1.0</string> |
||||
|
<key>CFBundleVersion</key> |
||||
|
<string>1.0</string> |
||||
|
<key>LSRequiresIPhoneOS</key> |
||||
|
<true/> |
||||
|
<key>MinimumOSVersion</key> |
||||
|
<string>8.0</string> |
||||
|
<key>UIDeviceFamily</key> |
||||
|
<array> |
||||
|
<integer>1</integer> |
||||
|
<integer>2</integer> |
||||
|
</array> |
||||
|
<key>UILaunchStoryboardName</key> |
||||
|
<string>LaunchScreen</string> |
||||
|
<key>UIRequiredDeviceCapabilities</key> |
||||
|
<array> |
||||
|
<string>armv7</string> |
||||
|
</array> |
||||
|
<key>UISupportedInterfaceOrientations</key> |
||||
|
<array> |
||||
|
<string>UIInterfaceOrientationPortrait</string> |
||||
|
<string>UIInterfaceOrientationLandscapeLeft</string> |
||||
|
<string>UIInterfaceOrientationLandscapeRight</string> |
||||
|
</array> |
||||
|
<key>UISupportedInterfaceOrientations~ipad</key> |
||||
|
<array> |
||||
|
<string>UIInterfaceOrientationPortrait</string> |
||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string> |
||||
|
<string>UIInterfaceOrientationLandscapeLeft</string> |
||||
|
<string>UIInterfaceOrientationLandscapeRight</string> |
||||
|
</array> |
||||
|
</dict> |
||||
|
</plist> |
||||
@ -0,0 +1,15 @@ |
|||||
|
using UIKit; |
||||
|
|
||||
|
namespace ControlCatalog.iOS |
||||
|
{ |
||||
|
public class Application |
||||
|
{ |
||||
|
// This is the main entry point of the application.
|
||||
|
static void Main(string[] args) |
||||
|
{ |
||||
|
// if you want to use a different Application Delegate class from "AppDelegate"
|
||||
|
// you can specify it here.
|
||||
|
UIApplication.Main(args, null, "AppDelegate"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,36 @@ |
|||||
|
using System.Reflection; |
||||
|
using System.Runtime.CompilerServices; |
||||
|
using System.Runtime.InteropServices; |
||||
|
|
||||
|
// General Information about an assembly is controlled through the following
|
||||
|
// set of attributes. Change these attribute values to modify the information
|
||||
|
// associated with an assembly.
|
||||
|
[assembly: AssemblyTitle("ControlCatalog.iOS")] |
||||
|
[assembly: AssemblyDescription("")] |
||||
|
[assembly: AssemblyConfiguration("")] |
||||
|
[assembly: AssemblyCompany("")] |
||||
|
[assembly: AssemblyProduct("ControlCatalog.iOS")] |
||||
|
[assembly: AssemblyCopyright("Copyright © 2016")] |
||||
|
[assembly: AssemblyTrademark("")] |
||||
|
[assembly: AssemblyCulture("")] |
||||
|
|
||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
|
// to COM components. If you need to access a type in this assembly from
|
||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||
|
[assembly: ComVisible(false)] |
||||
|
|
||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
|
[assembly: Guid("57e0455d-d565-44bb-b069-ee1aa20f8337")] |
||||
|
|
||||
|
// Version information for an assembly consists of the following four values:
|
||||
|
//
|
||||
|
// Major Version
|
||||
|
// Minor Version
|
||||
|
// Build Number
|
||||
|
// Revision
|
||||
|
//
|
||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
|
// by using the '*' as shown below:
|
||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||
|
[assembly: AssemblyVersion("1.0.0.0")] |
||||
|
[assembly: AssemblyFileVersion("1.0.0.0")] |
||||
@ -0,0 +1,43 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES"> |
||||
|
<dependencies> |
||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207" /> |
||||
|
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1" /> |
||||
|
</dependencies> |
||||
|
<objects> |
||||
|
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" /> |
||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder" /> |
||||
|
<view contentMode="scaleToFill" id="iN0-l3-epB"> |
||||
|
<rect key="frame" x="0.0" y="0.0" width="480" height="480" /> |
||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" /> |
||||
|
<subviews> |
||||
|
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2016 " textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" |
||||
|
minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye"> |
||||
|
<rect key="frame" x="20" y="439" width="441" height="21" /> |
||||
|
<fontDescription key="fontDescription" type="system" pointSize="17" /> |
||||
|
<color key="textColor" cocoaTouchSystemColor="darkTextColor" /> |
||||
|
<nil key="highlightedColor" /> |
||||
|
</label> |
||||
|
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="ControlCatalog.iOS" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" |
||||
|
minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX"> |
||||
|
<rect key="frame" x="20" y="140" width="441" height="43" /> |
||||
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="36" /> |
||||
|
<color key="textColor" cocoaTouchSystemColor="darkTextColor" /> |
||||
|
<nil key="highlightedColor" /> |
||||
|
</label> |
||||
|
</subviews> |
||||
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite" /> |
||||
|
<constraints> |
||||
|
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC" /> |
||||
|
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk" /> |
||||
|
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l" /> |
||||
|
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0" /> |
||||
|
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9" /> |
||||
|
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g" /> |
||||
|
</constraints> |
||||
|
<nil key="simulatedStatusBarMetrics" /> |
||||
|
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics" /> |
||||
|
<point key="canvasLocation" x="548" y="455" /> |
||||
|
</view> |
||||
|
</objects> |
||||
|
</document> |
||||
@ -0,0 +1,8 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<packages> |
||||
|
<package id="Rx-Core" version="2.2.5" targetFramework="xamarinios10" /> |
||||
|
<package id="Rx-Interfaces" version="2.2.5" targetFramework="xamarinios10" /> |
||||
|
<package id="Rx-Linq" version="2.2.5" targetFramework="xamarinios10" /> |
||||
|
<package id="Rx-Main" version="2.2.5" targetFramework="xamarinios10" /> |
||||
|
<package id="Rx-PlatformServices" version="2.2.5" targetFramework="xamarinios10" /> |
||||
|
</packages> |
||||
Loading…
Reference in new issue