# SDK

## Android

### Step 1 <a href="#step-1" id="step-1"></a>

Add this line to `build.gradle` (app level)

```
dependencies {
// .. Your other dependencies
implementation("io.enable3.android.enable3androidsdk:Enable3AndroidSDK:1.0.50")
}
```

### Step 2 <a href="#step-3" id="step-3"></a>

Init Enable3 in your Application class or Activity class (with application context)

```
Enable3.init(applicationContext, "insert_user_token_here")
```

To get `user_token` your backend need to call [GET JWT](https://docs.enabl3.io/enabl3/tech/endpoints#api-v1-integration-user-operatoruserid-token) endpoint and send it into your app.

### Step 3 <a href="#step-4" id="step-4"></a>

To open Enable3 you should call

```
Enable3.open(context, StartAnimation.SlideFromLeft)
```

You can call this code from button onClickListener etc. Pass context and animation type if you need smooth opening. Available animation types:

```
sealed class StartAnimation {
    data object SlideFromLeft : StartAnimation()
    data object SlideFromRight : StartAnimation()
    data object SlideFromTop : StartAnimation()
    data object SlideFromBottom : StartAnimation()
    data object None : StartAnimation()
}
```

\
**🧾 Environment Versions**\
\
This section lists library and plugin versions used in the current **Enable3 Android SDK** build.\
Maintaining compatibility with these versions is crucial to ensure smooth integration, prevent dependency conflicts, and avoid build-time or runtime errors.

When integrating the SDK into your app:

* Use the same **Kotlin**, **Compose**, and **Android Gradle Plugin** versions for full compatibility.
* Other dependencies (like Retrofit, OkHttp, Hilt, Firebase, etc.) can use newer versions if they maintain backward compatibility.
* If your project already uses different versions, Gradle will typically resolve to the newest one, but you should verify that your build remains stable.

> ⚠️ Always align your Kotlin and Compose versions — mismatched versions are the most common cause of compilation issues.

| Library / Plugin                  | Version    |
| --------------------------------- | ---------- |
| Kotlin                            | 2.2.0      |
| Android Gradle Plugin (AGP)       | 8.13.0     |
| Compose BOM                       | 2025.06.01 |
| Compose Foundation / UI / Tooling | 1.8.3      |
| Navigation Compose                | 2.9.1      |
| Dagger                            | 2.56.2     |
| Coroutines                        | 1.10.2     |
| Retrofit                          | 3.0.0      |
| OkHttp                            | 5.1.0      |
| Coil Compose                      | 2.7.0      |

## iOS&#x20;

## &#x20;<a href="https://enable3.io/contact-us" class="button secondary" data-icon="rocket-launch">Contact Us to Learn More</a>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.enable3.io/enable3/tech/integration/sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
