Skip to content

Commit

Permalink
Bump Pubspec to 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alfianlosari committed May 22, 2023
1 parent 95d88c0 commit c0a9795
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 2 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,35 @@ You can try to Cast the `CourierEvent` to concrete implementation that provides
- MQTTConnectFailureEvent
- ...

### MQTT Chuck

This can be used to inspects all the outgoing or incoming packets for an underlying Courier MQTT connection. It intercepts all the packets, persisting them and providing a UI for accessing all the MQTT packets sent or received. It also provides multiple other features like search, share, and clear data.

#### Android MQTT Chuck

Uses the native Android Notification and launchable Activity Intent from the notification banner. You need to pass `enableMQTTChuck` flag as `true` to `CourierConfiguration` when initializing `CourierClient` instance. Make sure you also request permission notification and it is granted by the user.

<p align="center">
<img src="https://user-images.githubusercontent.com/6789991/238231835-9a9745a4-960a-4811-962a-42f4d01a7057.png"/>
</p>


#### iOS MQTT Chuck
Uses embedded flutter host native view, it uses SwiftUI under the hood and require minimum version of iOS 15. You can simply import `MQTTChuckView` and use it in your Flutter App.

```dart
import 'package:courier_dart_sdk/chuck/mqtt_chuck_view.dart';
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const MQTTChuckView()),
);
```

<p align="center">
<img src="https://user-images.githubusercontent.com/6789991/238231869-cf11a711-99b5-4437-a5e9-af21ef95b4a6.png"/>
</p>


## Contribution Guidelines

Expand Down
3 changes: 3 additions & 0 deletions courier_dart_sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.0.6
* Add MQTT Chuck Logs for mqtt packets.

## 0.0.5
* Add try catch when logging handle message using UTF-8 decode

Expand Down
2 changes: 1 addition & 1 deletion courier_dart_sdk/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: courier_dart_sdk
description: Flutter SDK for Courier
version: 0.0.5
version: 0.0.6
homepage: https://github.com/gojek/courier-flutter

environment:
Expand Down
27 changes: 27 additions & 0 deletions docs/docs/MQTT Chuck.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
MQTT Chuck can be used to inspects all the outgoing or incoming packets for an underlying Courier MQTT connection. It intercepts all the packets, persisting them and providing a UI for accessing all the MQTT packets sent or received. It also provides multiple other features like search, share, and clear data.

# Android MQTT Chuck

Uses the native Android Notification and launchable Activity Intent from the notification banner. You need to pass `enableMQTTChuck` flag as `true` to `CourierConfiguration` when initializing `CourierClient` instance. Make sure you also request permission notification and it is granted by the user.

<p align="center">
<img src="https://user-images.githubusercontent.com/6789991/238231835-9a9745a4-960a-4811-962a-42f4d01a7057.png"/>
</p>


# iOS MQTT Chuck
Uses embedded flutter host native view, it uses SwiftUI under the hood and require minimum version of iOS 15. You can simply import `MQTTChuckView` and use it in your Flutter App.

```dart
import 'package:courier_dart_sdk/chuck/mqtt_chuck_view.dart';
//...
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const MQTTChuckView()),
);
```

<p align="center">
<img src="https://user-images.githubusercontent.com/6789991/238231869-cf11a711-99b5-4437-a5e9-af21ef95b4a6.png"/>
</p>
3 changes: 2 additions & 1 deletion docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"Message QoS",
"Subscribe & Receive Message",
"Publish Message",
"Event Handling"
"Event Handling",
"MQTT Chuck"
],
},
{
Expand Down

0 comments on commit c0a9795

Please sign in to comment.