Skip to content

Commit

Permalink
Merge pull request #2 from mediaburst/pcl
Browse files Browse the repository at this point in the history
Portable class library
  • Loading branch information
Gareth Terrace committed Jul 30, 2015
2 parents 36cbfaa + e97777d commit 3250c74
Show file tree
Hide file tree
Showing 30 changed files with 837 additions and 130 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,5 @@ packages/
!Clockwork/bin
!Clockwork/bin/Release
!Clockwork/bin/Release/Clockwork.dll

*.nupgk
117 changes: 117 additions & 0 deletions Clockwork NET45/Clockwork NET45.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<?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>{61A58B16-7DFD-4C88-96B7-BCC14DF75D58}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Clockwork</RootNamespace>
<AssemblyName>Clockwork</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Runtime.Serialization" />
<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="..\Clockwork\AccountType.cs">
<Link>AccountType.cs</Link>
</Compile>
<Compile Include="..\Clockwork\API.cs">
<Link>API.cs</Link>
</Compile>
<Compile Include="..\Clockwork\APIException.cs">
<Link>APIException.cs</Link>
</Compile>
<Compile Include="..\Clockwork\Balance.cs">
<Link>Balance.cs</Link>
</Compile>
<Compile Include="..\Clockwork\InvalidCharacterAction.cs">
<Link>InvalidCharacterAction.cs</Link>
</Compile>
<Compile Include="..\Clockwork\SMS.cs">
<Link>SMS.cs</Link>
</Compile>
<Compile Include="..\Clockwork\SMSResult.cs">
<Link>SMSResult.cs</Link>
</Compile>
<Compile Include="..\Clockwork\UTF8StringWriter.cs">
<Link>UTF8StringWriter.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Balance.cs">
<Link>XML\Balance.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Balance_Resp.cs">
<Link>XML\Balance_Resp.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Credit.cs">
<Link>XML\Credit.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Credit_Resp.cs">
<Link>XML\Credit_Resp.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Currency.cs">
<Link>XML\Currency.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Message.cs">
<Link>XML\Message.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Message_Resp.cs">
<Link>XML\Message_Resp.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\SMS.cs">
<Link>XML\SMS.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\SMS_Resp.cs">
<Link>XML\SMS_Resp.cs</Link>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</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>
33 changes: 33 additions & 0 deletions Clockwork NET45/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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("Clockwork")]
[assembly: AssemblyDescription("SMS API Wrapper")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Mediaburst Ltd")]
[assembly: AssemblyProduct("Clockwork")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[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("59403dae-c731-4118-bc7e-5e43f28e560f")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.2.0.*")]
[assembly: AssemblyFileVersion("1.1.0.0")]
5 changes: 5 additions & 0 deletions Clockwork NET45/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" />
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net45" />
</packages>
121 changes: 121 additions & 0 deletions Clockwork PCL/Clockwork PCL.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?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>
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4A2E2A59-E519-4924-9F90-E013B819206D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Clockwork</RootNamespace>
<AssemblyName>Clockwork</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkProfile>Profile259</TargetFrameworkProfile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;PCL</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;PCL</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .NET Framework is automatically included -->
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\Clockwork\AccountType.cs">
<Link>AccountType.cs</Link>
</Compile>
<Compile Include="..\Clockwork\API.cs">
<Link>API.cs</Link>
</Compile>
<Compile Include="..\Clockwork\APIException.cs">
<Link>APIException.cs</Link>
</Compile>
<Compile Include="..\Clockwork\Balance.cs">
<Link>Balance.cs</Link>
</Compile>
<Compile Include="..\Clockwork\InvalidCharacterAction.cs">
<Link>InvalidCharacterAction.cs</Link>
</Compile>
<Compile Include="..\Clockwork\SMS.cs">
<Link>SMS.cs</Link>
</Compile>
<Compile Include="..\Clockwork\SMSResult.cs">
<Link>SMSResult.cs</Link>
</Compile>
<Compile Include="..\Clockwork\UTF8StringWriter.cs">
<Link>UTF8StringWriter.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Balance.cs">
<Link>XML\Balance.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Balance_Resp.cs">
<Link>XML\Balance_Resp.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Credit.cs">
<Link>XML\Credit.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Credit_Resp.cs">
<Link>XML\Credit_Resp.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Currency.cs">
<Link>XML\Currency.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Message.cs">
<Link>XML\Message.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\Message_Resp.cs">
<Link>XML\Message_Resp.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\SMS.cs">
<Link>XML\SMS.cs</Link>
</Compile>
<Compile Include="..\Clockwork\XML\SMS_Resp.cs">
<Link>XML\SMS_Resp.cs</Link>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Net.Http.Extensions, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Extensions.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Primitives.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
<Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
<Error Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
</Target>
<!-- 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>
30 changes: 30 additions & 0 deletions Clockwork PCL/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System.Resources;
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("Clockwork")]
[assembly: AssemblyDescription("SMS API Wrapper")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Mediaburst Ltd")]
[assembly: AssemblyProduct("Clockwork")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]

// 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.2.0.*")]
[assembly: AssemblyFileVersion("1.1.0.0")]
6 changes: 6 additions & 0 deletions Clockwork PCL/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="portable45-net45+win8+wp8+wpa81" />
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="portable45-net45+win8+wp8+wpa81" />
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="portable45-net45+win8+wp8+wpa81" />
</packages>
Loading

0 comments on commit 3250c74

Please sign in to comment.