Skip to content

Commit

Permalink
🚀 4.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemilla committed Nov 18, 2024
1 parent ecc1f36 commit 1c00d92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ dependencyResolutionManagement {

```gradle
dependencies {
implementation 'com.github.trycourier:courier-android:4.6.4' // Groovy
implementation("com.github.trycourier:courier-android:4.6.4") // Gradle.kts
implementation 'com.github.trycourier:courier-android:4.6.5' // Groovy
implementation("com.github.trycourier:courier-android:4.6.5") // Gradle.kts
}
```

Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/courier/android/Courier.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Courier private constructor(val context: Context) : Application.ActivityLi
companion object {

// Core
private const val VERSION = "4.6.4"
private const val VERSION = "4.6.5"
var agent: CourierAgent = CourierAgent.NativeAndroid(VERSION)

// Push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,8 @@ var Courier.inboxPaginationLimit
val Courier.inboxData
get() = courierInboxData

fun Courier.getInboxMessages(feed: InboxMessageFeed): List<InboxMessage> {
return when (feed) {
InboxMessageFeed.FEED -> inboxData?.feed?.messages ?: emptyList()
InboxMessageFeed.ARCHIVE -> inboxData?.archived?.messages ?: emptyList()
}
}
val Courier.inboxMessages: List<InboxMessage> get() = inboxData?.feed?.messages ?: emptyList()
val Courier.archivedMessages: List<InboxMessage> get() = inboxData?.archived?.messages ?: emptyList()

/**
* Traditional Callbacks
Expand Down

0 comments on commit 1c00d92

Please sign in to comment.