Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chinloyal committed Sep 1, 2021
1 parent 5a31def commit 19d5bd6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
.pub/

build/
.idea/
.idea/
.fvm/**
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.0 - August 31, 2021

* Upgraded to null safety [@nizwar](https://github.com/nizwar)

## 1.1.3 - January 24, 2021
* BUGFIX: Binding to channel events cancels calls to onConnectionStateChange
* Added a Stream Handler contract to allow multiple classes to listen to the same event channel
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Add to your pubspec.yaml

```yaml
dependencies:
pusher_client: ^1.1.3
pusher_client: ^2.0.0
```
## Configuration
Expand Down
10 changes: 5 additions & 5 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,33 +69,33 @@ class _MyAppState extends State<MyApp> {
body: Center(
child: Column(
children: [
RaisedButton(
ElevatedButton(
child: Text('Unsubscribe Private Orders'),
onPressed: () {
pusher.unsubscribe('private-orders');
},
),
RaisedButton(
ElevatedButton(
child: Text('Unbind Status Update'),
onPressed: () {
channel.unbind('status-update');
},
),
RaisedButton(
ElevatedButton(
child: Text('Unbind Order Filled'),
onPressed: () {
channel.unbind('order-filled');
},
),
RaisedButton(
ElevatedButton(
child: Text('Bind Status Update'),
onPressed: () {
channel.bind('status-update', (PusherEvent event) {
log("Status Update Event" + event.data.toString());
});
},
),
RaisedButton(
ElevatedButton(
child: Text('Trigger Client Typing'),
onPressed: () {
channel.trigger('client-istyping', {'name': 'Bob'});
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.1.4"
version: "2.0.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: pusher_client
description: |
A Pusher Channels client plugin for Flutter targeting Android and iOS. It
wraps pusher-websocket-java v2.2.5 and pusher-websocket-swift v8.0.0.
version: 1.1.4
version: 2.0.0
homepage: https://github.com/chinloyal/pusher_client
documentation: https://github.com/chinloyal/pusher_client/blob/master/README.md

Expand Down

0 comments on commit 19d5bd6

Please sign in to comment.