|
1 | 1 | using Hi3Helper.Plugin.Core.Management; |
2 | 2 | using Hi3Helper.Plugin.Core.Update; |
3 | 3 | using Hi3Helper.Plugin.Core.Utility; |
4 | | -using Hi3Helper.Plugin.Core.Utility.Json.Converters; |
5 | 4 | using Microsoft.Extensions.Logging; |
6 | 5 | using System; |
7 | 6 | using System.Buffers; |
|
15 | 14 | using System.Threading; |
16 | 15 | using System.Threading.Tasks; |
17 | 16 |
|
| 17 | +#if !USELIGHTWEIGHTJSONPARSER |
| 18 | +using Hi3Helper.Plugin.Core.Utility.Json.Converters; |
| 19 | +#endif |
| 20 | + |
18 | 21 | namespace PluginTest; |
19 | 22 |
|
20 | 23 | internal static partial class Test |
@@ -222,16 +225,24 @@ public class PluginManifest |
222 | 225 | public string? MainPluginAuthor { get; init; } |
223 | 226 | public string? MainPluginDescription { get; init; } |
224 | 227 |
|
| 228 | +#if !USELIGHTWEIGHTJSONPARSER |
225 | 229 | [JsonConverter(typeof(Utf8SpanParsableJsonConverter<GameVersion>))] |
| 230 | +#endif |
226 | 231 | public GameVersion PluginStandardVersion { get; init; } |
227 | 232 |
|
| 233 | +#if !USELIGHTWEIGHTJSONPARSER |
228 | 234 | [JsonConverter(typeof(Utf8SpanParsableJsonConverter<GameVersion>))] |
| 235 | +#endif |
229 | 236 | public GameVersion PluginVersion { get; init; } |
230 | 237 |
|
| 238 | +#if !USELIGHTWEIGHTJSONPARSER |
231 | 239 | [JsonConverter(typeof(Utf16SpanParsableJsonConverter<DateTimeOffset>))] |
| 240 | +#endif |
232 | 241 | public DateTimeOffset PluginCreationDate { get; init; } |
233 | 242 |
|
| 243 | +#if !USELIGHTWEIGHTJSONPARSER |
234 | 244 | [JsonConverter(typeof(Utf16SpanParsableJsonConverter<DateTimeOffset>))] |
| 245 | +#endif |
235 | 246 | public DateTimeOffset ManifestDate { get; init; } |
236 | 247 |
|
237 | 248 | public required List<PluginManifestAsset> Assets { get; init; } |
|
0 commit comments