segmentio / analytics-ios

The hassle-free way to integrate analytics into any iOS application.
https://segment.com/libraries/ios
MIT License
399 stars 334 forks source link

check for selector #1050

Closed sgarciaanato closed 1 year ago

sgarciaanato commented 1 year ago

What does this PR do?

Evaluate if payload responds to selectorseg_gzippedData before being called

Where should the reviewer start?

SEGHTTPClient.m L:106

How should this be manually tested?

No

Any background context you want to provide?

integrating analytics-ios with swift package manager doesn't access this selector, having this evaluation is a safe way of avoiding crashes

image

What are the relevant tickets?

Screenshots or screencasts (if UI/UX change)

Questions: