Support Home > SDK Integration > SDK – KochavaTracker > Adobe Air Migration Guide

Adobe Air Migration Guide

Migration Guide


A migration guide for users of the KochavaTracker Adobe AIR SDK released prior to 2017, to help understand the changes and make the transition.

Overview

Version 2.0.0 is a comprehensive rewrite of the Kochava Adobe AIR SDK. Method names were changed, the parameters for the initialization of the tracker were changed to use a map object, the native layers for iOS and Android were themselves rewritten, along with other changes.


Main Class Name

The name of the main class changed.

 

Old:

 

New:

 

To migrate from an older version of the SDK, you should replace any reference to the old main class with the new main class.

Main Class Singleton Getter Method

The name of the singleton getter method for the main class changed.

 

Old:

 

New:

 

To migrate from an older version of the SDK, you should replace any reference to the old singleton getter method with the new singleton getter method.

Status Event Class Name

The name of the status event class changed.

 

Old

 

New:

 

NOTE: This status event class is not related to the current KochavaEvent class, and it was renamed to avoid confusion. To migrate from an older version of the SDK, you should replace any reference to the old status event class with the new status event class. If you did not add an event listener then you do not need to do anything with this. For more information, see class KochavaTrackerStatusEvent.

Status Event Type Constants

The names of the KochavaTrackerStatusEvent type constants have changed.

 

Old:

 

New:

 

To migrate from an older version of the SDK, you should replace the old constants with the new constants. For more information, see KochavaTrackerStatusEvent.

Tracker Initialization

The basic approach to initialize the tracker was replaced.

 

Old:

 

New:

 

To migrate from an older version of the SDK, you should replace your old initialization code with code that uses the newer approach.

 

NOTE: New code example provided sets the keys for log level and retrieving attribution to show the migration path for these keys, but these are not needed in most installations. If you do not want to select a specific log level or retrieve attribution, it is recommended that you do not set these parameters and allow the SDK to recognize that the defaults should be used.

Post-Install Events (Info String)

The method for sending post-install events with a name and a string of information was changed.

 

Old:

 

New:

 

To migrate from an older version of the SDK, you should replace the old method with the new method. For more information, see instance method sendEventString(_:_:). Note that if you are passing a map object of information, there is now a convenience method provided for sending an info map object (see below).

Post-Install Events (Info Map Object)

The method for sending post-install events with a name and a map object has changed.

 

Old:

 

New:

 

To migrate from an older version of the SDK, you should replace the old method with the new method. For more information, see instance method sendEventMapObject(_:_:).

 
 

Last Modified: Nov 16, 2017 at 5:00 pm