# 1. Including the SDK

## Adding the Gradle Dependency

Add the Sentiance repository to your project (top-level) **build.gradle** file.

```groovy
allprojects {
  repositories {
    ...
    maven {
      url "https://repository.sentiance.com"
    }
  }
}
```

In the **build.gradle** file of your app module, add the following line to the dependencies section. Replace the version `x.y.+` with the latest one from [here](https://docs.sentiance.com/important-topics/sdk/changelog/android).

```groovy
implementation (platform('com.sentiance:sdk-bom:x.y.+'))
implementation ('com.sentiance:sdk')
```

Your app should now build with the Sentiance SDK as a dependency.

## Proguard Rules

The Sentiance SDK includes all necessary Proguard rules. These are automatically applied to your app during the build process.

### DexGuard

If you are using DexGuard, please add the following rule, to prevent SDK manifest metadata from being removed.

```
-keepresourcexmlelements manifest/application/meta-data@name=com.sentiance.sdk.**
```
