https icon indicating copy to clipboard operation
https copied to clipboard

Migration to a new iOS http client

Open CatchABus opened this issue 1 year ago • 3 comments

Apple has become strict with privacy and AFNetworking seems to have an impact on it. Users who use that client will be warned by Apple Store:

ITMS-91061: Missing privacy manifest - Your app includes “Frameworks/AFNetworking.framework/AFNetworking”, which includes AFNetworking, an SDK that was identified in the documentation as a privacy-impacting third-party SDK. Starting November 12, 2024, if a new app includes a privacy-impacting SDK, or an app update adds a new privacy-impacting SDK, the SDK must include a privacy manifest file. Please contact the provider of the SDK that includes this file to get an updated SDK version with a privacy manifest. For more details about this policy, including a list of SDKs that are required to include signatures and manifests, visit: https://developer.apple.com/support/third-party-SDK-requirements.

The library itself has been deprecated and suggests migrating to Alamofire swift library: https://github.com/Alamofire/Alamofire image

This is worrying as Apple Store could reject app submissions for such a reason.

CatchABus avatar Sep 10 '24 21:09 CatchABus

That s bad news. I always wanted to.do the migration but it is quite a lot of work :(

farfromrefug avatar Sep 11 '24 06:09 farfromrefug

That s bad news. I always wanted to.do the migration but it is quite a lot of work :(

I see and it's unfortunate that it's written in Swift too. Would we be able to support what AFNNetworking offers by using existing APIs like URLSession?

CatchABus avatar Sep 11 '24 08:09 CatchABus

That s bad news. I always wanted to.do the migration but it is quite a lot of work :(

I see and it's unfortunate that it's written in Swift too. Would we be able to support what AFNNetworking offers by using existing APIs like URLSession?

It would be tough. As for the swift issue not the biggest of deal. We can easily write a swift wrapper which expose itself to objc. Wouldnt be too many methods. My issue is more about finding the corresponding APIs to use with alamofire. I dont find the doc easy to go through

farfromrefug avatar Sep 11 '24 08:09 farfromrefug