AFNetworking Integration

How to use the DataDome SDK with AFNetworking

This SDK is deprecated

Version License Platform

AFNetworking is an old third party library. It is no longer maintained by the community. We do not recommend using it.

We forked AFNetworking to adapt it to DataDomeSDK.
To install DataDomeAFNetworking, use the following statement.

pod 'DataDomeAFNetworking', '~> 4.0.1'

You should use the above dependency instead of AFNetworking. The library contains the same source code as AFNetworking with an adaptation to make it work with DataDome.
Replace your import statements as the following.

// AFNetworking import statement to be replaced
#import <AFNetworking/AFNetworking.h>
// The new import statement to be used
@import DataDomeAFNetworking;

No other changes are required to keep your code base working with AFNetworking and DataDome.