From b6f60463b58554b3986c43321f617c8736754a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Tue, 22 Jan 2019 09:34:17 +0000 Subject: [PATCH 1/8] Update README.md - Update Azure Pipelines badges. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5568caf..e6fe4d8 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ | Component | Build Status | NuGet Package | |:-|---|---| -| Windows.Devices.Gpio | [![Build status](https://ci.appveyor.com/api/projects/status/rx2hrsucsn1p0ohd/branch/master?svg=true)](https://ci.appveyor.com/project/nfbot/lib-windows-devices-gpio/branch/master) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.Windows.Devices.Gpio.svg)](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Gpio/) | -| Windows.Devices.Gpio (preview) | [![Build Status](https://dev.azure.com/nanoframework/Windows.Devices.Gpio/_apis/build/status/nanoframework.lib-Windows.Devices.Gpio)](https://dev.azure.com/nanoframework/Windows.Devices.Gpio/_build/latest?definitionId=16) | [![MyGet Pre Release](https://img.shields.io/myget/nanoframework-dev/vpre/nanoFramework.Windows.Devices.Gpio.svg)](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.Windows.Devices.Gpio) | +| Windows.Devices.Gpio | [![Build Status](https://dev.azure.com/nanoframework/Windows.Devices.Gpio/_apis/build/status/nanoframework.lib-Windows.Devices.Gpio?branchName=develop)](https://dev.azure.com/nanoframework/Windows.Devices.Gpio/_build/latest?definitionId=16?branchName=master) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.Windows.Devices.Gpio.svg)](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Gpio/) | +| Windows.Devices.Gpio (preview) | [![Build Status](https://dev.azure.com/nanoframework/Windows.Devices.Gpio/_apis/build/status/nanoframework.lib-Windows.Devices.Gpio?branchName=develop)](https://dev.azure.com/nanoframework/Windows.Devices.Gpio/_build/latest?definitionId=16?branchName=develop) | [![MyGet Pre Release](https://img.shields.io/myget/nanoframework-dev/vpre/nanoFramework.Windows.Devices.Gpio.svg)](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.Windows.Devices.Gpio) | ## Feedback and documentation From 16295fd1846a33796365cbb30e5043a8557733c9 Mon Sep 17 00:00:00 2001 From: nfbot Date: Tue, 22 Jan 2019 09:36:45 +0000 Subject: [PATCH 2/8] Update CHANGELOG for v1.0.3 ***NO_CI*** --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6188548..732b388 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,11 @@ # Change Log -## [**Changes available only in 'Preview' NuGet packages:**](https://github.com/nanoframework/lib-Windows.Devices.Gpio/tree/HEAD) - -[Full Changelog](https://github.com/nanoframework/lib-Windows.Devices.Gpio/compare/v1.0.2...HEAD) +## [v1.0.4](https://github.com/nanoframework/lib-Windows.Devices.Gpio/tree/v1.0.4) (2019-01-22) +[Full Changelog](https://github.com/nanoframework/lib-Windows.Devices.Gpio/compare/v1.0.2...v1.0.4) **Documentation and other chores:** +- Release v1.0.4 [\#70](https://github.com/nanoframework/lib-Windows.Devices.Gpio/pull/70) - Update 2 NuGet dependencies [\#69](https://github.com/nanoframework/lib-Windows.Devices.Gpio/pull/69) - Merge back from Release v1.0.2 [\#68](https://github.com/nanoframework/lib-Windows.Devices.Gpio/pull/68) From 11c7541851a11751b13efa65ab9763ee762596f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Mon, 4 Feb 2019 11:09:00 +0000 Subject: [PATCH 3/8] Merge back from Release v1.0.4 (#71) --- source/version.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/version.json b/source/version.json index 0329f76..0219745 100644 --- a/source/version.json +++ b/source/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "1.0.3-preview.{height}", + "version": "1.0.4", "assemblyVersion": { "precision": "revision" }, @@ -16,4 +16,4 @@ "setVersionVariables": true, "setAllVariables": true } -} \ No newline at end of file +} From 5148c87b06273f6ce553ecbd95030da1d152e096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Mon, 4 Feb 2019 11:09:38 +0000 Subject: [PATCH 4/8] Update version.json Bump version to 1.0.5-preview --- source/version.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/version.json b/source/version.json index 0219745..4c1bb3f 100644 --- a/source/version.json +++ b/source/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "1.0.4", + "version": "1.0.5-preview.{height}", "assemblyVersion": { "precision": "revision" }, From a12052a67794a3d46e57f2400185555685c6c276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Mon, 4 Feb 2019 12:14:19 +0000 Subject: [PATCH 5/8] Static field objects are now created on constructor. (#72) --- source/Windows.Devices.Gpio/GpioController.cs | 7 ++++++- source/Windows.Devices.Gpio/GpioPin.cs | 7 +++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/source/Windows.Devices.Gpio/GpioController.cs b/source/Windows.Devices.Gpio/GpioController.cs index 9757426..df8b3dc 100644 --- a/source/Windows.Devices.Gpio/GpioController.cs +++ b/source/Windows.Devices.Gpio/GpioController.cs @@ -15,7 +15,7 @@ public sealed class Gpio​Controller : IGpioController { // this is used as the lock object // a lock is required because multiple threads can access the I2C controller - readonly static object _syncLock = new object(); + static object _syncLock; // we can have only one instance of the GpioController // need to do a lazy initialization of this field to make sure it exists when called elsewhere. @@ -56,6 +56,11 @@ public extern int PinCount { if (s_instance == null) { + if (_syncLock == null) + { + _syncLock = new object(); + } + lock (_syncLock) { if (s_instance == null) diff --git a/source/Windows.Devices.Gpio/GpioPin.cs b/source/Windows.Devices.Gpio/GpioPin.cs index eaa06fe..bc558e0 100644 --- a/source/Windows.Devices.Gpio/GpioPin.cs +++ b/source/Windows.Devices.Gpio/GpioPin.cs @@ -20,11 +20,11 @@ public delegate void GpioPinValueChangedEventHandler( /// public sealed class Gpio​Pin : IGpioPin, IDisposable { - private static GpioPinEventListener s_eventListener = new GpioPinEventListener(); + private static GpioPinEventListener s_eventListener; // this is used as the lock object // a lock is required because multiple threads can access the GpioPin - private object _syncLock = new object(); + private object _syncLock; private readonly int _pinNumber; private GpioPinDriveMode _driveMode = GpioPinDriveMode.Input; @@ -40,6 +40,9 @@ public sealed class Gpio​Pin : IGpioPin, IDisposable internal Gpio​Pin(int pinNumber) { _pinNumber = pinNumber; + + s_eventListener = new GpioPinEventListener(); + _syncLock = new object(); } internal bool Init() From 7b4df22bf5519e790961d7435559ce95da1f1afe Mon Sep 17 00:00:00 2001 From: nfbot Date: Mon, 4 Feb 2019 12:17:58 +0000 Subject: [PATCH 6/8] Update CHANGELOG for v1.0.5 ***NO_CI*** --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 732b388..8e1d2b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## [**Changes available only in 'Preview' NuGet packages:**](https://github.com/nanoframework/lib-Windows.Devices.Gpio/tree/HEAD) + +[Full Changelog](https://github.com/nanoframework/lib-Windows.Devices.Gpio/compare/v1.0.4...HEAD) + +**Fixed bugs:** + +- Static field objects are now created on constructor. [\#72](https://github.com/nanoframework/lib-Windows.Devices.Gpio/pull/72) + +**Documentation and other chores:** + +- merge back from Release v1.0.4 [\#71](https://github.com/nanoframework/lib-Windows.Devices.Gpio/pull/71) + ## [v1.0.4](https://github.com/nanoframework/lib-Windows.Devices.Gpio/tree/v1.0.4) (2019-01-22) [Full Changelog](https://github.com/nanoframework/lib-Windows.Devices.Gpio/compare/v1.0.2...v1.0.4) From 3091bed76f2bebce479108d8228e049bf4dbcdf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Mon, 4 Feb 2019 13:42:05 +0000 Subject: [PATCH 7/8] Update NBGV package and config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Simões --- source/Windows.Devices.Gpio/Windows.Devices.Gpio.nfproj | 8 ++------ source/Windows.Devices.Gpio/packages.config | 2 +- source/version.json | 4 ++++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/Windows.Devices.Gpio/Windows.Devices.Gpio.nfproj b/source/Windows.Devices.Gpio/Windows.Devices.Gpio.nfproj index d9524c8..8230667 100644 --- a/source/Windows.Devices.Gpio/Windows.Devices.Gpio.nfproj +++ b/source/Windows.Devices.Gpio/Windows.Devices.Gpio.nfproj @@ -92,11 +92,7 @@ - + - - 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}. - - - + \ No newline at end of file diff --git a/source/Windows.Devices.Gpio/packages.config b/source/Windows.Devices.Gpio/packages.config index 177886d..2251433 100644 --- a/source/Windows.Devices.Gpio/packages.config +++ b/source/Windows.Devices.Gpio/packages.config @@ -2,5 +2,5 @@ - + \ No newline at end of file diff --git a/source/version.json b/source/version.json index 4c1bb3f..5a638ed 100644 --- a/source/version.json +++ b/source/version.json @@ -15,5 +15,9 @@ "cloudBuild": { "setVersionVariables": true, "setAllVariables": true + }, + "release": { + "branchName": "release-v{version}", + "firstUnstableTag": "preview" } } From 67eaafcc565e26246d4e3bc28f2f48acabc02d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Mon, 4 Feb 2019 13:44:27 +0000 Subject: [PATCH 8/8] Set version to '1.0.5' --- source/version.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/source/version.json b/source/version.json index 5a638ed..21df6c9 100644 --- a/source/version.json +++ b/source/version.json @@ -1,23 +1,20 @@ { "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "1.0.5-preview.{height}", + "version": "1.0.5", "assemblyVersion": { "precision": "revision" }, "semVer1NumericIdentifierPadding": 3, - "nugetPackageVersion": { - "semVer": 1 - }, "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { - "setVersionVariables": true, - "setAllVariables": true + "setAllVariables": true, + "buildNumber": null }, "release": { "branchName": "release-v{version}", "firstUnstableTag": "preview" } -} +} \ No newline at end of file