Skip to content

Commit

Permalink
Merge pull request #11 from shugaoye/master
Browse files Browse the repository at this point in the history
Build 1.3.2
  • Loading branch information
passxyz authored Aug 7, 2021
2 parents 68aaca7 + 56353ea commit a7edaad
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 1,016 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Change log

### Release 1.3.2
- Removed dependencies

### Release 1.2.2
- Bug fixes

Expand Down
2 changes: 1 addition & 1 deletion KPCLib.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>KPCLib</id>
<version>1.3.1.0</version>
<version>1.3.2.0</version>
<authors>Roger Ye</authors>
<owners>Roger Ye</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
2 changes: 2 additions & 0 deletions KPCLib.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PassXYZLib", "PassXYZLib\Pa
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B5CFEC4A-7D25-4D24-B4F7-A568E1DF4750}"
ProjectSection(SolutionItems) = preProject
CHANGELOG.md = CHANGELOG.md
KPCLib.nuspec = KPCLib.nuspec
PassXYZLib.nuspec = PassXYZLib.nuspec
README.md = README.md
EndProjectSection
EndProject
Global
Expand Down
58 changes: 0 additions & 58 deletions KPCLib.xunit/GfxUtilTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,64 +128,6 @@ public void ScaleMultipleImages(int value)
SaveScaledImage(resizedFile, value, value);
}

[Theory]
[InlineData("http://github.com")]
[InlineData("http://www.baidu.com")]
[InlineData("https://www.bing.com/")]
[InlineData("http://www.youdao.com")]
[InlineData("https://www.dell.com")]
[InlineData("http://www.cmbchina.com")]
public void GetIconTest(string url)
{
var faviconUrl = ItemExtensions.RetrieveFavicon(url);
if(faviconUrl != null)
{
var imageFolder = "images";
try
{
DirectoryInfo di = new DirectoryInfo(imageFolder);
try
{
// Determine whether the directory exists.
if (!di.Exists)
{
di.Create();
}
}
catch (Exception e)
{
Debug.WriteLine("The process failed: {0}", e.ToString());
}

var uri = new Uri(faviconUrl);
WebClient myWebClient = new WebClient();
byte[] pb = myWebClient.DownloadData(faviconUrl);

if (faviconUrl.EndsWith(".ico") || faviconUrl.EndsWith(".png"))
{
GfxUtil.SaveImage(GfxUtil.ScaleImage(GfxUtil.LoadImage(pb), 128, 128), $"{imageFolder}/{uri.Host}.png");
}
else if (faviconUrl.EndsWith(".svg"))
{
GfxUtil.SaveImage(GfxUtil.LoadSvgImage(pb), $"{imageFolder}/{uri.Host}.png");
}
Debug.WriteLine($"{imageFolder}/{uri.Host}.png");
}
catch (System.Net.WebException ex)
{
Debug.WriteLine($"{ex}");
}
}
Assert.NotNull(faviconUrl);
}

[Theory]
[InlineData("https://favicon.io/tutorials/what-is-a-favicon/")]
public void NoFaviconTest(string url)
{
Assert.Null(ItemExtensions.RetrieveFavicon(url));
}

[Fact]
public void PrintImageFormat()
{
Expand Down
2 changes: 2 additions & 0 deletions KPCLib.xunit/KPCLib.xunit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<TargetFramework>net5.0</TargetFramework>

<IsPackable>false</IsPackable>

<Version>1.3.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
96 changes: 0 additions & 96 deletions KPCLib.xunit/PasswordDBTests.cs

This file was deleted.

15 changes: 1 addition & 14 deletions KPCLib.xunit/PxDatabaseTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,6 @@ public void ListEntriesTests()
}
}

[Fact]
public void ListItemsTests()
{
PwGroup pg = passxyz.PxDb.RootGroup;

List<Item> itemList = pg.GetItems();
foreach (var item in itemList)
{
Debug.WriteLine($"\t{item.Name} : {item.ImgSource}");
}
Assert.NotNull(itemList);
}

[Fact]
public void DeleteEmptyEntryTest()
{
Expand Down Expand Up @@ -392,7 +379,7 @@ public class PxLibInfoTests
public void PxLibVersion()
{
Debug.WriteLine($"{PxLibInfo.Version}");
Assert.Equal(PxLibInfo.Version, new System.Version("1.3.1.0"));
Assert.Equal(PxLibInfo.Version, new System.Version("1.3.2.0"));
}

[Fact]
Expand Down
127 changes: 0 additions & 127 deletions KPCLib.xunit/PxEntryTests.cs

This file was deleted.

Binary file modified KPCLib.xunit/pass_d_E8f4pEk.xyz
Binary file not shown.
6 changes: 3 additions & 3 deletions KPCLib/KPCLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<OutputType>Library</OutputType>
<StartupObject />
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.3.1.0</Version>
<Version>1.3.2</Version>
<PackageProjectUrl>https://github.com/passxyz/KPCLib</PackageProjectUrl>
<RepositoryUrl>https://github.com/passxyz/KPCLib</RepositoryUrl>
<Description>This is the build of KeePassLib in Xamarin Portable Class Library. Three platforms, UWP, Android and iOS, are supported and tested.</Description>
Expand All @@ -17,8 +17,8 @@
- Updated to KeePass 2.48.1
- Fixed an issue in CryptoRandom.cs</PackageReleaseNotes>
<NeutralLanguage>en-US</NeutralLanguage>
<AssemblyVersion>1.3.1.0</AssemblyVersion>
<FileVersion>1.3.1.0</FileVersion>
<AssemblyVersion>1.3.2.0</AssemblyVersion>
<FileVersion>1.3.2.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
Loading

0 comments on commit a7edaad

Please sign in to comment.