Skip to content

Commit

Permalink
nuget: update Nuget packet related stuff as recommended by Microsoft
Browse files Browse the repository at this point in the history
- Added a README (linked the repository's one)
- Replaced the 'PackageIconUrl' entry with 'PackageIcon'. This entry now
  references the icon that was moved from the root of the repository to
  the 'images' folder of the project.
- 'PackageReleaseNotes' is now filled with the content of the already existing
  'release_notes.txt' file.

Signed-off-by: Diego Escalona <[email protected]>
  • Loading branch information
diescalo committed Sep 14, 2023
1 parent c680648 commit d3c6bea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 35 deletions.
44 changes: 9 additions & 35 deletions DigiIoT.Maui/DigiIoT.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,42 +24,11 @@
<PackageProjectUrl>https://www.digi.com/resources/documentation/digidocs/90002569/</PackageProjectUrl>
<RepositoryUrl>https://github.com/digidotcom/digi-iot-maui</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageIconUrl>https://raw.githubusercontent.com/digidotcom/xbee-iot-maui/master/nuget_icon.png</PackageIconUrl>
<PackageIcon>nuget_icon.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Description>C# library for .NET MAUI to interact with Digi International's IoT devices over Bluetooth Low Energy.</Description>
<PackageTags>ble, connectcore, som, embedded, xbee, library, maui, digi, zigbee, bluetooth, rf, cellular</PackageTags>
<PackageReleaseNotes>
<![CDATA[
- Supported hardware:
- Digi ConnectCore devices.
- Digi XBee 3 devices:
- XBee 3 Zigbee
- XBee 3 802.15.4
- XBee 3 DigiMesh
- XBee 3 Cellular
- Support for communicating with the supported hardware over Bluetooth Low Energy:
- Connect
- Disconnect
- Send data
- Receive data (directly or through events)
- Bluetooth Low Energy specific functionality:
- Automatic Bluetooth permissions request handling for Android and iOS
- Custom Bluetooth event delegates to be notified about changes in the interface
- Bluetooth scan functionality to look for BLE devices and get notified when they are discovered
- XBee specific functionality:
- Configure common parameters with specific setters and getters.
- Configure any other parameter with generic methods.
- Execute AT commands.
- Apply configuration changes.
- Write configuration changes.
- Reset the device.
- Support for User Data Relay frames, allowing the communication between different interfaces (Serial and MicroPython).
- IO lines management:
- Configure IO lines.
- Set IO line value.
- Read IO line value.
]]>
</PackageReleaseNotes>

<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/release_notes.txt"))</PackageReleaseNotes>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
Expand All @@ -74,7 +43,12 @@
<PackageReference Include="XBeeLibrary.Core" Version="1.0.3" />
</ItemGroup>

<!-- Android -->
<ItemGroup>
<None Include="images\nuget_icon.png" Pack="true" PackagePath="\"/>
<None Include="..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<!-- Android -->
<ItemGroup Condition="$(TargetFramework.StartsWith('net7.0-android')) != true">
<Compile Remove="**\**\*.Android.cs" />
<None Include="**\**\*.Android.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
Expand Down
Binary file added DigiIoT.Maui/images/nuget_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed nuget_icon.png
Binary file not shown.

0 comments on commit d3c6bea

Please sign in to comment.