# 1.32.0 -> 2.0.1

## Migrating your code

#### ImsTripManager.disableTripManager

**Before**

```kotlin
ImsTripManager.disableTripManager(context, deleteTripFiles = true) // or false
```

**After**

```kotlin
ImsTripManager.disableTripManager(context)
```

On logout, when you need a full user teardown and local data cleared, call **`ImsSdkManager.clearIdentity(context)`** from a coroutine. Use **`disableTripManager`** only to stop trip detection while keeping trip data for later when appropriate.

***

#### ImsTripManager.getCrashClient()

**New**

```kotlin
val client = ImsTripManager.getCrashClient()
client?.startListeningForCrashEvents(listener)
// …
client?.provideUserFeedback(feedback)
```

Handle **`null`** if Crash detection is unavailable. Checkout [Crash Detection Events](/crash-detection-events.md) for more details.

***

#### ImsSdkManager.Builder (initialization)

Remove these calls from your SDK setup chain:

* **`setSdkApiConfigEnvironment(...)`**
* **`setSdkApiConfigRegion(...)`**

If your app read **config URL or region** from the saved SDK configuration object, remove that usage

***

#### Identity

**Before**

```kotlin
Identity(apiKey = "…", externalReferenceID = "…")
```

**After**

```kotlin
Identity(externalReferenceID = "…")
```

Update construction, persistence, and any code that used **`apiKey`** on **`Identity`**.

***

#### ImsSdkManager.clearIdentity

**Before**

```kotlin
ImsSdkManager.clearIdentity(context)
```

**After** (must run in a coroutine)

```kotlin
lifecycleScope.launch {
    ImsSdkManager.clearIdentity(context)
}
```

Call on logout when the user should be fully signed out of the SDK. Any SDK API call made after invoking this method will fail.

***

#### AppMisuseManager

Remove calls to **`AppMisuseManager.enableAppMisuse`** and **`AppMisuseManager.disableAppMisuse`**.

***


---

# 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://sdk.ims.tech/migration-notes/android/1.32.0-greater-than-2.0.0.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.
