Skip to content

Commit 22b51be

Browse files
authored
Merge pull request #98 from phillwiggins/release/1.0.14
Merge branches 'develop' and 'master' of https://github.com/phillwigg…
2 parents 630e37d + 75d43a2 commit 22b51be

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.0.14
2+
Corrected delete & path issue
3+
Added Geo queries
4+
Added ability to add login oAuth data
5+
16
## 1.0.13
27
Added full bool to convert objects to JSON correctly
38

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
```
1515
dependencies:
16-
parse_server_sdk: ^1.0.13
16+
parse_server_sdk: ^1.0.14
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/main.dart

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_plugin_example/application_constants.dart';
33
import 'package:flutter_plugin_example/diet_plan.dart';
4+
import 'package:flutter_stetho/flutter_stetho.dart';
45
import 'package:parse_server_sdk/parse_server_sdk.dart';
56

6-
void main() => runApp(new MyApp());
7+
void main() {
8+
Stetho.initialize();
9+
runApp(new MyApp());
10+
}
711

812
class MyApp extends StatefulWidget {
913
@override
@@ -109,10 +113,10 @@ class _MyAppState extends State<MyApp> {
109113
if (randomInt is int) print('Saving generic value worked!');
110114

111115
// Shows example of pinning an item
112-
dietPlan.pin();
116+
await dietPlan.pin();
113117

114118
// shows example of retrieving a pin
115-
var newDietPlanFromPin = DietPlan().fromPin('R5EonpUDWy');
119+
var newDietPlanFromPin = await DietPlan().fromPin('R5EonpUDWy');
116120
if (newDietPlanFromPin != null) print('Retreiving from pin worked!');
117121
} else {
118122
print(ApplicationConstants.keyAppName + ": " + apiResponse.error.message);
@@ -149,9 +153,6 @@ class _MyAppState extends State<MyApp> {
149153
if (response.success) user = response.result;
150154

151155
response = await user.verificationEmailRequest();
152-
if (response.success) user = response.result;
153-
154-
user = null;
155156
// Best practice for starting the app. This will check for a valid user
156157
user = await ParseUser.currentUser();
157158
await user.logout();

example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ dependencies:
88
# The following adds the Cupertino Icons font to your application.
99
# Use with the CupertinoIcons class for iOS style icons.
1010
cupertino_icons: ^0.1.2
11+
flutter_stetho: ^0.2.2
1112

1213
dev_dependencies:
13-
1414
parse_server_sdk:
1515
path: ../
1616

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.13';
4+
const String keySdkVersion = '1.0.14';
55
const String keyLibraryName = 'Flutter Parse SDK';
66

77
// End Points

lib/src/objects/parse_object.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ class ParseObject extends ParseBase implements ParseCloneable {
190190
}
191191

192192
/// Deletes the current object locally and online
193-
Future<ParseResponse> delete(String path, String objectId) async {
193+
Future<ParseResponse> delete(String objectId, {String path}) async {
194194
try {
195-
var uri = "${ParseCoreData().serverUrl}$_path/$objectId";
195+
path ??= _path;
196+
var uri = "${ParseCoreData().serverUrl}$path/$objectId";
196197
var result = await _client.delete(uri);
197198
return handleResponse(this, result, ParseApiRQ.delete, _debug, className);
198199
} on Exception catch (e) {

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.13
3+
version: 1.0.14
44
homepage: https://github.com/phillwiggins/flutter_parse_sdk
55
author: PhillWiggins <[email protected]>
66

0 commit comments

Comments
 (0)