Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Finalizing for v1.0.2 (#6)
Browse files Browse the repository at this point in the history
* fixed code

* Fixed some lines

* Updated Changelog

* Updated pubspec.yml

* Updated version
  • Loading branch information
PatilShreyas committed Feb 21, 2020
1 parent 8602a3c commit 79fbfa5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
## [1.0.1] - 2020/02/21

* Fixed code in `LiveStream` package.

## [1.0.2] - 2020/02/21

* Removed unnecessary code from package.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Add below dependency in [`pubspec.yaml`](pubspec.yaml).

```yml
dependencies:
livestream: ^1.0.1
livestream: ^1.0.2
```

### Initialize `LiveStream` Instance
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.0"
version: "1.0.1"
meta:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions lib/livestream.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class _DataStore {
static _DataStore _instance;

// Map instance to store data values with data stream.
HashMap<String, _DataItem> _mDataItemsMap = new HashMap();
HashMap<String, _DataItem> _mDataItemsMap = HashMap();

// Sets/Adds the new value to the given key.
void setValue(String key, var value) {
Expand Down Expand Up @@ -69,7 +69,7 @@ class _DataStore {
// Check if callback functions exists or not.
if (callbacks == null) {
// If it's null then create new List.
callbacks = new List();
callbacks = List();

// Set callback functions list to data item.
item.callbacks = callbacks;
Expand All @@ -95,7 +95,7 @@ class _DataStore {

// Returns singleton instance of _DataStore
static _DataStore getInstance() {
_instance ??= new _DataStore();
_instance ??= _DataStore();
return _instance;
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: livestream
description: LiveStream is a simple class which makes communication easy among different modules of your application.
version: 1.0.1
version: 1.0.2
homepage: https://github.com/PatilShreyas/LiveStream-Flutter

environment:
Expand Down

0 comments on commit 79fbfa5

Please sign in to comment.