digidem / comapeo-mobile

The next version of Mapeo mobile
GNU General Public License v3.0
5 stars 1 forks source link

chore: only send screen width & height in metrics report #394

Closed EvanHahn closed 4 months ago

EvanHahn commented 4 months ago

Metrics reports include screen dimensions (width & height). If the provided screen object has additional properties, we want to ignore them.

This will likely be the case for us, because we're probably going to use Dimensions.get which returns an object with extra properties.

This change filters those out and only keeps the provided width and height.