Skip to main content

Clevertap SDK Upgrade

ยท 2 min read
Achyuth Nag
Android Developer

Due to deprecation of CleverTap SDK v4.3.0, which is used in older versions of Nuclei SDK, Partner app may not be eligible for publishing on the Play Store, as it no longer meets the Play Console policy requirements.


๐Ÿ”ง Impacted Versionโ€‹

  • Nuclei SDK version 9.1.0 and below.

๐Ÿ” Option 1: Upgrade to Nuclei SDK v9.1.1 (Preferred)โ€‹

  • The latest version 9.1.1 includes an updated CleverTap SDK and complies with all Play Store policies.
  • No additional configuration is needed.

Please refer to Android Upgrade Document.

This is the recommended and future-safe solution.


๐Ÿ”ฅ Option 2: Use Hotfix with Exclusion + Manual CleverTap SDKโ€‹

If you cannot upgrade immediately, you can exclude the deprecated CleverTap version and add the supported version manually.

a. Exclude the Deprecated CleverTap SDK from Nuclei Modulesโ€‹

When including Nuclei modules in your appโ€™s build.gradle, explicitly exclude the older CleverTap version like this:

eg.
// Nuclei Bank Provider Module
implementation ("com.nuclei.sdk:provider-bank:$libraryVersion") {
exclude group: "com.clevertap.android", module: "clevertap-android-sdk"
}

// Nuclei Recharge Module
implementation ("com.nuclei.sdk:recharge:$libraryVersion") {
exclude group: "com.clevertap.android", module: "clevertap-android-sdk"
}
etc.

๐Ÿ” This ensures that the deprecated 4.3.0 version bundled within the Nuclei SDK does not get added to your app's dependency tree.


b. Manually Add the Updated CleverTap Versionโ€‹

Now include the version of CleverTap (e.g., 4.6.6) in your app dependencies:

// Add the latest or required CleverTap version
implementation "com.clevertap.android:clevertap-android-sdk:4.6.6"

c. Sync and Checkโ€‹

Sync gradle and check in external libraries for the version of Clevertap included.

Only version 4.6.6 should be present


d. Testโ€‹

Test the happy flow of the Nuclei categories.

Note: This code should be reverted once the partner upgrades Nuclei SDK above version 9.1.1.