Skip to content

Commit

Permalink
Merge branch 'develop' into #9-AndroidRefactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MelbourneDeveloper committed Jan 7, 2019
2 parents 1857ba3 + a35616e commit b5bf788
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/Device.Net.UWP/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
// 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("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyVersion("2.2.1.0")]
[assembly: AssemblyFileVersion("2.2.1.0")]
[assembly: ComVisible(false)]
6 changes: 3 additions & 3 deletions src/Device.Net/Device.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseUrl>https://github.com/MelbourneDeveloper/Device.Net/blob/master/LICENSE</PackageLicenseUrl>
<AssemblyVersion>2.2.0.0</AssemblyVersion>
<FileVersion>2.2.0.0</FileVersion>
<Version>2.2.0</Version>
<AssemblyVersion>2.2.1.0</AssemblyVersion>
<FileVersion>2.2.1.0</FileVersion>
<Version>2.2.1</Version>
<Authors>Christian Findlay</Authors>
<Description>Cross platform C# library for talking to connected devices in a uniform way through dependency injection.</Description>
<Copyright>Copyright (c) 2018 Christian Findlay</Copyright>
Expand Down
4 changes: 4 additions & 0 deletions src/Device.Net/Windows/WindowsDeviceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public static void HandleError(bool isSuccess, string message)
{
if (isSuccess) return;
var errorCode = Marshal.GetLastWin32Error();

//TODO: Loggin
if (errorCode == 0) return;

throw new Exception($"{message}. Error code: {errorCode}");
}
#endregion
Expand Down
4 changes: 2 additions & 2 deletions src/Hid.Net.UWP/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
// 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("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyVersion("2.2.1.0")]
[assembly: AssemblyFileVersion("2.2.1.0")]
[assembly: ComVisible(false)]
4 changes: 2 additions & 2 deletions src/Hid.Net/Hid.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<SignAssembly>false</SignAssembly>
<DelaySign>false</DelaySign>
<AssemblyOriginatorKeyFile>Key.pfx</AssemblyOriginatorKeyFile>
<Version>2.2.0</Version>
<Version>2.2.1</Version>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseUrl>https://github.com/MelbourneDeveloper/Hid.Net/blob/master/LICENSE</PackageLicenseUrl>
Expand All @@ -19,7 +19,7 @@ Cross platform Hid (USB) library.
Enumerate Hid (USB) devices and read and write to/from them.
Supports .NET, Android, and UWP out of the box. Other platforms can be added</Description>
<PackageTags>Hid USB Android UWP Ledger Trezor C#</PackageTags>
<AssemblyVersion>2.2.0.0</AssemblyVersion>
<AssemblyVersion>2.2.1.0</AssemblyVersion>
<FileVersion>2.2.0.0</FileVersion>
<Authors>Christian Findlay</Authors>
<Company>Christian Findlay</Company>
Expand Down
4 changes: 2 additions & 2 deletions src/Usb.Net.Android/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
// 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("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyVersion("2.2.1.0")]
[assembly: AssemblyFileVersion("2.2.1.0")]
4 changes: 2 additions & 2 deletions src/Usb.Net.UWP/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
// 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("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyVersion("2.2.1.0")]
[assembly: AssemblyFileVersion("2.2.1.0")]
[assembly: ComVisible(false)]

0 comments on commit b5bf788

Please sign in to comment.