Skip to content

Commit 1b5b376

Browse files
committed
Update FlowSynx.PluginCore and change the code to add CategoryId into Plugin metadata
#9
1 parent 3b7ffa6 commit 1b5b376

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/FlowPack/FlowPack.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="FlowSynx.PluginCore" Version="1.2.4" />
17+
<PackageReference Include="FlowSynx.PluginCore" Version="1.2.7" />
1818
</ItemGroup>
1919

2020
</Project>

src/FlowPack/PluginMetadata.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ public class PluginMetadata
1616
public string? ReadMe { get; set; }
1717
public List<string> Authors { get; set; } = new List<string>();
1818
public List<string> Tags { get; set; } = new List<string>();
19+
public required string CategoryId { get; set; }
1920
}

src/FlowPack/PluginReflector.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ private static PluginMetadata CreatePluginMetadata(IPlugin plugin)
4949
Copyright = plugin.Metadata.Copyright,
5050
ReadMe = plugin.Metadata.ReadMe,
5151
Authors = plugin.Metadata.Authors ?? new(),
52-
Tags = plugin.Metadata.Tags ?? new()
52+
Tags = plugin.Metadata.Tags ?? new(),
53+
CategoryId = plugin.Metadata.Category.Id
5354
};
5455
}
5556

0 commit comments

Comments
 (0)