Skip to content

Commit

Permalink
Fixed compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Aug 6, 2019
1 parent 61229a7 commit 9b837f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
9 changes: 0 additions & 9 deletions Chat.Common/Chat.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,10 @@
<Compile Include="SmsUtils.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="libphonenumber-csharp">
<Version>8.10.16</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.8</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\LibPhoneNumber.Contrib\LibPhoneNumber.Contrib.csproj">
<Project>{76e62544-dfba-4aec-8309-a441176abf2d}</Project>
<Name>LibPhoneNumber.Contrib</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
Expand Down
12 changes: 6 additions & 6 deletions Chat.Common/ContactUtils.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using PhoneNumbers;
using LibPhoneNumber.Contrib.PhoneNumberUtil;
//using PhoneNumbers;
//using LibPhoneNumber.Contrib.PhoneNumberUtil;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -38,20 +38,20 @@ public static async Task<Contact> GetMyself()

private static (string, string) GetPhoneNumberInformation(string phonenumber)
{
PhoneNumberUtil phoneUtil = PhoneNumberUtil.GetInstance();
/*PhoneNumberUtil phoneUtil = PhoneNumberUtil.GetInstance();
PhoneNumber number;
var supportedCodes = phoneUtil.GetSupportedRegions().ToArray();
var result = phoneUtil.TryGetValidNumber(phonenumber, supportedCodes, out number);
var result = phoneUtil.TryGetValidNumber(phonenumber, supportedCodes, out number);*/

var countrycode = "";
var nationalnumber = phonenumber;

if (result)
/*if (result)
{
countrycode = number.CountryCode.ToString();
nationalnumber = number.NationalNumber.ToString();
}
}*/

return (nationalnumber, countrycode);
}
Expand Down
2 changes: 1 addition & 1 deletion Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity
Name="LumiaWOA.Chat"
Publisher="CN=LumiaWOA"
Version="0.0.55.0" />
Version="0.0.58.0" />

<mp:PhoneIdentity PhoneProductId="d8719107-e9ed-450f-be3e-88003464d950" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down

0 comments on commit 9b837f6

Please sign in to comment.