Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Convert to .NET Standard 2.0 and publish to NuGet. #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions NeutrinoAPI.PCL/Models/GeocodeReverseResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public class GeocodeReverseResponse : BaseModel
private string currencyCode;
private string locationType;
private List<string> locationTags;
private int latitude;
private int longitude;
private double? latitude;
private double? longitude;
private Dictionary<string, string> timezone;

/// <summary>
Expand Down Expand Up @@ -245,7 +245,7 @@ public List<string> LocationTags
/// The location latitude
/// </summary>
[JsonProperty("latitude")]
public int Latitude
public double? Latitude
{
get
{
Expand All @@ -262,7 +262,7 @@ public int Latitude
/// The location longitude
/// </summary>
[JsonProperty("longitude")]
public int Longitude
public double? Longitude
{
get
{
Expand Down
8 changes: 4 additions & 4 deletions NeutrinoAPI.PCL/Models/IPInfoResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public class IPInfoResponse : BaseModel
private string hostname;
private string city;
private string countryCode;
private int latitude;
private double? latitude;
private string region;
private int longitude;
private double? longitude;
private string continentCode;
private string ip;
private string countryCode3;
Expand Down Expand Up @@ -125,7 +125,7 @@ public string CountryCode
/// Location latitude
/// </summary>
[JsonProperty("latitude")]
public int Latitude
public double? Latitude
{
get
{
Expand Down Expand Up @@ -159,7 +159,7 @@ public string Region
/// Location longitude
/// </summary>
[JsonProperty("longitude")]
public int Longitude
public double? Longitude
{
get
{
Expand Down
8 changes: 4 additions & 4 deletions NeutrinoAPI.PCL/Models/Location.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public class Location : BaseModel
private string city;
private string countryCode;
private string countryCode3;
private double latitude;
private double? latitude;
private string postalCode;
private double longitude;
private double? longitude;
private string state;
private Dictionary<string, string> addressComponents;

Expand Down Expand Up @@ -121,7 +121,7 @@ public string CountryCode3
/// The location latitude
/// </summary>
[JsonProperty("latitude")]
public double Latitude
public double? Latitude
{
get
{
Expand Down Expand Up @@ -155,7 +155,7 @@ public string PostalCode
/// The location longitude
/// </summary>
[JsonProperty("longitude")]
public double Longitude
public double? Longitude
{
get
{
Expand Down
152 changes: 0 additions & 152 deletions NeutrinoAPI.PCL/NeutrinoAPI.PCL.csproj

This file was deleted.

26 changes: 0 additions & 26 deletions NeutrinoAPI.PCL/NeutrinoAPI.PCL.nuspec

This file was deleted.

32 changes: 32 additions & 0 deletions NeutrinoAPI.PCL/NeutrinoAPI.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Company>Neutrino API</Company>
<Version>3.6.0.0</Version>
<Description>The general-purpose API.</Description>
<Copyright>Copyright © 2016-2022</Copyright>
<PackageProjectUrl>https://www.neutrinoapi.com</PackageProjectUrl>
<RepositoryUrl>https://github.com/NeutrinoAPI/NeutrinoAPI-CSharp</RepositoryUrl>
<AnalysisLevel>latest</AnalysisLevel>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Authors>Neutrino API</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>neutrino api</PackageTags>
<PackageIcon>icon.png</PackageIcon>
<PackageIconUrl />
</PropertyGroup>

<ItemGroup>
<None Include="icon.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>

</Project>
27 changes: 0 additions & 27 deletions NeutrinoAPI.PCL/Properties/AssemblyInfo.cs

This file was deleted.

4 changes: 0 additions & 4 deletions NeutrinoAPI.PCL/Utilities/RetryHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ public static async Task RetryOnExceptionAsync<TException>(
{
if (attempts == times)
throw;
#if WINDOWS_UWP || DNXCORE50 || NETSTANDARD1_3
await Task.Delay(delay).ConfigureAwait(false);
#else
await TaskEx.Delay(delay).ConfigureAwait(false);
#endif
}
} while (true);
}
Expand Down
Binary file added NeutrinoAPI.PCL/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions NeutrinoAPI.PCL/packages.config

This file was deleted.

Loading