This repository contains the Leanplum integration for the mParticle Android SDK.
-
The Leanplum Kit requires that you add Leanplum's Maven server to your buildscript:
repositories { maven { url "https://www.leanplum.com/leanplum-sdks/" } ... }
-
Add the kit dependency to your app's build.gradle:
dependencies { implementation 'com.mparticle:android-leanplum-kit:5+' }
-
Follow the mParticle Android SDK quick-start, then rebuild and launch your app, and verify that you see
"Leanplum detected"
in the output ofadb logcat
. -
Reference mParticle's integration docs below to enable the integration.
Leanplum is deprecating GCM support, but it is still available. While we recommend migrating to FCM, if your application requires GCM, take the following steps:
-
Exclude the FCM transient dependency in the leanplum kit
dependencies { implementation ('com.mparticle:android-leanplum-kit:REPLACE-ME') { exclude module: 'leanplum-fcm' } implementation 'com.leanplum:leanplum-gcm:4.1.1' }