diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f112b713..37975d799 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.21 +LiveQuery fix +Logout fix + ## 1.0.20 ACL now working emailVerified diff --git a/README.md b/README.md index 2f080a3e1..97d209623 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Want to get involved? Join our Slack channel and help out! (http://flutter-parse To install, either add to your pubspec.yaml ```yml dependencies: - parse_server_sdk: ^1.0.20 + parse_server_sdk: ^1.0.21 ``` or clone this repository and add to your project. As this is an early development with multiple contributors, it is probably best to download/clone and keep updating as an when a new feature is added. diff --git a/example/lib/ui/main.dart b/example/lib/ui/main.dart index 0e127bd16..d1bbf98aa 100644 --- a/example/lib/ui/main.dart +++ b/example/lib/ui/main.dart @@ -64,21 +64,21 @@ class _MyAppState extends State { Future runTestQueries() async { // Basic repository example - await repositoryAddUser(); - await repositoryAddItems(); - await repositoryGetAllItems(); + //await repositoryAddUser(); + //await repositoryAddItems(); + //await repositoryGetAllItems(); //Basic usage - createItem(); - getAllItems(); - getAllItemsByName(); - getSingleItem(); - getConfigs(); - query(); + //createItem(); + //getAllItems(); + //getAllItemsByName(); + //getSingleItem(); + //getConfigs(); + //query(); initUser(); - function(); - functionWithParameters(); - test(); + //function(); + //functionWithParameters(); + // test(); } Future test() async { @@ -225,6 +225,8 @@ class _MyAppState extends State { user = response.result; } + user = await ParseUser.currentUser(); + user = ParseUser('TestFlutter', 'TestPassword123', 'phill.wiggins@gmail.com'); response = await user.login(); diff --git a/lib/src/base/parse_constants.dart b/lib/src/base/parse_constants.dart index 0907c1353..2bf12e226 100644 --- a/lib/src/base/parse_constants.dart +++ b/lib/src/base/parse_constants.dart @@ -1,7 +1,7 @@ part of flutter_parse_sdk; // Library -const String keySdkVersion = '1.0.19'; +const String keySdkVersion = '1.0.21'; const String keyLibraryName = 'Flutter Parse SDK'; // End Points diff --git a/lib/src/network/parse_live_query.dart b/lib/src/network/parse_live_query.dart index 066920f8b..71a5d7cdc 100644 --- a/lib/src/network/parse_live_query.dart +++ b/lib/src/network/parse_live_query.dart @@ -98,7 +98,7 @@ class LiveQuery { if (_debug) { print('$_printConstLiveQuery: Done'); } - }, onError: (Error error) { + }, onError: (error) { if (_debug) { print( '$_printConstLiveQuery: Error: ${error.runtimeType.toString()}'); diff --git a/lib/src/objects/parse_user.dart b/lib/src/objects/parse_user.dart index c4cb76f4d..825bd8fd2 100644 --- a/lib/src/objects/parse_user.dart +++ b/lib/src/objects/parse_user.dart @@ -363,7 +363,8 @@ class ParseUser extends ParseObject implements ParseCloneable { type == ParseApiRQ.getAll || type == ParseApiRQ.destroy || type == ParseApiRQ.requestPasswordReset || - type == ParseApiRQ.verificationEmailRequest) { + type == ParseApiRQ.verificationEmailRequest || + type == ParseApiRQ.logout) { return parseResponse; } else { final ParseUser user = parseResponse.result; diff --git a/pubspec.yaml b/pubspec.yaml index 2d8af20f5..178d36fe9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: parse_server_sdk description: Flutter plugin for Parse Server, (https://parseplatform.org), (https://back4app.com) -version: 1.0.20 +version: 1.0.21 homepage: https://github.com/phillwiggins/flutter_parse_sdk author: PhillWiggins