Skip to content

Commit

Permalink
Add keep annotations on some more sealed classes
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvettefors committed May 31, 2024
1 parent 732bd4a commit 70dc26c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.swedbankpay.mobilesdk.nativepayments

import androidx.annotation.Keep
import com.swedbankpay.mobilesdk.nativepayments.api.model.response.ProblemDetails
import com.swedbankpay.mobilesdk.nativepayments.exposedmodel.AvailableInstrument
import com.swedbankpay.mobilesdk.nativepayments.exposedmodel.NativePaymentProblem
Expand All @@ -8,6 +9,7 @@ import com.swedbankpay.mobilesdk.nativepayments.exposedmodel.NativePaymentProble
* This class is exposed to the merchant app through live data.
* Will tell the state of the ongoing payment session
*/
@Keep
sealed class NativePaymentState {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.swedbankpay.mobilesdk.nativepayments.api.model

import androidx.annotation.Keep


@Keep
sealed class SwedbankPayAPIError {
object Unknown : SwedbankPayAPIError()
data class Error(val message: String? = null, val responseCode: Int? = null) :
Expand Down

0 comments on commit 70dc26c

Please sign in to comment.