Skip to content

Release/1.0.21 #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.21
LiveQuery fix
Logout fix

## 1.0.20
ACL now working
emailVerified
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
26 changes: 14 additions & 12 deletions example/lib/ui/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,21 @@ class _MyAppState extends State<MyApp> {

Future<void> 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<void> test() async {
Expand Down Expand Up @@ -225,6 +225,8 @@ class _MyAppState extends State<MyApp> {
user = response.result;
}

user = await ParseUser.currentUser();

user =
ParseUser('TestFlutter', 'TestPassword123', 'phill.wiggins@gmail.com');
response = await user.login();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/base/parse_constants.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/src/network/parse_live_query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class LiveQuery {
if (_debug) {
print('$_printConstLiveQuery: Done');
}
}, onError: (Error error) {
}, onError: (error) {
if (_debug) {
print(
'$_printConstLiveQuery: Error: ${error.runtimeType.toString()}');
Expand Down
3 changes: 2 additions & 1 deletion lib/src/objects/parse_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
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: 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 <phill.wiggins@gmail.com>

Expand Down