Automattic / Automattic-Tracks-iOS

Client library for tracking user events for later analysis
GNU General Public License v2.0
40 stars 12 forks source link

TracksDeviceInformation: Caching Device Properties #282

Closed jleandroperez closed 4 months ago

jleandroperez commented 4 months ago

Details:

We've observed a deadlock affecting DayOne where:

In this PR we're caching, at launch, the TracksDeviceProperties.

I do realize this approach ain't perfect: Orientation is bond to change, and preferred content size could be altered as well. This changeset is a compromise solution.

Feedback welcomed, thanks in advance!!