Installing Version Catalog

Starting Gradle version 7.4, Version Catalog was introduced to simplify and share dependencies and versions. We have published a version catalog to ease out dependency and version management while integrating the various MoEngage SDKs.

When using a version catalog one need not worry about updating multiple versions or maintaining compatibility. To update the SDKs simply update the catalog version and everything else will be handled under the hood.

Enable Catalog and Add MoEngage Catalog



Version Catalog feature is made stable in Gradle version 7.4.

If you are using Gradle version below 7.4, the Version Catalog feature has to be explicitly enabled in the settings.gradle(.kts) file. Once the feature is enabled add the MoEngage catalog to the project as shown below.

//enable version catalog feature, required only if you are using gradle version below 7.4
// adding moengage catalog
dependencyResolutionManagement {
    repositories {
    versionCatalogs {
        create("moengage") {

replace $version with the latest catalog version.
Latest version can be found in the maven central badge above.

Add dependency from the catalog to the application

Once the catalog is added to the project you can add the required SDK dependencies as shown below.

dependencies {
    // core moengage features
    // optionally add this to use the cards feature
    // optionally add this if you are using the core module of cards
     // optionally add this to use the geofence feature
    // optionally add this to use the Huaewi PushKit feature
    // optionally add this to use the Push Amp Plus feature
    // optionally add this to use the Inbox UI feature
    // optionally add this if you are using the core module of Inbox
    // optionally add this to use the Push Templates feature
    // optionally add this to use the Device Trigger feature
    // optionally add this to use the Push Amp feature
    // optionally add this to use the InApp feature


Impact of using Version Catalog

Though a catalog contains metadata of all the SDKs published by MoEngage, only the ones added to the application will be bundled in the application and will not have any additional impact on the APK size.

Why use Version Catalog?

  • When using the version catalog, you do not have to manage versions of all the dependencies/artifacts from MoEngage.
  • When using the version catalog you would avoid issues around incompatible version(s).
Was this article helpful?
1 out of 8 found this helpful

How can we improve this article?