Skip to content

Commit 12d0e0e

Browse files
authored
Release/1.0.21 (#163)
* Added repo example * Bugfix LiveQuery (#162) Bugfix LiveQuery * User logout fixed * v21 release
1 parent 49301c6 commit 12d0e0e

File tree

7 files changed

+24
-17
lines changed

7 files changed

+24
-17
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.21
2+
LiveQuery fix
3+
Logout fix
4+
15
## 1.0.20
26
ACL now working
37
emailVerified

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Want to get involved? Join our Slack channel and help out! (http://flutter-parse
1313
To install, either add to your pubspec.yaml
1414
```yml
1515
dependencies:
16-
parse_server_sdk: ^1.0.20
16+
parse_server_sdk: ^1.0.21
1717
```
1818
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.
1919

example/lib/ui/main.dart

+14-12
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,21 @@ class _MyAppState extends State<MyApp> {
6464

6565
Future<void> runTestQueries() async {
6666
// Basic repository example
67-
await repositoryAddUser();
68-
await repositoryAddItems();
69-
await repositoryGetAllItems();
67+
//await repositoryAddUser();
68+
//await repositoryAddItems();
69+
//await repositoryGetAllItems();
7070

7171
//Basic usage
72-
createItem();
73-
getAllItems();
74-
getAllItemsByName();
75-
getSingleItem();
76-
getConfigs();
77-
query();
72+
//createItem();
73+
//getAllItems();
74+
//getAllItemsByName();
75+
//getSingleItem();
76+
//getConfigs();
77+
//query();
7878
initUser();
79-
function();
80-
functionWithParameters();
81-
test();
79+
//function();
80+
//functionWithParameters();
81+
// test();
8282
}
8383

8484
Future<void> test() async {
@@ -225,6 +225,8 @@ class _MyAppState extends State<MyApp> {
225225
user = response.result;
226226
}
227227

228+
user = await ParseUser.currentUser();
229+
228230
user =
229231
ParseUser('TestFlutter', 'TestPassword123', '[email protected]');
230232
response = await user.login();

lib/src/base/parse_constants.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
part of flutter_parse_sdk;
22

33
// Library
4-
const String keySdkVersion = '1.0.19';
4+
const String keySdkVersion = '1.0.21';
55
const String keyLibraryName = 'Flutter Parse SDK';
66

77
// End Points

lib/src/network/parse_live_query.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class LiveQuery {
9898
if (_debug) {
9999
print('$_printConstLiveQuery: Done');
100100
}
101-
}, onError: (Error error) {
101+
}, onError: (error) {
102102
if (_debug) {
103103
print(
104104
'$_printConstLiveQuery: Error: ${error.runtimeType.toString()}');

lib/src/objects/parse_user.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ class ParseUser extends ParseObject implements ParseCloneable {
363363
type == ParseApiRQ.getAll ||
364364
type == ParseApiRQ.destroy ||
365365
type == ParseApiRQ.requestPasswordReset ||
366-
type == ParseApiRQ.verificationEmailRequest) {
366+
type == ParseApiRQ.verificationEmailRequest ||
367+
type == ParseApiRQ.logout) {
367368
return parseResponse;
368369
} else {
369370
final ParseUser user = parseResponse.result;

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: parse_server_sdk
22
description: Flutter plugin for Parse Server, (https://parseplatform.org), (https://back4app.com)
3-
version: 1.0.20
3+
version: 1.0.21
44
homepage: https://github.com/phillwiggins/flutter_parse_sdk
55
author: PhillWiggins <[email protected]>
66

0 commit comments

Comments
 (0)