Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed R8 missing classes #179

Merged
merged 3 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/consumer-proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@com.google.gson.annotations.SerializedName <fields>;
}

-keepclassmembers enum com.wultra.android.mtokensdk.api.*.** { *; }
-keep, allowobfuscation class com.wultra.android.mtokensdk.api.** { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,25 @@

package com.wultra.android.mtokensdk.api.inbox.model

import com.google.gson.annotations.SerializedName

/**
* Request payload describing which page in messages list should be received.
*/
data class GetList(
/**
* Page number.
*/
@SerializedName("page")
val page: Int,
/**
* Page size.
*/
@SerializedName("size")
val size: Int,
/**
* Specify whether only unread messages should be received.
*/
@SerializedName("onlyUnread")
val onlyUnread: Boolean
)
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@

package com.wultra.android.mtokensdk.api.inbox.model

import com.google.gson.annotations.SerializedName

/**
* Request payload describing which message detail should be received.
*/
data class GetMessageDetail(
/**
* Message's identifier.
*/
@SerializedName("id")
val id: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@

package com.wultra.android.mtokensdk.api.inbox.model

import com.google.gson.annotations.SerializedName

/**
* Request payload describing which message should be set as read.
*/
data class SetMessageRead(
/**
* Message's identifier.
*/
@SerializedName("id")
val id: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@

package com.wultra.android.mtokensdk.inbox

import com.google.gson.annotations.SerializedName

/**
* Object contains information about unread messages in inbox.
*/
data class InboxCount(
/**
* Number of unread messages in inbox.
*/
@SerializedName("countUnread")
val countUnread: Int
)
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.wultra.android.mtokensdk.inbox

import com.google.gson.annotations.SerializedName
import java.util.Date

/**
Expand All @@ -25,26 +26,32 @@ data class InboxMessage(
/**
* Message's identifier.
*/
@SerializedName("id")
val id: String,
/**
* Message's subject.
*/
@SerializedName("subject")
val subject: String,
/**
* Message's summary. It typically contains a reduced information from message's body,
* with no additional formatting.
*/
@SerializedName("summary")
val summary: String,
/**
* Message body's content type.
*/
@SerializedName("type")
val type: InboxContentType,
/**
* If `true`, then user already read the message.
*/
@SerializedName("read")
val read: Boolean,
/**
* Date and time when the message was created.
*/
@SerializedName("timestampCreated")
val timestampCreated: Date
)
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,35 @@

package com.wultra.android.mtokensdk.inbox

import com.google.gson.annotations.SerializedName
import java.util.Date

/**
* Class containing message detail.
*/
data class InboxMessageDetail(
/** Message's identifier. */
@SerializedName("id")
val id: String,
/** Message's subject. */
@SerializedName("subject")
val subject: String,
/**
* Message's summary. It typically contains a reduced information from message's body,
* with no additional formatting.
*/
@SerializedName("summary")
val summary: String,
/** Message's body. */
@SerializedName("body")
val body: String,
/** Message body's content type. */
@SerializedName("type")
val type: InboxContentType,
/** If `true`, then user already read the message. */
@SerializedName("read")
val read: Boolean,
/** Date and time when the message was created. */
@SerializedName("timestampCreated")
val timestampCreated: Date
)
Loading