Skip to content

Commit e7c01f8

Browse files
Prepare v2.1.1 (#98)
* Prepare v2.1.1 * Remove useless comments * Bump to version 2.1.1 --------- Co-authored-by: Pusher CI <[email protected]>
1 parent e520858 commit e7c01f8

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.1.1
4+
5+
* [CHANGED] Change call of activity.runOnUiThread to invoke methodChannel
6+
37
## 2.1.0
48

59
* [CHANGED] Allow reinitialization of the pusher singleton

android/src/main/kotlin/com/pusher/channels_flutter/PusherChannelsFlutterPlugin.kt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
214214
}
215215

216216
override fun onSubscriptionSucceeded(channelName: String) {
217-
// For presence channels we wait for the onUsersInformationReceived event.
218217
if (!channelName.startsWith("presence-")) {
219218
callback(
220219
"onEvent", mapOf(
@@ -239,17 +238,16 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
239238
}
240239

241240
override fun onAuthenticationFailure(message: String, e: Exception) {
242-
// Log.e(TAG, "Authentication failure due to $message, exception was $e")
243241
callback(
244242
"onSubscriptionError", mapOf(
245243
"message" to message,
246244
"error" to e.toString()
247245
)
248246
)
249-
} // Other ChannelEventListener methods
250-
247+
}
248+
249+
// Other ChannelEventListener methods
251250
override fun onUsersInformationReceived(channelName: String?, users: MutableSet<User>?) {
252-
// Log.i(TAG, "Users received: $users")
253251
val gson = Gson()
254252
val channel = pusher!!.getPresenceChannel(channelName)
255253
val hash = mutableMapOf<String, Any?>()
@@ -275,7 +273,6 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
275273
}
276274

277275
override fun onDecryptionFailure(event: String?, reason: String?) {
278-
// Log.e(TAG, "Decryption failure due to $event, exception was $reason")
279276
callback(
280277
"onDecryptionFailure", mapOf(
281278
"event" to event,
@@ -285,7 +282,6 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
285282
}
286283

287284
override fun userSubscribed(channelName: String, user: User) {
288-
// Log.i(TAG, "A new user joined channel [$channelName]: ${user.id}, ${user.info}")
289285
callback(
290286
"onMemberAdded", mapOf(
291287
"channelName" to channelName,
@@ -298,7 +294,6 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
298294
}
299295

300296
override fun userUnsubscribed(channelName: String, user: User) {
301-
// Log.i(TAG, "A user left channel [$channelName]: ${user.id}, ${user.info}")
302297
callback(
303298
"onMemberRemoved", mapOf(
304299
"channelName" to channelName,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pusher_channels_flutter
22
description: Pusher Channels Flutter Plugin
3-
version: 2.1.0
3+
version: 2.1.1
44
homepage: https://github.com/pusher/pusher-channels-flutter
55
repository: https://github.com/pusher/pusher-channels-flutter
66
issue_tracker: https://github.com/pusher/pusher-channels-flutter/issues

0 commit comments

Comments
 (0)