Skip to content

Commit 89a0676

Browse files
committed
Merge pull request #11 from mattleibow/xamarin-updates
Added the Xamarin platforms to the Engine.IO client for .NET
2 parents 81b7134 + 80331c0 commit 89a0676

File tree

46 files changed

+1946
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1946
-19
lines changed
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.core.2.0.0\build\monoandroid\xunit.core.props" Condition="Exists('..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.core.2.0.0\build\monoandroid\xunit.core.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProductVersion>8.0.30703</ProductVersion>
8+
<SchemaVersion>2.0</SchemaVersion>
9+
<ProjectGuid>{C5CD5898-63A6-46CB-A1D0-B6FBCE505DC3}</ProjectGuid>
10+
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
11+
<OutputType>Library</OutputType>
12+
<AppDesignerFolder>Properties</AppDesignerFolder>
13+
<RootNamespace>EngineIoClientDotNet.Tests.Xamarin_Android</RootNamespace>
14+
<AssemblyName>EngineIoClientDotNet.Tests.Xamarin-Android</AssemblyName>
15+
<FileAlignment>512</FileAlignment>
16+
<AndroidApplication>true</AndroidApplication>
17+
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
18+
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
19+
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
20+
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
21+
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
22+
<NuGetPackageImportStamp>e1a141c4</NuGetPackageImportStamp>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
25+
<DebugSymbols>true</DebugSymbols>
26+
<DebugType>full</DebugType>
27+
<Optimize>false</Optimize>
28+
<OutputPath>bin\Debug\</OutputPath>
29+
<DefineConstants>DEBUG;TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
33+
<AndroidLinkMode>None</AndroidLinkMode>
34+
</PropertyGroup>
35+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
36+
<DebugType>pdbonly</DebugType>
37+
<Optimize>true</Optimize>
38+
<OutputPath>bin\Release\</OutputPath>
39+
<DefineConstants>TRACE</DefineConstants>
40+
<ErrorReport>prompt</ErrorReport>
41+
<WarningLevel>4</WarningLevel>
42+
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
43+
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
44+
</PropertyGroup>
45+
<ItemGroup>
46+
<Reference Include="FormsViewGroup, Version=1.4.0.0, Culture=neutral, processorArchitecture=MSIL">
47+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\FormsViewGroup.dll</HintPath>
48+
<Private>True</Private>
49+
</Reference>
50+
<Reference Include="Mono.Android" />
51+
<Reference Include="mscorlib" />
52+
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
53+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\Newtonsoft.Json.7.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
54+
<Private>True</Private>
55+
</Reference>
56+
<Reference Include="System" />
57+
<Reference Include="System.Core" />
58+
<Reference Include="System.Xml.Linq" />
59+
<Reference Include="System.Xml" />
60+
<Reference Include="WebSocket4Net, Version=0.12.0.0, Culture=neutral, PublicKeyToken=eb4e154b696bf72a, processorArchitecture=MSIL">
61+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\WebSocket4Net.0.13.1\lib\monoandroid23\WebSocket4Net.dll</HintPath>
62+
<Private>True</Private>
63+
</Reference>
64+
<Reference Include="Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
65+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Android.Support.v4.21.0.3.0\lib\MonoAndroid10\Xamarin.Android.Support.v4.dll</HintPath>
66+
<Private>True</Private>
67+
</Reference>
68+
<Reference Include="Xamarin.Forms.Core, Version=1.4.0.0, Culture=neutral, processorArchitecture=MSIL">
69+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\Xamarin.Forms.Core.dll</HintPath>
70+
<Private>True</Private>
71+
</Reference>
72+
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
73+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\Xamarin.Forms.Platform.dll</HintPath>
74+
<Private>True</Private>
75+
</Reference>
76+
<Reference Include="Xamarin.Forms.Platform.Android, Version=1.4.0.0, Culture=neutral, processorArchitecture=MSIL">
77+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll</HintPath>
78+
<Private>True</Private>
79+
</Reference>
80+
<Reference Include="Xamarin.Forms.Xaml, Version=1.4.0.0, Culture=neutral, processorArchitecture=MSIL">
81+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll</HintPath>
82+
<Private>True</Private>
83+
</Reference>
84+
<Reference Include="xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
85+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.abstractions.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.abstractions.dll</HintPath>
86+
<Private>True</Private>
87+
</Reference>
88+
<Reference Include="xunit.assert, Version=2.0.0.2929, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
89+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.assert.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.assert.dll</HintPath>
90+
<Private>True</Private>
91+
</Reference>
92+
<Reference Include="xunit.core, Version=2.0.0.2929, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
93+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.extensibility.core.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.dll</HintPath>
94+
<Private>True</Private>
95+
</Reference>
96+
<Reference Include="xunit.execution.MonoAndroid, Version=2.0.0.2929, Culture=neutral, processorArchitecture=MSIL">
97+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.extensibility.execution.2.0.0\lib\monoandroid\xunit.execution.MonoAndroid.dll</HintPath>
98+
<Private>True</Private>
99+
</Reference>
100+
<Reference Include="xunit.runner.devices, Version=2.0.0.1062, Culture=neutral, processorArchitecture=MSIL">
101+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.runner.devices.1.0.0\lib\MonoAndroid\xunit.runner.devices.dll</HintPath>
102+
<Private>True</Private>
103+
</Reference>
104+
<Reference Include="xunit.runner.utility.MonoAndroid, Version=2.0.0.2929, Culture=neutral, processorArchitecture=MSIL">
105+
<HintPath>..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.runner.utility.2.0.0\lib\monoandroid\xunit.runner.utility.MonoAndroid.dll</HintPath>
106+
<Private>True</Private>
107+
</Reference>
108+
</ItemGroup>
109+
<ItemGroup>
110+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\clienttests\BinaryPollingTest.cs">
111+
<Link>ClientTests\BinaryPollingTest.cs</Link>
112+
</Compile>
113+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\clienttests\BinaryWebSocketTest.cs">
114+
<Link>ClientTests\BinaryWebSocketTest.cs</Link>
115+
</Compile>
116+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\clienttests\Connection.cs">
117+
<Link>ClientTests\Connection.cs</Link>
118+
</Compile>
119+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\clienttests\ConnectionTest.cs">
120+
<Link>ClientTests\ConnectionTest.cs</Link>
121+
</Compile>
122+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\clienttests\HandshakeDataTests.cs">
123+
<Link>ClientTests\HandshakeDataTests.cs</Link>
124+
</Compile>
125+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\clienttests\ServerConnectionTest.cs">
126+
<Link>ClientTests\ServerConnectionTest.cs</Link>
127+
</Compile>
128+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\clienttests\SocketTest.cs">
129+
<Link>ClientTests\SocketTest.cs</Link>
130+
</Compile>
131+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\clienttests\SSLServerConnectionTest.cs">
132+
<Link>ClientTests\SSLServerConnectionTest.cs</Link>
133+
</Compile>
134+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\ClientTests\TransportTest.cs">
135+
<Link>ClientTests\TransportTest.cs</Link>
136+
</Compile>
137+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\clienttests\UsageTest.cs">
138+
<Link>ClientTests\UsageTest.cs</Link>
139+
</Compile>
140+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\componentemittertests\EmitterTests.cs">
141+
<Link>ComponentEmitterTests\EmitterTests.cs</Link>
142+
</Compile>
143+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\modulestests\ParseQSTests.cs">
144+
<Link>ModulesTests\ParseQSTests.cs</Link>
145+
</Compile>
146+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\modulestests\UTF8Tests.cs">
147+
<Link>ModulesTests\UTF8Tests.cs</Link>
148+
</Compile>
149+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\parsertests\DecodeTests.cs">
150+
<Link>ParserTests\DecodeTests.cs</Link>
151+
</Compile>
152+
<Compile Include="..\EngineIoClientDotNet.Tests.mono\parsertests\TestsParser.cs">
153+
<Link>ParserTests\TestsParser.cs</Link>
154+
</Compile>
155+
<Compile Include="MainActivity.cs" />
156+
<Compile Include="Resources\Resource.Designer.cs" />
157+
<Compile Include="Properties\AssemblyInfo.cs" />
158+
</ItemGroup>
159+
<ItemGroup>
160+
<None Include="packages.config" />
161+
</ItemGroup>
162+
<ItemGroup>
163+
<AndroidResource Include="Resources\drawable\Icon.png" />
164+
</ItemGroup>
165+
<ItemGroup>
166+
<None Include="Properties\AndroidManifest.xml" />
167+
</ItemGroup>
168+
<ItemGroup>
169+
<ProjectReference Include="..\EngineIoClientDotNet.Xamarin-Android\EngineIoClientDotNet.Xamarin-Android.csproj">
170+
<Project>{491f98d3-b919-452a-a604-f087061403b8}</Project>
171+
<Name>EngineIoClientDotNet.Xamarin-Android</Name>
172+
</ProjectReference>
173+
</ItemGroup>
174+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
175+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
176+
<PropertyGroup>
177+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
178+
</PropertyGroup>
179+
<Error Condition="!Exists('..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.core.2.0.0\build\monoandroid\xunit.core.props')" Text="$([System.String]::Format('$(ErrorText)', '..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.core.2.0.0\build\monoandroid\xunit.core.props'))" />
180+
<Error Condition="!Exists('..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.runner.devices.1.0.0\build\MonoAndroid\xunit.runner.devices.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.runner.devices.1.0.0\build\MonoAndroid\xunit.runner.devices.targets'))" />
181+
<Error Condition="!Exists('..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Forms.1.4.4.6392\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Forms.1.4.4.6392\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets'))" />
182+
</Target>
183+
<Import Project="..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.runner.devices.1.0.0\build\MonoAndroid\xunit.runner.devices.targets" Condition="Exists('..\EngineIoClientDotNet.Xamarin-Android\packages\xunit.runner.devices.1.0.0\build\MonoAndroid\xunit.runner.devices.targets')" />
184+
<Import Project="..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Forms.1.4.4.6392\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets" Condition="Exists('..\EngineIoClientDotNet.Xamarin-Android\packages\Xamarin.Forms.1.4.4.6392\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets')" />
185+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
186+
Other similar extension points exist, see Microsoft.Common.targets.
187+
<Target Name="BeforeBuild">
188+
</Target>
189+
<Target Name="AfterBuild">
190+
</Target>
191+
-->
192+
</Project>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System.Reflection;
2+
using Android.App;
3+
using Android.OS;
4+
using Xunit.Runners.UI;
5+
using Xunit.Sdk;
6+
7+
namespace EngineIoClientDotNet.Tests.Xamarin_Android
8+
{
9+
[Activity(Label = "EngineIoClientDotNet.Tests.Xamarin_Android", MainLauncher = true, Icon = "@drawable/icon")]
10+
public class MainActivity : RunnerActivity
11+
{
12+
protected override void OnCreate(Bundle bundle)
13+
{
14+
// tests can be inside the main assembly
15+
AddTestAssembly(Assembly.GetExecutingAssembly());
16+
17+
AddExecutionAssembly(typeof(ExtensibilityPointFactory).Assembly);
18+
// or in any reference assemblies
19+
20+
//AddTestAssembly(typeof(PortableTests).Assembly);
21+
// or in any assembly that you load (since JIT is available)
22+
23+
// you cannot add more assemblies once calling base
24+
base.OnCreate(bundle);
25+
}
26+
}
27+
}
28+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="EngineIoClientDotNet.Tests.Xamarin_Android.EngineIoClientDotNet.Tests.Xamarin_Android" android:versionCode="1" android:versionName="1.0">
3+
<uses-sdk />
4+
<application android:label="EngineIoClientDotNet.Tests.Xamarin_Android" android:icon="@drawable/Icon"></application>
5+
</manifest>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
using Android.App;
5+
6+
// General Information about an assembly is controlled through the following
7+
// set of attributes. Change these attribute values to modify the information
8+
// associated with an assembly.
9+
[assembly: AssemblyTitle("EngineIoClientDotNet.Tests.Xamarin_Android")]
10+
[assembly: AssemblyDescription("")]
11+
[assembly: AssemblyConfiguration("")]
12+
[assembly: AssemblyCompany("")]
13+
[assembly: AssemblyProduct("EngineIoClientDotNet.Tests.Xamarin-Android")]
14+
[assembly: AssemblyCopyright("Copyright © 2015")]
15+
[assembly: AssemblyTrademark("")]
16+
[assembly: AssemblyCulture("")]
17+
[assembly: ComVisible(false)]
18+
19+
// Version information for an assembly consists of the following four values:
20+
//
21+
// Major Version
22+
// Minor Version
23+
// Build Number
24+
// Revision
25+
//
26+
// You can specify all the values or you can default the Build and Revision Numbers
27+
// by using the '*' as shown below:
28+
// [assembly: AssemblyVersion("1.0.*")]
29+
[assembly: AssemblyVersion("1.0.0.0")]
30+
[assembly: AssemblyFileVersion("1.0.0.0")]

Src/EngineIoClientDotNet.Tests.Xamarin-Android/Resources/Resource.Designer.cs

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
4.05 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="monoandroid5" userInstalled="true" />
4+
<package id="WebSocket4Net" version="0.13.1" targetFramework="monoandroid5" userInstalled="true" />
5+
<package id="Xamarin.Android.Support.v4" version="21.0.3.0" targetFramework="monoandroid5" userInstalled="true" />
6+
<package id="Xamarin.Forms" version="1.4.4.6392" targetFramework="monoandroid5" userInstalled="true" />
7+
<package id="xunit" version="2.0.0" targetFramework="monoandroid5" userInstalled="true" />
8+
<package id="xunit.abstractions" version="2.0.0" targetFramework="monoandroid5" userInstalled="true" />
9+
<package id="xunit.assert" version="2.0.0" targetFramework="monoandroid5" userInstalled="true" />
10+
<package id="xunit.core" version="2.0.0" targetFramework="monoandroid5" userInstalled="true" />
11+
<package id="xunit.extensibility.core" version="2.0.0" targetFramework="monoandroid5" userInstalled="true" />
12+
<package id="xunit.extensibility.execution" version="2.0.0" targetFramework="monoandroid5" userInstalled="true" />
13+
<package id="xunit.runner.devices" version="1.0.0" targetFramework="monoandroid5" userInstalled="true" />
14+
<package id="xunit.runner.utility" version="2.0.0" targetFramework="monoandroid5" userInstalled="true" />
15+
</packages>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System.Reflection;
2+
using MonoTouch.Foundation;
3+
using MonoTouch.UIKit;
4+
5+
using Xunit.Runner;
6+
using Xunit.Sdk;
7+
8+
namespace Quobject.EngineIoClientDotNet_Tests
9+
{
10+
// The UIApplicationDelegate for the application. This class is responsible for launching the
11+
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
12+
[Register("AppDelegate")]
13+
public class AppDelegate : RunnerAppDelegate
14+
{
15+
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
16+
{
17+
// We need this to ensure the execution assembly is part of the app bundle
18+
AddExecutionAssembly(typeof(ExtensibilityPointFactory).Assembly);
19+
20+
// tests can be inside the main assembly
21+
AddTestAssembly(Assembly.GetExecutingAssembly());
22+
23+
return base.FinishedLaunching(application, launchOptions);
24+
}
25+
}
26+
}
27+
28+

0 commit comments

Comments
 (0)