File tree 5 files changed +16
-18
lines changed
5 files changed +16
-18
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.0.2
2
+
3
+ Fixed login
4
+
1
5
## 1.0.1
2
6
3
7
Added documentation and GeoPoints
Original file line number Diff line number Diff line change @@ -13,12 +13,7 @@ Want to get involved? Join our Slack channel and help out! (http://flutter-parse
13
13
To install, either add to your pubspec.yaml
14
14
```
15
15
dependencies:
16
-
17
- parse_server_sdk: ^1.0.1
18
-
19
-
20
-
21
-
16
+ parse_server_sdk: ^1.0.2
22
17
```
23
18
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.
24
19
Original file line number Diff line number Diff line change @@ -26,16 +26,16 @@ class User extends ParseBase {
26
26
factory User () => _instance;
27
27
28
28
/// Returns a [User] from a [Map] object
29
- fromJson (Map objectData) {
29
+ fromJson (objectData) {
30
30
if (getObjectData () == null ) setObjectData (objectData);
31
31
getObjectData ().addAll (objectData);
32
- if (getObjectData ().containsKey (ParseConstants .OBJECT_ID )) objectId = get ( ParseConstants .OBJECT_ID ). toString () ;
33
- if (getObjectData ().containsKey (ParseConstants .CREATED_AT )) createdAt = convertStringToDateTime (get ( ParseConstants .CREATED_AT ). toString () );
34
- if (getObjectData ().containsKey (ParseConstants .UPDATED_AT )) updatedAt = convertStringToDateTime (get ( ParseConstants .UPDATED_AT ). toString () );
35
- if (getObjectData ().containsKey (ACL )) acl = get ( ACL ) .toString ();
36
- if (getObjectData ().containsKey (USERNAME )) username = get ( USERNAME ). toString () ;
37
- if (getObjectData ().containsKey (PASSWORD )) password = get ( PASSWORD ). toString () ;
38
- if (getObjectData ().containsKey (EMAIL )) emailAddress = get ( EMAIL ). toString () ;
32
+ if (getObjectData ().containsKey (ParseConstants .OBJECT_ID )) objectId = getObjectData ()[ ParseConstants .OBJECT_ID ] ;
33
+ if (getObjectData ().containsKey (ParseConstants .CREATED_AT )) createdAt = convertStringToDateTime (getObjectData ()[ ParseConstants .CREATED_AT ] );
34
+ if (getObjectData ().containsKey (ParseConstants .UPDATED_AT )) updatedAt = convertStringToDateTime (getObjectData ()[ ParseConstants .UPDATED_AT ] );
35
+ if (getObjectData ().containsKey (ACL )) acl = getObjectData ()[ ACL ] .toString ();
36
+ if (getObjectData ().containsKey (USERNAME )) username = getObjectData ()[ USERNAME ] ;
37
+ if (getObjectData ().containsKey (PASSWORD )) password = getObjectData ()[ PASSWORD ] ;
38
+ if (getObjectData ().containsKey (EMAIL )) emailAddress = getObjectData ()[ EMAIL ] ;
39
39
40
40
if (updatedAt == null ) updatedAt = createdAt;
41
41
Original file line number Diff line number Diff line change @@ -167,15 +167,14 @@ class ParseUser {
167
167
168
168
var responseString = ' \n ' ;
169
169
170
- responseString += "----"
171
- "\n ${_client .data .appName } API Response ($className : ${type .toString ()}) :" ;
170
+ responseString += "----""\n ${_client .data .appName } API Response ($className : ${type .toString ()}) :" ;
172
171
173
172
if (response.statusCode == 200 || response.statusCode == 201 ) {
174
173
responseString += "\n Status Code: ${response .statusCode }" ;
175
174
responseString += "\n Payload: ${responseData .toString ()}" ;
176
175
177
176
if (responseData.containsKey ('objectId' )) {
178
- User .instance.fromJson (JsonDecoder (). convert (response.body) as Map );
177
+ User .instance.fromJson (responseData );
179
178
_client.data.sessionId = responseData['sessionToken' ];
180
179
}
181
180
} else {
Original file line number Diff line number Diff line change 1
1
name : parse_server_sdk
2
2
description : This is a Flutter plugin that allows communication with a Parse Server, (https://parseplatform.org)
3
- version : 1.0.1
3
+ version : 1.0.2
4
4
homepage : https://github.com/phillwiggins/flutter_parse_sdk
5
5
author :
PhillWiggins <[email protected] >
6
6
You can’t perform that action at this time.
0 commit comments