Skip to content

Commit 41494b9

Browse files
authored
Merge pull request #40 from phillwiggins/master
Updating develop branch
2 parents a8c315e + 00e6a16 commit 41494b9

File tree

6 files changed

+98
-60
lines changed

6 files changed

+98
-60
lines changed

.idea/workspace.xml

Lines changed: 89 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.7
2+
3+
Some items now return a response rather than a ParseObject
4+
15
## 1.0.6
26

37
BREAK FIX - Fixed ParseUser return type so now returns ParseResponse

README.md

Lines changed: 2 additions & 2 deletions
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
```
1515
dependencies:
16-
parse_server_sdk: ^1.0.6
16+
parse_server_sdk: ^1.0.7
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

@@ -157,7 +157,7 @@ You can now save an object by calling .pin() on an instance of an object
157157
dietPlan.pin();
158158
```
159159

160-
and to retreive it
160+
and to retrieve it
161161

162162
```
163163
var dietPlan = DietPlan().fromPin('OBJECT ID OF OBJECT');

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class _MyAppState extends State<MyApp> {
169169
if (response.success) user = response.result;
170170

171171
var queryBuilder = QueryBuilder<ParseUser>(ParseUser.forQuery())
172-
..whereStartsWith(ParseUser.keyUsername, 'phillw');;
172+
..whereStartsWith(ParseUser.keyUsername, 'phillw');
173173

174174
var apiResponse = await queryBuilder.query();
175175
if (apiResponse.success) user = response.result;

lib/src/objects/parse_response.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ParseResponse {
2626
} else if (apiResponse.body == "OK"){
2727
return _handleSuccessWithNoResults(parseResponse, 2, "Successful request");
2828
} else if (returnAsResult){
29-
return _handleSuccess<T>(parseResponse, object, apiResponse.body);
29+
return _handleSuccessWithoutParseObject(parseResponse, object, apiResponse.body);
3030
} else {
3131
return _handleSuccess<T>(parseResponse, object, apiResponse.body);
3232
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
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.6
3+
version: 1.0.7
44
homepage: https://github.com/phillwiggins/flutter_parse_sdk
55
author: PhillWiggins <[email protected]>
66

0 commit comments

Comments
 (0)