TelemetryDeck / TelemetryViewer

macOS and iOS app for interacting with TelemetryDeck
https://telemetrydeck.com
MIT License
69 stars 14 forks source link

Update Widgets for Compatibility with Sonoma #160

Open winsmith opened 1 year ago

JayFiDev commented 10 months ago

I got a first step for Sonoma widgets working, but have a problem now, which I can't solve myself. The current mock data for the widgets is out of date:

.map { try! JSONDecoder.telemetryDecoder.decode(DTOv2.InsightCalculationResult.self, from: $0) }

is not working - resulting in black widgets when adding them. Can you update the data for the newest model? I think some data is missing.

Bildschirmfoto 2024-01-18 um 22 18 21

winsmith commented 10 months ago

I updated the mocks but I'm unsure how to properly test this, so I didn't merge the commit yet. Could you check out PR #165 and see if it does what you need?

Alternatively, could you describe how you to got to this screen so I can test it? When I launch the TelemetryDeckMacWidgetExtension target directly, I don't get this dialog (and the widgets don't show up in the widget picker). When I run the TelemetryViewer (macOS) target, they don't show up either in the widget picker.

(What does show up is the iPhone app widgets -- or did you mean those?)

JayFiDev commented 10 months ago

had to delete my previous comment - the mock data was working, but I ran into multiple other problems - from memory leak to hard crashes. I think that problem is a little bit over my head. Sorry!

JayFiDev commented 10 months ago

Bildschirmfoto 2024-01-21 um 07 59 22

work in progress - just can't login at the moment in the app when running. Neither macOS nor macOS local let me login.