Author: jgomes Date: Thu May 22 23:51:20 2014 New Revision: 1596992 URL: http://svn.apache.org/r1596992 Log: Add VisualStudio 2013 solution and Xamarin Android project. Fixes [AMQNET-477]. (See https://issues.apache.org/jira/browse/AMQNET-477)
Added: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/ (with props) activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/AboutResources.txt activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Resource.Designer.cs activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Values/ (with props) activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Values/Strings.xml activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/src/main/csharp/Properties/ (with props) activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt-android.csproj activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt.sln Modified: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/README.txt Modified: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/README.txt URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/README.txt?rev=1596992&r1=1596991&r2=1596992&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/README.txt (original) +++ activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/README.txt Thu May 22 23:51:20 2014 @@ -1,6 +1,6 @@ ======================================================================= Welcome to: - * Apache.NMS.ActiveMQ : Apache NMS for MQTT Client Library + * Apache.NMS.MQTT : Apache NMS for MQTT Client Library ======================================================================= For more information see http://activemq.apache.org/nms @@ -9,7 +9,7 @@ For more information see http://activemq Building With NAnt 0.91 see http://nant.sourceforge.net/ ======================================================================= -NAnt version 0.86 91 newer is required to build Apache.NMS.ActiveMQ. Version 0.90 +NAnt version 0.86 91 newer is required to build Apache.NMS.MQTT. Version 0.90 or newer is highly recommended. To build the code using NAnt, run: @@ -36,7 +36,7 @@ To generate the documentation, run: nant sandcastle-all ======================================================================= -Building With Visual Studio 2008 +Building With Visual Studio 2010 ======================================================================= First build the project with nant, this will download and install Propchange: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/ ------------------------------------------------------------------------------ bugtraq:label = Issue#: Propchange: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/ ------------------------------------------------------------------------------ --- bugtraq:message (added) +++ bugtraq:message Thu May 22 23:51:20 2014 @@ -0,0 +1 @@ +Fixes [AMQNET-%BUGID%]. (See https://issues.apache.org/jira/browse/AMQNET-%BUGID%) Propchange: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/ ------------------------------------------------------------------------------ bugtraq:url = https://issues.apache.org/jira/browse/AMQNET-%BUGID% Added: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/AboutResources.txt URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/AboutResources.txt?rev=1596992&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/AboutResources.txt (added) +++ activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/AboutResources.txt Thu May 22 23:51:20 2014 @@ -0,0 +1,50 @@ +Images, layout descriptions, binary blobs and string dictionaries can be included +in your application as resource files. Various Android APIs are designed to +operate on the resource IDs instead of dealing with images, strings or binary blobs +directly. + +For example, a sample Android app that contains a user interface layout (main.xml), +an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) +would keep its resources in the "Resources" directory of the application: + +Resources/ + drawable-hdpi/ + icon.png + + drawable-ldpi/ + icon.png + + drawable-mdpi/ + icon.png + + layout/ + main.xml + + values/ + strings.xml + +In order to get the build system to recognize Android resources, set the build action to +"AndroidResource". The native Android APIs do not operate directly with filenames, but +instead operate on resource IDs. When you compile an Android application that uses resources, +the build system will package the resources for distribution and generate a class called +"Resource" that contains the tokens for each one of the resources included. For example, +for the above Resources layout, this is what the Resource class would expose: + +public class Resource { + public class drawable { + public const int icon = 0x123; + } + + public class layout { + public const int main = 0x456; + } + + public class strings { + public const int first_string = 0xabc; + public const int second_string = 0xbcd; + } +} + +You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main +to reference the layout/main.xml file, or Resource.strings.first_string to reference the first +string in the dictionary file values/strings.xml. \ No newline at end of file Added: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Resource.Designer.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Resource.Designer.cs?rev=1596992&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Resource.Designer.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Resource.Designer.cs Thu May 22 23:51:20 2014 @@ -0,0 +1,60 @@ +#pragma warning disable 1591 +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:4.0.30319.18444 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +[assembly: global::Android.Runtime.ResourceDesignerAttribute("Apache.NMS.MQTT.Resource", IsApplication=false)] + +namespace Apache.NMS.MQTT +{ + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] + public partial class Resource + { + + static Resource() + { + global::Android.Runtime.ResourceIdManager.UpdateIdValues(); + } + + public partial class Attribute + { + + static Attribute() + { + global::Android.Runtime.ResourceIdManager.UpdateIdValues(); + } + + private Attribute() + { + } + } + + public partial class String + { + + // aapt resource value: 0x7f020001 + public static int ApplicationName = 2130837505; + + // aapt resource value: 0x7f020000 + public static int Hello = 2130837504; + + static String() + { + global::Android.Runtime.ResourceIdManager.UpdateIdValues(); + } + + private String() + { + } + } + } +} +#pragma warning restore 1591 Propchange: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Values/ ------------------------------------------------------------------------------ bugtraq:label = Issue#: Propchange: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Values/ ------------------------------------------------------------------------------ --- bugtraq:message (added) +++ bugtraq:message Thu May 22 23:51:20 2014 @@ -0,0 +1 @@ +Fixes [AMQNET-%BUGID%]. (See https://issues.apache.org/jira/browse/AMQNET-%BUGID%) Propchange: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Values/ ------------------------------------------------------------------------------ bugtraq:url = https://issues.apache.org/jira/browse/AMQNET-%BUGID% Added: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Values/Strings.xml URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Values/Strings.xml?rev=1596992&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Values/Strings.xml (added) +++ activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/Resources/Values/Strings.xml Thu May 22 23:51:20 2014 @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="Hello">Hello World, Click Me!</string> + <string name="ApplicationName">$projectname$</string> +</resources> Propchange: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/src/main/csharp/Properties/ ------------------------------------------------------------------------------ bugtraq:label = Issue#: Propchange: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/src/main/csharp/Properties/ ------------------------------------------------------------------------------ --- bugtraq:message (added) +++ bugtraq:message Thu May 22 23:51:20 2014 @@ -0,0 +1 @@ +Fixes [AMQNET-%BUGID%]. (See https://issues.apache.org/jira/browse/AMQNET-%BUGID%) Propchange: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/src/main/csharp/Properties/ ------------------------------------------------------------------------------ bugtraq:url = https://issues.apache.org/jira/browse/AMQNET-%BUGID% Added: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt-android.csproj URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt-android.csproj?rev=1596992&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt-android.csproj (added) +++ activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt-android.csproj Thu May 22 23:51:20 2014 @@ -0,0 +1,148 @@ +<?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)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.30703</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{8E5D922C-4F8E-4C59-84F0-70B688BC3705}</ProjectGuid> + <ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> + <OutputType>Library</OutputType> + <AppDesignerFolder>src\main\csharp\Properties</AppDesignerFolder> + <RootNamespace>Apache.NMS.MQTT</RootNamespace> + <AssemblyName>Apache.NMS.MQTT</AssemblyName> + <FileAlignment>512</FileAlignment> + <BaseIntermediateOutputPath>obj\android</BaseIntermediateOutputPath> + <AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile> + <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> + <AndroidUseLatestPlatformSdk>true</AndroidUseLatestPlatformSdk> + <TargetFrameworkVersion /> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>build\android\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>build\android\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="Apache.NMS"> + <HintPath>lib\Apache.NMS\android\Apache.NMS.dll</HintPath> + </Reference> + <Reference Include="Mono.Android" /> + <Reference Include="mscorlib" /> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="System.Web.Services" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Resources\Resource.Designer.cs" /> + <Compile Include="src\main\csharp\Commands\CONNACK.cs" /> + <Compile Include="src\main\csharp\Commands\CONNECT.cs" /> + <Compile Include="src\main\csharp\Commands\DISCONNECT.cs" /> + <Compile Include="src\main\csharp\Commands\PINGREQ.cs" /> + <Compile Include="src\main\csharp\Commands\PINGRESP.cs" /> + <Compile Include="src\main\csharp\Commands\PUBACK.cs" /> + <Compile Include="src\main\csharp\Commands\PUBCOMP.cs" /> + <Compile Include="src\main\csharp\Commands\PUBLISH.cs" /> + <Compile Include="src\main\csharp\Commands\PUBREC.cs" /> + <Compile Include="src\main\csharp\Commands\PUBREL.cs" /> + <Compile Include="src\main\csharp\Commands\SUBACK.cs" /> + <Compile Include="src\main\csharp\Commands\SUBSCRIBE.cs" /> + <Compile Include="src\main\csharp\Commands\UNSUBACK.cs" /> + <Compile Include="src\main\csharp\Commands\UNSUBSCRIBE.cs" /> + <Compile Include="src\main\csharp\CommonAssemblyInfo.cs" /> + <Compile Include="src\main\csharp\Connection.cs" /> + <Compile Include="src\main\csharp\ConnectionClosedException.cs" /> + <Compile Include="src\main\csharp\ConnectionFactory.cs" /> + <Compile Include="src\main\csharp\ConnectionFailedException.cs" /> + <Compile Include="src\main\csharp\ConnectionMetaData.cs" /> + <Compile Include="src\main\csharp\IDispatcher.cs" /> + <Compile Include="src\main\csharp\IOException.cs" /> + <Compile Include="src\main\csharp\MessageConsumer.cs" /> + <Compile Include="src\main\csharp\MessageProducer.cs" /> + <Compile Include="src\main\csharp\Messages\BytesMessage.cs" /> + <Compile Include="src\main\csharp\Messages\MessageDispatch.cs" /> + <Compile Include="src\main\csharp\Messages\MQTTMessage.cs" /> + <Compile Include="src\main\csharp\Protocol\Header.cs" /> + <Compile Include="src\main\csharp\Protocol\MQTTCommandFactory.cs" /> + <Compile Include="src\main\csharp\Protocol\MQTTExceptionFactory.cs" /> + <Compile Include="src\main\csharp\Protocol\MQTTWireFormat.cs" /> + <Compile Include="src\main\csharp\RequestTimedOutException.cs" /> + <Compile Include="src\main\csharp\Session.cs" /> + <Compile Include="src\main\csharp\SessionExecutor.cs" /> + <Compile Include="src\main\csharp\Threads\DedicatedTaskRunner.cs" /> + <Compile Include="src\main\csharp\Threads\DefaultThreadPools.cs" /> + <Compile Include="src\main\csharp\Threads\PooledTaskRunner.cs" /> + <Compile Include="src\main\csharp\Threads\Scheduler.cs" /> + <Compile Include="src\main\csharp\Threads\Task.cs" /> + <Compile Include="src\main\csharp\Threads\TaskRunner.cs" /> + <Compile Include="src\main\csharp\Threads\TaskRunnerFactory.cs" /> + <Compile Include="src\main\csharp\Threads\ThreadPoolExecutor.cs" /> + <Compile Include="src\main\csharp\Threads\TimerEx.cs" /> + <Compile Include="src\main\csharp\Threads\TimerTask.cs" /> + <Compile Include="src\main\csharp\Topic.cs" /> + <Compile Include="src\main\csharp\Transport\BaseCommand.cs" /> + <Compile Include="src\main\csharp\Transport\Command.cs" /> + <Compile Include="src\main\csharp\Transport\ErrorResponse.cs" /> + <Compile Include="src\main\csharp\Transport\FutureResponse.cs" /> + <Compile Include="src\main\csharp\Transport\ITransport.cs" /> + <Compile Include="src\main\csharp\Transport\ITransportFactory.cs" /> + <Compile Include="src\main\csharp\Transport\IWireFormat.cs" /> + <Compile Include="src\main\csharp\Transport\LoggingTransport.cs" /> + <Compile Include="src\main\csharp\Transport\MQTTTransportFactoryAttribute.cs" /> + <Compile Include="src\main\csharp\Transport\MutexTransport.cs" /> + <Compile Include="src\main\csharp\Transport\Response.cs" /> + <Compile Include="src\main\csharp\Transport\ResponseCorrelator.cs" /> + <Compile Include="src\main\csharp\Transport\Tcp\SslTransport.cs" /> + <Compile Include="src\main\csharp\Transport\Tcp\SslTransportFactory.cs" /> + <Compile Include="src\main\csharp\Transport\Tcp\TcpTransport.cs" /> + <Compile Include="src\main\csharp\Transport\Tcp\TcpTransportFactory.cs" /> + <Compile Include="src\main\csharp\Transport\TransportFactory.cs" /> + <Compile Include="src\main\csharp\Transport\TransportFilter.cs" /> + <Compile Include="src\main\csharp\Util\FactoryAttribute.cs" /> + <Compile Include="src\main\csharp\Util\FactoryFinder.cs" /> + <Compile Include="src\main\csharp\Util\FifoMessageDispatchChannel.cs" /> + <Compile Include="src\main\csharp\Util\IdGenerator.cs" /> + <Compile Include="src\main\csharp\Util\MessageDispatchChannel.cs" /> + <Compile Include="src\main\csharp\Util\MQTTDestination.cs" /> + <Compile Include="src\main\csharp\Util\MQTTMessageTransformation.cs" /> + </ItemGroup> + <ItemGroup> + <None Include="Resources\AboutResources.txt" /> + </ItemGroup> + <ItemGroup> + <AndroidResource Include="Resources\Values\Strings.xml" /> + </ItemGroup> + <ItemGroup> + <Folder Include="src\main\csharp\Properties\" /> + </ItemGroup> + <ItemGroup> + <Content Include="LICENSE.txt" /> + <Content Include="NOTICE.txt" /> + <Content Include="README.txt" /> + </ItemGroup> + <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> + <PropertyGroup> + <PreBuildEvent>cd $(ProjectDir) +nant -nologo -q generate-assemblyinfo -D:assemblyinfo.filename="src/main/csharp/CommonAssemblyInfo.cs"</PreBuildEvent> + </PropertyGroup> + <!-- 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> \ No newline at end of file Added: activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt.sln URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt.sln?rev=1596992&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt.sln (added) +++ activemq/activemq-dotnet/Apache.NMS.MQTT/trunk/vs2013-mqtt.sln Thu May 22 23:51:20 2014 @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "vs2013-mqtt-android", "vs2013-mqtt-android.csproj", "{8E5D922C-4F8E-4C59-84F0-70B688BC3705}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8E5D922C-4F8E-4C59-84F0-70B688BC3705}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E5D922C-4F8E-4C59-84F0-70B688BC3705}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E5D922C-4F8E-4C59-84F0-70B688BC3705}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E5D922C-4F8E-4C59-84F0-70B688BC3705}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal