diff --git a/CHANGELOG.md b/CHANGELOG.md index 84685ee..3aee646 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Chirp SDK Flutter -## 0.0.1 - beta +## 0.1.0 - 22/01/19 + +- Bringing out of experimental status + +## 0.0.1 - 22/01/19 - Initial release using - iOS v3.4.3 diff --git a/README.md b/README.md index a2b2a04..224493d 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,6 @@ Sign up at the Chirp [Developer Hub](https://developers.chirp.io/sign-up) Copy and paste your Chirp app key, secret and chosen configuration into the [example application](https://github.com/chirp/chirp-connect-flutter/tree/master/chirpsdk/example) -## Configuration - -It is recommended to use the example code as a template, but in short, configuring the -SDK is as simple as initialising with your credentials and chosen configuration, and starting -the audio processing. - await ChirpSDK.init(_appKey, _appSecret); await ChirpSDK.setConfig(_appConfig); await ChirpSDK.start(); diff --git a/lib/chirpsdk.dart b/lib/chirpsdk.dart index 6e920b4..4027cae 100644 --- a/lib/chirpsdk.dart +++ b/lib/chirpsdk.dart @@ -14,12 +14,18 @@ enum ChirpState { class ChirpSDK { static const MethodChannel _methods = const MethodChannel('chirp.io/methods'); - static const EventChannel _stateEvents = const EventChannel('chirp.io/events/state'); - static const EventChannel _sendingEvents = const EventChannel('chirp.io/events/sending'); - static const EventChannel _sentEvents = const EventChannel('chirp.io/events/sent'); - static const EventChannel _receivingEvents = const EventChannel('chirp.io/events/receiving'); - static const EventChannel _receivedEvents = const EventChannel('chirp.io/events/received'); - static const EventChannel _errorEvents = const EventChannel('chirp.io/events/errors'); + static const EventChannel _stateEvents = + const EventChannel('chirp.io/events/state'); + static const EventChannel _sendingEvents = + const EventChannel('chirp.io/events/sending'); + static const EventChannel _sentEvents = + const EventChannel('chirp.io/events/sent'); + static const EventChannel _receivingEvents = + const EventChannel('chirp.io/events/receiving'); + static const EventChannel _receivedEvents = + const EventChannel('chirp.io/events/received'); + static const EventChannel _errorEvents = + const EventChannel('chirp.io/events/errors'); /// Initialise the ChirpSDK /// @@ -28,7 +34,7 @@ class ChirpSDK { /// /// [1]: https://developers.chirp.io static Future init(String key, String secret) async { - var parameters = { 'key': key, 'secret': secret }; + var parameters = {'key': key, 'secret': secret}; await _methods.invokeMethod('init', new Map.from(parameters)); } @@ -140,7 +146,7 @@ class ChirpSDK { static ChirpStateEvent _stateEvent(dynamic map) { if (map is Map) { return new ChirpStateEvent(ChirpState.values[map['previous']], - ChirpState.values[map['current']]); + ChirpState.values[map['current']]); } return null; } diff --git a/pubspec.yaml b/pubspec.yaml index 864aa55..c999626 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ name: chirpsdk -description: Send and receive data using sound -version: 0.0.1 +version: 0.1.0 +description: Chirp enables your apps to send and receive information using sound. author: Asio Ltd -homepage: https://developers.chirp.io +homepage: https://github.com/chirp/chirp-connect-flutter environment: sdk: ">=2.0.0-dev.68.0 <3.0.0"