Skip to content

Commit 434581f

Browse files
committed
Update FlowSynx.PluginCore version and adapt new changes
#4
1 parent 4a96790 commit 434581f

File tree

3 files changed

+18
-23
lines changed

3 files changed

+18
-23
lines changed

src/FlowSynx.Plugins.ShaHashing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<ItemGroup>
1515
<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.1" />
16-
<PackageReference Include="FlowSynx.PluginCore" Version="1.3.0" />
16+
<PackageReference Include="FlowSynx.PluginCore" Version="1.3.2" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

src/Models/ShaHashingPluginSpecifications.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace FlowSynx.Plugins.ShaHashing.Models;
44

5-
internal class ShaHashingPluginSpecifications: PluginSpecifications
5+
public class ShaHashingPluginSpecifications: PluginSpecifications
66
{
77

88
}

src/ShaHashingPlugin.cs

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,23 @@ public class ShaHashingPlugin : IPlugin
1111
private IPluginLogger? _logger;
1212
private bool _isInitialized;
1313

14-
public PluginMetadata Metadata
14+
public PluginMetadata Metadata => new PluginMetadata
1515
{
16-
get
17-
{
18-
return new PluginMetadata
19-
{
20-
Id = Guid.Parse("cc9f1294-f8e2-4253-acdf-2b0f15cefbc8"),
21-
Name = "Hahing.Sha",
22-
CompanyName = "FlowSynx",
23-
Description = Resources.PluginDescription,
24-
Version = new PluginVersion(1, 0, 0),
25-
Category = PluginCategory.Security,
26-
Authors = new List<string> { "FlowSynx" },
27-
Copyright = "© FlowSynx. All rights reserved.",
28-
Icon = "flowsynx.png",
29-
ReadMe = "README.md",
30-
RepositoryUrl = "https://github.com/flowsynx/plugin-sha-hashing",
31-
ProjectUrl = "https://flowsynx.io",
32-
Tags = new List<string>() { "flowSynx", "hashing", "sha-1", "sha-2", "sha-3", "shake", "security" }
33-
};
34-
}
35-
}
16+
Id = Guid.Parse("cc9f1294-f8e2-4253-acdf-2b0f15cefbc8"),
17+
Name = "Hahing.Sha",
18+
CompanyName = "FlowSynx",
19+
Description = Resources.PluginDescription,
20+
Version = new Version(1, 1, 0),
21+
Category = PluginCategory.Security,
22+
Authors = new List<string> { "FlowSynx" },
23+
Copyright = "© FlowSynx. All rights reserved.",
24+
Icon = "flowsynx.png",
25+
ReadMe = "README.md",
26+
RepositoryUrl = "https://github.com/flowsynx/plugin-sha-hashing",
27+
ProjectUrl = "https://flowsynx.io",
28+
Tags = new List<string>() { "flowSynx", "hashing", "sha-1", "sha-2", "sha-3", "shake", "security" },
29+
MinimumFlowSynxVersion = new Version(1, 1, 1),
30+
};
3631

3732
public PluginSpecifications? Specifications { get; set; }
3833

0 commit comments

Comments
 (0)