Skip to main content

Migration guide to Support SDK

Important
Helpshift’s Legacy SDKs (SDK Version <=7.x.x) reached their end of life on 31 Dec 2022, and end of support on 31 March 2023. Please upgrade to the Latest SDKif you haven't already.

Migration guide to Support SDK

Note

If you are upgrading to Support SDK then we highly recommend you to upgrade to our latest version

Migrating to Support SDK

Remove Campaigns code

Please remove all the code related to Campaigns features that you might have added. When you replace the Campaigns SDK dependency in your app's build.gradle file, you might get some compilation errors. These errors will be related to campaigns code and can be removed safely.

Update gradle dependency to Support only artifact

  • Use the Support build artifact id com.helpshift:android-helpshift-aar
  • Use the SDK version as per your requirements.
    dependencies {
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.helpshift:android-helpshift-aar:7.9.2'
}

Fix the SDK initialization code

Initialize the SDK with Support.getInstance() instead of All.getInstance()

    // Please remove the following code for SDK initialization

Core.init(All.getInstance());

// Please use the following code to initialize the SDK

Core.init(Support.getInstance());