-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e4c137
commit 826e81c
Showing
14 changed files
with
273 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
## [v5.1.1](https://github.com/pubnub/kotlin/releases/tag/v5.1.1) | ||
January 20 2021 | ||
## [v5.1.2](https://github.com/pubnub/kotlin/releases/tag/v5.1.2) | ||
March 9 2021 | ||
|
||
[Full Changelog](https://github.com/pubnub/kotlin/compare/v5.1.0...v5.1.1) | ||
[Full Changelog](https://github.com/pubnub/kotlin/compare/v5.1.1...v5.1.2) | ||
|
||
- File upload encryption fix. | ||
- Asynchronous file upload encryption fix. | ||
- Telemetry fix - removal of `putIfAbsent`. | ||
- In some specific timing conditions subscription loop could loose reference to one of the retrofit call and we would loose posibility to control it. In the meantime we'd start yet another subscription call. One of them is obviously not necessary Synchronization has been improved so it's no longer possible. | ||
- It was not possible to properly cancel the OkHttp connection when Google Security Provider (ProviderInstaller) is being used. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ plugins { | |
} | ||
|
||
group = 'com.pubnub' | ||
version = '5.1.0' | ||
version = '5.1.2' | ||
|
||
repositories { | ||
mavenCentral() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 31 additions & 27 deletions
58
src/main/kotlin/com/pubnub/api/builder/PubSubOperations.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,38 @@ | ||
package com.pubnub.api.builder | ||
|
||
// basic publish/subscribe class | ||
|
||
internal abstract class PubSubOperation( | ||
internal val channels: List<String> = emptyList(), | ||
internal val channelGroups: List<String> = emptyList() | ||
) | ||
internal sealed class PubSubOperation | ||
|
||
// concrete publish/subscribe cases | ||
internal data class SubscribeOperation( | ||
val channels: List<String> = emptyList(), | ||
val channelGroups: List<String> = emptyList(), | ||
val presenceEnabled: Boolean = false, | ||
val timetoken: Long = 0L | ||
) : PubSubOperation() | ||
|
||
internal data class UnsubscribeOperation( | ||
val channels: List<String> = emptyList(), | ||
val channelGroups: List<String> = emptyList() | ||
) : PubSubOperation() | ||
|
||
internal data class PresenceOperation( | ||
val channels: List<String> = emptyList(), | ||
val channelGroups: List<String> = emptyList(), | ||
val connected: Boolean = false | ||
) : PubSubOperation() | ||
|
||
internal class SubscribeOperation( | ||
channels: List<String> = emptyList(), | ||
channelGroups: List<String> = emptyList(), | ||
internal val presenceEnabled: Boolean = false, | ||
internal val timetoken: Long = 0L | ||
) : PubSubOperation(channels, channelGroups) | ||
|
||
internal class UnsubscribeOperation( | ||
channels: List<String> = emptyList(), | ||
channelGroups: List<String> = emptyList() | ||
) : PubSubOperation(channels, channelGroups) | ||
|
||
internal class PresenceOperation( | ||
channels: List<String> = emptyList(), | ||
channelGroups: List<String> = emptyList(), | ||
internal val connected: Boolean = false | ||
) : PubSubOperation(channels, channelGroups) | ||
|
||
internal class StateOperation( | ||
channels: List<String> = emptyList(), | ||
channelGroups: List<String> = emptyList(), | ||
internal data class StateOperation( | ||
val channels: List<String> = emptyList(), | ||
val channelGroups: List<String> = emptyList(), | ||
val state: Any? = null | ||
) : PubSubOperation(channels, channelGroups) | ||
) : PubSubOperation() | ||
|
||
internal data class TimetokenRegionOperation( | ||
val timetoken: Long = 0L, | ||
val region: String | ||
) : PubSubOperation() | ||
|
||
internal object ConnectedStatusAnnouncedOperation : PubSubOperation() | ||
|
||
internal object NoOpOperation : PubSubOperation() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.