Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

Commit

Permalink
Updating version
Browse files Browse the repository at this point in the history
  • Loading branch information
joextodd committed Jan 22, 2019
1 parent 1aa46b4 commit d6f25a7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
6 changes: 5 additions & 1 deletion 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
Expand Down
6 changes: 0 additions & 6 deletions README.md
Expand Up @@ -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();
Expand Down
22 changes: 14 additions & 8 deletions lib/chirpsdk.dart
Expand Up @@ -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
///
Expand All @@ -28,7 +34,7 @@ class ChirpSDK {
///
/// [1]: https://developers.chirp.io
static Future<void> 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));
}

Expand Down Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions 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 <developers@chirp.io>
homepage: https://developers.chirp.io
homepage: https://github.com/chirp/chirp-connect-flutter

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
Expand Down

0 comments on commit d6f25a7

Please sign in to comment.