dhindrik / TinyInsights.Maui

TinyInsights is a library for tracking and a website for showing insights for your .NET MAUI app. Data will be saved in Application Insights. The website will help you to show the data in a more mobile app-friendly user interface.
MIT License
32 stars 6 forks source link

Fix: Read crashes #20

Closed IeuanWalker closed 2 weeks ago

IeuanWalker commented 2 weeks ago

Sorry in a previous PR I removed the empty constructor on the Crash model, as it didn't look like it was serving any purpose.

But it caused an exception to be throw when reading/ deserializing the crashes -

Each parameter in the deserialization constructor on type 'TinyInsights.Crash' must bind to an object property or field on deserialization. Each parameter name must match with a property or field on the object. Fields are only considered when 'JsonSerializerOptions.IncludeFields' is enabled. The match can be case-insensitive.

I've also removed the ILogger implementation from the sample project, as it was causing issues debugging.