Skip to content

Commit aa75776

Browse files
authored
Merge pull request #15 from shugaoye/master
Release 1.3.6
2 parents 62877de + cbf8693 commit aa75776

File tree

12 files changed

+183
-27
lines changed

12 files changed

+183
-27
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Change log
22

3+
### Release 1.3.6
4+
**PassXYZLib**
5+
- Added LogFilePath
6+
- Added `ChangeMasterPassword()`
7+
- Improved `SearchEntries()`
8+
39
### Release 1.3.5
410
**KPCLib**
511
- Added `Exists()` in `ProtectedBinaryDictionary`

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.5.0</version>
5+
<version>1.3.6.0</version>
66
<authors>Roger Ye</authors>
77
<owners>Roger Ye</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>

KPCLib.xunit/PxDatabaseTests.cs

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public void ListGroupsTests()
6868
}
6969
}
7070

71-
7271
[Fact]
7372
public void ListEntriesTests()
7473
{
@@ -381,7 +380,24 @@ public void EntrySearchTests(string keyword)
381380
var entries = passxyz.PxDb.SearchEntries(keyword);
382381
Assert.True(entries.Any());
383382
}
384-
383+
384+
[Fact]
385+
public void GetAllEntriesByLastModificationTimeTest()
386+
{
387+
var entries = passxyz.PxDb.GetAllEntries();
388+
// descending or ascending
389+
IEnumerable<PwEntry> entriesByDate =
390+
from e in entries
391+
orderby e.LastModificationTime descending
392+
select e;
393+
394+
Debug.WriteLine($"Found {entriesByDate.Count()} entries.");
395+
foreach (var entry in entriesByDate)
396+
{
397+
Debug.WriteLine($"{entry.Name} {entry.LastModificationTime}");
398+
}
399+
}
400+
// Add new test cases here
385401
}
386402

387403

@@ -391,7 +407,7 @@ public class PxLibInfoTests
391407
public void PxLibVersion()
392408
{
393409
Debug.WriteLine($"{PxLibInfo.Version}");
394-
Assert.Equal(PxLibInfo.Version, new System.Version("1.3.5.0"));
410+
Assert.Equal(PxLibInfo.Version, new System.Version("1.3.6.0"));
395411
}
396412

397413
[Fact]

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.5</Version>
9+
<Version>1.3.6</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>
@@ -15,8 +15,8 @@
1515
<Company>PassXYZ Inc.</Company>
1616
<PackageReleaseNotes></PackageReleaseNotes>
1717
<NeutralLanguage>en-US</NeutralLanguage>
18-
<AssemblyVersion>1.3.5.0</AssemblyVersion>
19-
<FileVersion>1.3.5.0</FileVersion>
18+
<AssemblyVersion>1.3.6.0</AssemblyVersion>
19+
<FileVersion>1.3.6.0</FileVersion>
2020
</PropertyGroup>
2121

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

KPCLib/Native/NativeMethods.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ internal static extern bool GetVolumeInformation(string lpRootPathName,
164164
[return: MarshalAs(UnmanagedType.Bool)]
165165
internal static extern bool MoveFileEx(string lpExistingFileName,
166166
string lpNewFileName, UInt32 dwFlags);
167-
167+
#if !KPCLib
168168
[DllImport("KtmW32.dll", CharSet = CharSet.Unicode, ExactSpelling = true,
169169
SetLastError = true)]
170170
internal static extern IntPtr CreateTransaction(IntPtr lpTransactionAttributes,
@@ -174,7 +174,7 @@ internal static extern IntPtr CreateTransaction(IntPtr lpTransactionAttributes,
174174
[DllImport("KtmW32.dll", SetLastError = true)]
175175
[return: MarshalAs(UnmanagedType.Bool)]
176176
internal static extern bool CommitTransaction(IntPtr hTransaction);
177-
177+
#endif // KPCLib
178178
[DllImport("Kernel32.dll", CharSet = CharSet.Auto, ExactSpelling = false,
179179
SetLastError = true)]
180180
[return: MarshalAs(UnmanagedType.Bool)]
@@ -186,7 +186,7 @@ internal static extern bool MoveFileTransacted(string lpExistingFileName,
186186
private static extern int SHGetKnownFolderPath(ref Guid rfid, uint dwFlags,
187187
IntPtr hToken, out IntPtr ppszPath);
188188

189-
#if (!KeePassLibSD && !KeePassUAP)
189+
#if (!KeePassLibSD && !KeePassUAP && !KPCLib)
190190
[DllImport("ShlWApi.dll", CharSet = CharSet.Auto)]
191191
[return: MarshalAs(UnmanagedType.Bool)]
192192
internal static extern bool PathRelativePathTo([Out] StringBuilder pszPath,

KPCLib/PassXYZLib/Item.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public abstract class Item : INotifyPropertyChanged
1515
{
1616
private PwUuid m_uuid = PwUuid.Zero;
1717

18+
public abstract DateTime LastModificationTime { get; set; }
19+
1820
public abstract string Name { get; set; }
1921

2022
public abstract string Description { get;}

KPCLib/PwEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public DateTime CreationTime
206206
/// <summary>
207207
/// The date/time when this entry was last modified.
208208
/// </summary>
209-
public DateTime LastModificationTime
209+
public override DateTime LastModificationTime
210210
{
211211
get { return m_tLastMod; }
212212
set { m_tLastMod = value; }

KPCLib/PwGroup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public DateTime CreationTime
207207
/// <summary>
208208
/// The date/time when this group was last modified.
209209
/// </summary>
210-
public DateTime LastModificationTime
210+
public override DateTime LastModificationTime
211211
{
212212
get { return m_tLastMod; }
213213
set { m_tLastMod = value; }

PassXYZLib.nuspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>PassXYZLib</id>
5-
<version>1.3.5.0</version>
5+
<version>1.3.6.0</version>
66
<authors>Roger Ye</authors>
77
<owners>Roger Ye</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>
99
<license type="expression">LGPL-3.0-or-later</license>
1010
<projectUrl>https://github.com/passxyz/KPCLib</projectUrl>
1111
<description>This is an extension of KPCLib.</description>
1212
<releaseNotes>
13-
Added SearchEntries()
13+
- Improved SearchEntries()
14+
- Added ChangeMasterPassword()
1415
</releaseNotes>
1516
<copyright>Roger Ye</copyright>
1617
<repository url="https://github.com/passxyz/KPCLib" />

PassXYZLib/PassXYZLib.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<Version>1.3.5</Version>
6-
<AssemblyVersion>1.3.5.0</AssemblyVersion>
7-
<FileVersion>1.3.5.0</FileVersion>
5+
<Version>1.3.6</Version>
6+
<AssemblyVersion>1.3.6.0</AssemblyVersion>
7+
<FileVersion>1.3.6.0</FileVersion>
88
<Company>PassXYZ Inc.</Company>
99
<Authors>Roger Ye</Authors>
1010
<Copyright>Roger Ye</Copyright>

0 commit comments

Comments
 (0)