From 0a7181914dde8d17f0d7eeb55e47b37f2214c746 Mon Sep 17 00:00:00 2001 From: David Humphreys Date: Thu, 15 Oct 2026 09:50:46 +0100 Subject: [PATCH] Version the next release 4.1 The release that adds bonding (#34, #35) and the GATT status on failures (#36) adds public API, so it is a minor version. The release workflow now stamps 4.1.yyMM., VersionPrefix moves to 4.1.0 for local builds, the release notes name 4.1, and the README's install example and CI description follow. AssemblyVersion stays 4.0.0.0: it is pinned for the strong-named net481 binding, for the reason recorded in the project file. --- .github/workflows/release.yml | 4 ++-- DSoft.System.BluetoothLe/DSoft.System.BluetoothLe.csproj | 4 ++-- README.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5dd5fe9..0a7284e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,5 @@ # Release: on every push to main, builds Release and pushes the DSoft.*.nupkg -# package (with its .snupkg symbols) to nuget.org as 4.0.yyMM., then +# package (with its .snupkg symbols) to nuget.org as 4.1.yyMM., then # tags the commit and creates a GitHub release with the package attached. # RELEASE_SUFFIX is empty for a stable version; set it to a suffix such as # '-prerelease' to publish a prerelease. @@ -45,7 +45,7 @@ jobs: # The run number is offset by 100 so the first GitHub release sorts above 4.0.2610.91, the # last version Azure Pipelines published. The run number never resets, so the offset is # permanent and harmless. - version="4.0.$(date -u +%y%m).$(( ${{ github.run_number }} + 100 ))" + version="4.1.$(date -u +%y%m).$(( ${{ github.run_number }} + 100 ))" echo "version=$version" >> "$GITHUB_OUTPUT" echo "package=$version$RELEASE_SUFFIX" >> "$GITHUB_OUTPUT" echo "Version: $version$RELEASE_SUFFIX" diff --git a/DSoft.System.BluetoothLe/DSoft.System.BluetoothLe.csproj b/DSoft.System.BluetoothLe/DSoft.System.BluetoothLe.csproj index 2f51be4..45bb441 100644 --- a/DSoft.System.BluetoothLe/DSoft.System.BluetoothLe.csproj +++ b/DSoft.System.BluetoothLe/DSoft.System.BluetoothLe.csproj @@ -33,7 +33,7 @@ - 4.0.1 + 4.1.0 4.0.0.0 DSoft.System.BluetoothLe DSoft.System.BluetoothLe @@ -51,7 +51,7 @@ BluetoothLe dotnet android ios macos maccatalyst windows wpf netstandard tvos Copyright © 2026 DSoft - Unreleased - Device.BondState reports a device's bond (pairing) state, and on Android + 4.1 - adds bonding and the GATT status on failures. Device.BondState reports a device's bond (pairing) state, and on Android Adapter.DeviceBondStateChanged is raised when it changes. DeviceBondState gains Unknown, declared last so existing values are unchanged, which Apple platforms always report because CoreBluetooth does not expose bonding. BondStatusBroadcastReceiver is now registered by the Android adapter. diff --git a/README.md b/README.md index 939eef1..685cbed 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ The library started as a fork/repackage of [Plugin.BLE](https://github.com/dotne Reference the package from your app project: ```xml - + ``` When working from source, reference the project: @@ -267,7 +267,7 @@ remaining seven target frameworks build and the two Windows ones are skipped. GitHub Actions (`.github/workflows/`): - `ci.yml`: runs on pull requests to `main` and `development`. Builds Release for every target framework. Publishes nothing. -- `release.yml`: runs on every push to `main` (changes only to Markdown or workflow files are skipped; run it by hand to test a workflow change). Builds Release as `4.0.yyMM.` plus `RELEASE_SUFFIX` (empty for a stable version; set it to `-prerelease` in the workflow to publish a prerelease), uploads the package as the `drop` artifact and pushes it to nuget.org with Trusted Publishing (OIDC, `NUGET_USER` secret, `nuget` environment), then tags the commit `v` and creates a GitHub release with the package attached. `AssemblyVersion` is not stamped by CI: it stays pinned in the project file (see "Strong naming"). +- `release.yml`: runs on every push to `main` (changes only to Markdown or workflow files are skipped; run it by hand to test a workflow change). Builds Release as `4.1.yyMM.` plus `RELEASE_SUFFIX` (empty for a stable version; set it to `-prerelease` in the workflow to publish a prerelease), uploads the package as the `drop` artifact and pushes it to nuget.org with Trusted Publishing (OIDC, `NUGET_USER` secret, `nuget` environment), then tags the commit `v` and creates a GitHub release with the package attached. `AssemblyVersion` is not stamped by CI: it stays pinned in the project file (see "Strong naming"). ### Strong naming