-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove ApplicationInsights as it is not AoT-compatible (and I never look at the data anyway). - Use System.Text.Json for serialization instead of Newtonsoft.Json to support AoT. - Remove unused/duplicate custom `JsonSerializerContext`. - Add more end-to-end tests. - Enable publishing the Lambda for AoT. - Increase code coverage for ending a session. - Use expression body. * Switch to x64 as until there's a GitHub Actions Linux runner with arm64 support, need to switch back to x64 as it is not possible to compile AoT for arm64 on an x64 Linux image. - Use invariant globalisation and remove Microsoft.ICU.ICU4C.Runtime to reduce the AoT deployment size. - Increase TfL API timeout to 7.5 seconds.
- Loading branch information
1 parent
e9095df
commit 09568ce
Showing
66 changed files
with
1,134 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
// Copyright (c) Martin Costello, 2017. All rights reserved. | ||
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using System.Text.Json.Serialization; | ||
using MartinCostello.LondonTravel.Skill.Clients; | ||
using MartinCostello.LondonTravel.Skill.Models; | ||
|
||
namespace MartinCostello.LondonTravel.Skill; | ||
|
||
/// <summary> | ||
/// A class representing the <see cref="JsonSerializerContext"/> to use for the application. | ||
/// </summary> | ||
[ExcludeFromCodeCoverage] | ||
[JsonSerializable(typeof(IList<Line>))] | ||
[JsonSerializable(typeof(IList<ServiceDisruption>))] | ||
[JsonSerializable(typeof(LinkAccountCard))] | ||
[JsonSerializable(typeof(SkillRequest))] | ||
[JsonSerializable(typeof(SkillResponse))] | ||
[JsonSerializable(typeof(SkillUserPreferences))] | ||
[JsonSerializable(typeof(StandardCard))] | ||
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)] | ||
internal sealed partial class AppJsonSerializerContext : JsonSerializerContext | ||
public sealed partial class AppJsonSerializerContext : JsonSerializerContext | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/LondonTravel.Skill/Extensions/ApplicationJsonSerializerContext.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.