If I want to use a third party SDK or API in my iOS Application - and I want to avoid giving the companies that distribute and offer these SDKs & APIs 'too' much data, if you will, what is the best way to approach integrating their technology - an SDK or API?
When I call an API - what kind of information is that giving them versus using their SDK? To me, it seems SDKs collect far much more data than APIs.
I am deciding whether I want to implement the Giphy iOS SDK into my iOS Application - but I discovered Meta (Facebook) owns this company now and tried to hide their acquisition from the U.S. Government - which makes me not trust Facebook (and now Giphy) far more than I already didn't trust them... I understand Apple uses Giphy via iMessage on iOS / iPad OS but they do it via Bing Search.
My overarching question is - should I use a company's API or SDK if I want to relinquish as little data as possible and how could I do the same using both, for example - How could I implement an SDK in the most safest/secure way possible to where my iOS app indirectly utilizes the SDK -- such as by embedding the static library into an Xcode Project (Framework) then importing said framework into the actual App -- would this make it most secure if I want to use an SDK over an API in order to get X functionality?