Skip to content

Commit dbbd523

Browse files
authored
Merge pull request #17 from shugaoye/master
Build 1.3.8
2 parents 04d6f36 + 9ce88a7 commit dbbd523

File tree

8 files changed

+25
-13
lines changed

8 files changed

+25
-13
lines changed

CHANGELOG.md

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

3+
### Release 1.3.8
4+
35
### Release 1.3.7
46
**KPCLib**
57
- Added `GetOtpUrl()`

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

KPCLib.xunit/KPCLib.xunit.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<ItemGroup>
1212
<PackageReference Include="HtmlAgilityPack" Version="1.11.34" />
1313
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
14-
<PackageReference Include="PassXYZ" Version="2.1.4.9" />
14+
<PackageReference Include="PassXYZ" Version="2.1.4.11" />
1515
<PackageReference Include="SkiaSharp" Version="2.80.2" />
1616
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.80.2" />
1717
<PackageReference Include="Svg.Skia" Version="0.5.3" />

KPCLib.xunit/PxDatabaseTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ public class PxLibInfoTests
407407
public void PxLibVersion()
408408
{
409409
Debug.WriteLine($"{PxLibInfo.Version}");
410-
Assert.Equal(PxLibInfo.Version, new System.Version("1.3.6.0"));
410+
Assert.Equal(PxLibInfo.Version, new System.Version("1.3.8.0"));
411411
}
412412

413413
[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.7</Version>
9+
<Version>1.3.8</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.7.0</AssemblyVersion>
19-
<FileVersion>1.3.7.0</FileVersion>
18+
<AssemblyVersion>1.3.8.0</AssemblyVersion>
19+
<FileVersion>1.3.8.0</FileVersion>
2020
</PropertyGroup>
2121

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

KPCLib/PassXYZLib/PxDefs.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ public static class PxDefs
133133
public const string all_txt = "*.txt";
134134

135135
public const string PxKeyFile = "pxkey://";
136+
public const string PxJsonData = "pxdat://";
137+
public const string PxJsonTemplate = "pxtem://";
138+
139+
public const int QR_CODE_MAX_LEN = 1152;
136140

137141
/// <summary>
138142
/// PassXYZ customization data keys, please refer to chapter 17
@@ -208,12 +212,16 @@ public static string GetUserNameFromFileName(string fileName, PxFileType fileTyp
208212

209213
public static bool IsDeviceLockEnabled(string filename)
210214
{
215+
if (string.IsNullOrEmpty(filename)) { return false; }
216+
211217
if (filename.StartsWith(head_data)) return true;
212218
else return false;
213219
}
214220

215221
public static bool IsPxEntry(PwEntry entry)
216222
{
223+
if (entry == null) { return false; }
224+
217225
if (entry.CustomData.Get(PxCustomDataItemSubType) == ItemSubType.PxEntry.ToString())
218226
return true;
219227
else
@@ -222,6 +230,8 @@ public static bool IsPxEntry(PwEntry entry)
222230

223231
public static bool IsNotes(PwEntry entry)
224232
{
233+
if (entry == null) { return false; }
234+
225235
if (entry.CustomData.Get(PxCustomDataItemSubType) == ItemSubType.Notes.ToString())
226236
return true;
227237
else

PassXYZLib.nuspec

Lines changed: 3 additions & 3 deletions
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.7.0</version>
5+
<version>1.3.8.0</version>
66
<authors>Roger Ye</authors>
77
<owners>Roger Ye</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>
@@ -17,8 +17,8 @@
1717
<repository url="https://github.com/passxyz/KPCLib" />
1818
<dependencies>
1919
<group targetFramework=".NETStandard2.0">
20-
<dependency id="PassXYZ" version="2.1.4.9" exclude="Build,Analyzers" />
21-
<dependency id="KPCLib" version="1.3.2.0" exclude="Build,Analyzers" />
20+
<dependency id="PassXYZ" version="2.1.4.11" exclude="Build,Analyzers" />
21+
<dependency id="KPCLib" version="1.3.8.0" exclude="Build,Analyzers" />
2222
<dependency id="SkiaSharp" version="2.80.2" exclude="Build,Analyzers" />
2323
</group>
2424
</dependencies>

PassXYZLib/PassXYZLib.csproj

Lines changed: 4 additions & 4 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.6</Version>
6-
<AssemblyVersion>1.3.6.0</AssemblyVersion>
7-
<FileVersion>1.3.6.0</FileVersion>
5+
<Version>1.3.8</Version>
6+
<AssemblyVersion>1.3.8.0</AssemblyVersion>
7+
<FileVersion>1.3.8.0</FileVersion>
88
<Company>PassXYZ Inc.</Company>
99
<Authors>Roger Ye</Authors>
1010
<Copyright>Roger Ye</Copyright>
@@ -16,7 +16,7 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="PassXYZ" Version="2.1.4.9" />
19+
<PackageReference Include="PassXYZ" Version="2.1.4.11" />
2020
</ItemGroup>
2121

2222
<ItemGroup>

0 commit comments

Comments
 (0)