Upgrading to SDK API V2.5.3.x

Remove old SDK

  1. Remove the .a and the header file from the project.
  2. Make sure the files were not copied into the project library:
    • Click on the project in Xcode and select “show in Finder”.
    • If the old SDK (.a and header files) exist there please delete them as well)
  3. Delete the #import AppsFlyer.h line from your appDelegate file.
  4. Clean and build your project and it should throw few errors.

Import new SDK

  1. Drag both the library and the header file into the project
  2. Import AppsFlyerTracker.h file
  3. In your "didFinishLaunchingWithOptions" add the following lines:
    • [AppsFlyerTracker sharedTracker].appsFlyerDevKey = @"Dev_Key";
    • [AppsFlyerTracker sharedTracker].appleAppID = @"App_ID";
  4. Replace the app open events API (located at "applicationDidBecomeActive"):

    [AppsFlyer notifyAppID:@"App_ID;Dev_Key"]; with [[AppsFlyerTracker sharedTracker] trackAppLaunch];

  5. Replace the in-app events API:

    [AppsFlyer notifyAppID:@"App_ID;Dev_Key"]; with [[AppsFlyerTracker sharedTracker] trackEvent:@"" withValue:@""];

Was this article helpful?