Skip to content

Commit

Permalink
- A new key is set for FutureBuilder if the key param is null on the …
Browse files Browse the repository at this point in the history
…`readAndBuild` method

- CHANGELOG.md created
- Askless Flutter Client version updated
  • Loading branch information
RodrigoBertotti committed Mar 15, 2021
1 parent 791a021 commit 7a6c63e
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## 1.0.1

- Fix: prevent old connections data from getting in the way of the last successful connection attempt
- Fix on removing old messages received from server
- Gifs added to examples
- Allowing not encrypted connections on Android & IOS on examples
- Flutter 2.0 examples updates
- Dependencies upgraded
- Readme updated: How to use a not encrypted connection on a test environment
- `readAndBuild` and `listenAndBuild` methods: a new key is set for StreamBuilder/FutureBuilder if the key param is null
- Showing the request error response on logs

## 1.0.0

- Project release
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ pubspec.yaml:
sdk: flutter
# Add this line:
askless: ^1.0.0
<!--- TODO onupdate: -->
askless: ^1.0.1

4 - Import the package

Expand Down
5 changes: 3 additions & 2 deletions README_PORTUGUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ pubspec.yaml:
sdk: flutter
# Adicione essa linha:
askless: ^1.0.0
<!--- TODO onupdate: -->
askless: ^1.0.1

4 - Importe
4 - Importe

import 'package:askless/askless.dart';

Expand Down
4 changes: 2 additions & 2 deletions lib/src/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ const LISTEN_PREFIX = 'LIS-';
const CLIENT_GENERATED_ID_PREFIX = 'CLIENT_GENERATED_ID-';

//TODO onupdate:
const CLIENT_LIBRARY_VERSION_NAME = '1.0.0';
const CLIENT_LIBRARY_VERSION_CODE = 1;
const CLIENT_LIBRARY_VERSION_NAME = '1.0.1';
const CLIENT_LIBRARY_VERSION_CODE = 2;
2 changes: 1 addition & 1 deletion lib/src/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ class AsklessClient {
clientRequestId: null, //TODO: usar clientRequestId real
output: initialData
),
key: key,
key: key ?? new GlobalKey(),
);
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: askless
description: Flutter client of Askless framework, which facilitates building realtime servers for JavaScript and Flutter Apps

version: 1.0.0 # TODO onupdate:
version: 1.0.1 # TODO onupdate:

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down

0 comments on commit 7a6c63e

Please sign in to comment.