1.29.1 -> 1.30.0
Migrating your code
Setting Identity
fun setIdentity(context: Context, identity: Identity?):MutableStateFlow<Result<Unit>>suspend fun setIdentity(context: Context, identity: Identity): Result<Unit>
**Before:**
val identityFlow = ImsSdkManager.setIdentity(context, identity)
identityFlow.collect { result ->
when {
result.isSuccess -> // Handle success
result.isFailure -> // Handle failure
}
}
**After:**
// In a coroutine
val result = ImsSdkManager.setIdentity(context, identity)
when {
result.isSuccess -> // Handle success
result.isFailure -> // Handle failure, identity automatically cleared
}Clearing identity
Removed fields and methods
Last updated