Skip to content

Commit

Permalink
updated deps; new build system; release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
genemars committed Sep 23, 2018
1 parent edd4e71 commit 313517a
Show file tree
Hide file tree
Showing 20 changed files with 552 additions and 730 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
Thumbs.db
*.suo
*.userprefs
packages/NLog*
packages/SerialPortLib*
packages
.idea

51 changes: 51 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Contributing

## How to contribute to this repository

#### **Did you find a bug?**

* **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/genielabs/w800rf32-lib-dotnet/issues).

* If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/genielabs/w800rf32-lib-dotnet/issues/new).
Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.

#### **Did you write a patch that fixes a bug?**

* Open a new GitHub pull request with the patch.

* Ensure the PR description clearly describes the problem and solution.
Include the relevant issue number if applicable.

#### **Did you fix whitespace, format code, or make a purely cosmetic patch?**

Changes that are cosmetic in nature and do not add anything substantial to the stability, functionality,
or testability of this project, will generally not be accepted unless discussed via the [issue tracker](https://github.com/genielabs/w800rf32-lib-dotnet/issues).

#### **Do you intend to add a new feature or change an existing one?**

File a new *[enhancement issue](https://github.com/genielabs/w800rf32-lib-dotnet/issues/new?labels=enhancement)*.

#### **Do you have questions about the source code?**

File a new *[question issue](https://github.com/genielabs/w800rf32-lib-dotnet/issues/new?labels=question)*.

#### **Coding styles and conventions**

This project follows *Microsoft .Net* [coding conventions](https://docs.microsoft.com/dotnet/csharp/programming-guide/inside-a-program/coding-conventions) and [naming guidelines](https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/capitalization-conventions).

##### Releasing a new version

To release a new version push a new tag using the format:

`<major>.<minor>.<build>`

examples: `1.0.19`, `1.0.20-pre1`

When a new tag is submitted the CI system will build the project, run tests and package assets (.dll and .nupkg distribution files). The NuGet package will be automatically published and assets will be also uploaded to the new release tag on GitHub repository.

#### Join W800Rf32Lib team!

W800Rf32Lib is a volunteer effort. We encourage you to pitch in and join the team!

Thanks! :heart:

875 changes: 201 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Build status](https://ci.appveyor.com/api/projects/status/yly4xa7o5hu7y6kb?svg=true)](https://ci.appveyor.com/project/genemars/w800rf32-lib-dotnet)
[![NuGet](https://img.shields.io/nuget/v/W800Rf32Lib.svg)](https://www.nuget.org/packages/W800Rf32Lib/)

# W800RF32 RF Receiver library for X10 Home Automation (.NET / Mono)

## Features
Expand Down Expand Up @@ -55,4 +58,4 @@ x10rf.Connect();

## License

W800Rf32Lib is open source software, licensed under the terms of GNU GPLV3 license. See the [LICENSE](LICENSE) file for details.
W800Rf32Lib is open source software, licensed under the terms of Apache license v2.0. See the [LICENSE](LICENSE) file for details.
20 changes: 19 additions & 1 deletion Test.X10Rf/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
using System;
/*
This file is part of W800Rf32Lib (https://github.com/genielabs/w800rf32-lib-dotnet)
Copyright (2012-2018) G-Labs (https://github.com/genielabs)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

using System;
using System.Threading;

using W800Rf32Lib;
Expand Down
16 changes: 13 additions & 3 deletions Test.X10Rf/Test.X10Rf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,20 @@
<Externalconsole>true</Externalconsole>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="NLog">
<HintPath>..\packages\NLog.4.1.0\lib\net45\NLog.dll</HintPath>
<Reference Include="Microsoft.CSharp" />
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c">
<HintPath>..\packages\NLog.4.5.10\lib\net45\NLog.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Transactions" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
Expand Down
4 changes: 2 additions & 2 deletions Test.X10Rf/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NLog" version="4.1.0" targetFramework="net45" />
<package id="NLog" version="4.5.10" targetFramework="net45" />
</packages>
35 changes: 35 additions & 0 deletions W800Rf32Lib.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Reflection;
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("W800Rf32Lib.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("W800Rf32Lib.Tests")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[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("BD6E9F14-451F-454C-8321-6DAA2413CF4C")]

// 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")]
33 changes: 33 additions & 0 deletions W800Rf32Lib.Tests/Tests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
This file is part of W800Rf32Lib (https://github.com/genielabs/w800rf32-lib-dotnet)
Copyright (2012-2018) G-Labs (https://github.com/genielabs)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

using System;
using NUnit.Framework;

namespace W800Rf32Lib.Tests
{
[TestFixture]
public class Tests
{
[Test]
public void Test1()
{
Assert.True(true);
}
}
}
67 changes: 67 additions & 0 deletions W800Rf32Lib.Tests/W800Rf32Lib.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\NUnit.3.10.1\build\NUnit.props" Condition="Exists('..\packages\NUnit.3.10.1\build\NUnit.props')" />
<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>{BD6E9F14-451F-454C-8321-6DAA2413CF4C}</ProjectGuid>
<ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>W800Rf32Lib.Tests</RootNamespace>
<AssemblyName>W800Rf32Lib.Tests</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</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="nunit.framework, Version=3.10.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb">
<HintPath>..\packages\NUnit.3.10.1\lib\net45\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Tests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>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=322105.The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\NUnit.3.10.1\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit.3.10.1\build\NUnit.props'))" />
</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>
4 changes: 4 additions & 0 deletions W800Rf32Lib.Tests/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="3.10.1" targetFramework="net45" />
</packages>
6 changes: 6 additions & 0 deletions W800Rf32Lib.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "W800Rf32Lib", "W800Rf32Lib\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test.X10Rf", "Test.X10Rf\Test.X10Rf.csproj", "{33B8BCBA-2C68-4C49-A0BC-ECFF36FE3CDF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "W800Rf32Lib.Tests", "W800Rf32Lib.Tests\W800Rf32Lib.Tests.csproj", "{BD6E9F14-451F-454C-8321-6DAA2413CF4C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -19,6 +21,10 @@ Global
{5BE043F1-1527-4D7A-8D80-A451E9143051}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5BE043F1-1527-4D7A-8D80-A451E9143051}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5BE043F1-1527-4D7A-8D80-A451E9143051}.Release|Any CPU.Build.0 = Release|Any CPU
{BD6E9F14-451F-454C-8321-6DAA2413CF4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BD6E9F14-451F-454C-8321-6DAA2413CF4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BD6E9F14-451F-454C-8321-6DAA2413CF4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BD6E9F14-451F-454C-8321-6DAA2413CF4C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0
Expand Down
23 changes: 12 additions & 11 deletions W800Rf32Lib/Enums.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/*
This file is part of W800Rf32Lib source code.
This file is part of W800Rf32Lib (https://github.com/genielabs/w800rf32-lib-dotnet)
W800Rf32Lib is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Copyright (2012-2018) G-Labs (https://github.com/genielabs)
W800Rf32Lib is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
You should have received a copy of the GNU General Public License
along with W800Rf32Lib. If not, see <http://www.gnu.org/licenses/>.
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

/*
Expand Down
23 changes: 12 additions & 11 deletions W800Rf32Lib/Events.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/*
This file is part of W800Rf32Lib source code.
This file is part of W800Rf32Lib (https://github.com/genielabs/w800rf32-lib-dotnet)
W800Rf32Lib is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Copyright (2012-2018) G-Labs (https://github.com/genielabs)
W800Rf32Lib is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
You should have received a copy of the GNU General Public License
along with W800Rf32Lib. If not, see <http://www.gnu.org/licenses/>.
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

/*
Expand Down
23 changes: 12 additions & 11 deletions W800Rf32Lib/RfReceiver.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/*
This file is part of W800Rf32Lib source code.
This file is part of W800Rf32Lib (https://github.com/genielabs/w800rf32-lib-dotnet)
W800Rf32Lib is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Copyright (2012-2018) G-Labs (https://github.com/genielabs)
W800Rf32Lib is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
You should have received a copy of the GNU General Public License
along with W800Rf32Lib. If not, see <http://www.gnu.org/licenses/>.
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

/*
Expand Down
Loading

0 comments on commit 313517a

Please sign in to comment.