Skip to content

Commit 0429efd

Browse files
committed
Moved PxItem, PxEntry and PxGroup to PassXYZ.Vault
1 parent 5e8fee1 commit 0429efd

File tree

12 files changed

+11
-1004
lines changed

12 files changed

+11
-1004
lines changed

KPCLib.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>KPCLib</id>
5-
<version>1.3.1.1</version>
5+
<version>1.3.2.0</version>
66
<authors>Roger Ye</authors>
77
<owners>Roger Ye</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>

KPCLib.xunit/GfxUtilTests.cs

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -128,64 +128,6 @@ public void ScaleMultipleImages(int value)
128128
SaveScaledImage(resizedFile, value, value);
129129
}
130130

131-
[Theory]
132-
[InlineData("http://github.com")]
133-
[InlineData("http://www.baidu.com")]
134-
[InlineData("https://www.bing.com/")]
135-
[InlineData("http://www.youdao.com")]
136-
[InlineData("https://www.dell.com")]
137-
[InlineData("http://www.cmbchina.com")]
138-
public void GetIconTest(string url)
139-
{
140-
var faviconUrl = ItemExtensions.RetrieveFavicon(url);
141-
if(faviconUrl != null)
142-
{
143-
var imageFolder = "images";
144-
try
145-
{
146-
DirectoryInfo di = new DirectoryInfo(imageFolder);
147-
try
148-
{
149-
// Determine whether the directory exists.
150-
if (!di.Exists)
151-
{
152-
di.Create();
153-
}
154-
}
155-
catch (Exception e)
156-
{
157-
Debug.WriteLine("The process failed: {0}", e.ToString());
158-
}
159-
160-
var uri = new Uri(faviconUrl);
161-
WebClient myWebClient = new WebClient();
162-
byte[] pb = myWebClient.DownloadData(faviconUrl);
163-
164-
if (faviconUrl.EndsWith(".ico") || faviconUrl.EndsWith(".png"))
165-
{
166-
GfxUtil.SaveImage(GfxUtil.ScaleImage(GfxUtil.LoadImage(pb), 128, 128), $"{imageFolder}/{uri.Host}.png");
167-
}
168-
else if (faviconUrl.EndsWith(".svg"))
169-
{
170-
GfxUtil.SaveImage(GfxUtil.LoadSvgImage(pb), $"{imageFolder}/{uri.Host}.png");
171-
}
172-
Debug.WriteLine($"{imageFolder}/{uri.Host}.png");
173-
}
174-
catch (System.Net.WebException ex)
175-
{
176-
Debug.WriteLine($"{ex}");
177-
}
178-
}
179-
Assert.NotNull(faviconUrl);
180-
}
181-
182-
[Theory]
183-
[InlineData("https://favicon.io/tutorials/what-is-a-favicon/")]
184-
public void NoFaviconTest(string url)
185-
{
186-
Assert.Null(ItemExtensions.RetrieveFavicon(url));
187-
}
188-
189131
[Fact]
190132
public void PrintImageFormat()
191133
{

KPCLib.xunit/KPCLib.xunit.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<TargetFramework>net5.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
7+
8+
<Version>1.3.2</Version>
79
</PropertyGroup>
810

911
<ItemGroup>

KPCLib.xunit/PasswordDBTests.cs

Lines changed: 0 additions & 96 deletions
This file was deleted.

KPCLib.xunit/PxDatabaseTests.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,6 @@ public void ListEntriesTests()
8484
}
8585
}
8686

87-
[Fact]
88-
public void ListItemsTests()
89-
{
90-
PwGroup pg = passxyz.PxDb.RootGroup;
91-
92-
List<Item> itemList = pg.GetItems();
93-
foreach (var item in itemList)
94-
{
95-
Debug.WriteLine($"\t{item.Name} : {item.ImgSource}");
96-
}
97-
Assert.NotNull(itemList);
98-
}
99-
10087
[Fact]
10188
public void DeleteEmptyEntryTest()
10289
{
@@ -392,7 +379,7 @@ public class PxLibInfoTests
392379
public void PxLibVersion()
393380
{
394381
Debug.WriteLine($"{PxLibInfo.Version}");
395-
Assert.Equal(PxLibInfo.Version, new System.Version("1.3.1.0"));
382+
Assert.Equal(PxLibInfo.Version, new System.Version("1.3.2.0"));
396383
}
397384

398385
[Fact]

KPCLib.xunit/PxEntryTests.cs

Lines changed: 0 additions & 127 deletions
This file was deleted.

KPCLib/KPCLib.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<OutputType>Library</OutputType>
77
<StartupObject />
88
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
9-
<Version>1.3.1.0</Version>
9+
<Version>1.3.2</Version>
1010
<PackageProjectUrl>https://github.com/passxyz/KPCLib</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/passxyz/KPCLib</RepositoryUrl>
1212
<Description>This is the build of KeePassLib in Xamarin Portable Class Library. Three platforms, UWP, Android and iOS, are supported and tested.</Description>
@@ -17,8 +17,8 @@
1717
- Updated to KeePass 2.48.1
1818
- Fixed an issue in CryptoRandom.cs</PackageReleaseNotes>
1919
<NeutralLanguage>en-US</NeutralLanguage>
20-
<AssemblyVersion>1.3.1.0</AssemblyVersion>
21-
<FileVersion>1.3.1.0</FileVersion>
20+
<AssemblyVersion>1.3.2.0</AssemblyVersion>
21+
<FileVersion>1.3.2.0</FileVersion>
2222
</PropertyGroup>
2323

2424
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

PassXYZLib.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>PassXYZLib</id>
5-
<version>1.3.1.2</version>
5+
<version>1.3.2.0</version>
66
<authors>Roger Ye</authors>
77
<owners>Roger Ye</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>

0 commit comments

Comments
 (0)