From 85f713c8c721dc8fa01e3b04bc87a377575f22be Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Sat, 27 Jun 2020 11:52:47 +0200 Subject: [PATCH] Add missing `@JsonClass(generateAdapter = false)` for Proguard --- .../android/api/session/room/model/call/CallHangupContent.kt | 1 + .../matrix/android/api/session/room/model/call/SdpType.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/call/CallHangupContent.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/call/CallHangupContent.kt index 1e50bc247e..1cb379b508 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/call/CallHangupContent.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/call/CallHangupContent.kt @@ -40,6 +40,7 @@ data class CallHangupContent( */ @Json(name = "reason") val reason: Reason? = null ) { + @JsonClass(generateAdapter = false) enum class Reason { @Json(name = "ice_failed") ICE_FAILED, diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/call/SdpType.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/call/SdpType.kt index 17c6d9a89f..799792c8a3 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/call/SdpType.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/call/SdpType.kt @@ -17,7 +17,9 @@ package im.vector.matrix.android.api.session.room.model.call import com.squareup.moshi.Json +import com.squareup.moshi.JsonClass +@JsonClass(generateAdapter = false) enum class SdpType { @Json(name = "offer") OFFER,