Configure Marketing Cloud Engagement
Initialize the SDK
Runtime Toggles
Event Tracking
Handle URLs
Data Protection and Privacy
Changelog
Integrate the Salesforce Engagement SDK for Android and its dependencies into your app. The integration involves adding the SDK repository within dependencyResolutionManagement in settings.gradle, and the marketingcloudsdk dependency in your app’s module-level build.gradle file, as shown in this example. To use the latest SDK version, replace {currentVersion} in this code sample with the latest version number available on the SDK Releases page.
1dependencyResolutionManagement {
2 repositories {
3 maven { url "https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/repository" }
4 // other repositories
5 }
6}
7
8dependencies {
9 implementation 'com.salesforce.marketingcloud:marketingcloudsdk:{currentVersion}'
10}The SDK doesn’t declare the Google Play Services Location or AltBeacon libraries as required dependencies for Android apps. If your application requires these features, enable them.