mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-04-21 06:13:58 +00:00
Fix build warnings and update doc builds
This commit is contained in:
parent
1164e20270
commit
5cecd3c129
8 changed files with 91 additions and 34 deletions
|
|
@ -51,6 +51,9 @@ namespace NmeaParser
|
|||
/// </summary>
|
||||
/// <returns>A set of bluetooth devices available that supports serial connections</returns>
|
||||
[Obsolete("Use GetBluetoothSerialDevices(Context)")]
|
||||
#if NETCOREAPP
|
||||
[System.Runtime.Versioning.ObsoletedOSPlatform("android31.0")]
|
||||
#endif
|
||||
public static IEnumerable<Android.Bluetooth.BluetoothDevice> GetBluetoothSerialDevices()
|
||||
{
|
||||
var adapter = Android.Bluetooth.BluetoothAdapter.DefaultAdapter;
|
||||
|
|
@ -110,7 +113,9 @@ namespace NmeaParser
|
|||
else
|
||||
{
|
||||
#pragma warning disable CS0618 // Type or member is obsolete. Only used if deprecated constructor is used
|
||||
#pragma warning disable CA1422 // Validate platform compatibility
|
||||
adapter = Android.Bluetooth.BluetoothAdapter.DefaultAdapter;
|
||||
#pragma warning restore CA1422 // Validate platform compatibility
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
}
|
||||
if (adapter?.IsEnabled != true)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<Sdk Name="Microsoft.DotNet.PackageValidation" Version="1.0.0-preview.7.21379.12" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;netstandard1.4;netcoreapp2.1;net452;monoandroid50;monoandroid70;xamarinios10;uap10.0.18362;net6.0;net7.0-ios;net7.0-android;net6.0-windows10.0.19041.0</TargetFrameworks>
|
||||
<TargetFrameworks>netstandard2.0;netstandard1.4;net452;monoandroid50;monoandroid70;xamarinios10;uap10.0.18362;net6.0;net7.0-ios;net7.0-android;net6.0-windows10.0.19041.0</TargetFrameworks>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<Configurations>Debug;Release</Configurations>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue