Skip to content

Commit e70f3e1

Browse files
authored
Merge pull request #76 from phillwiggins/release/1.0.11
Release/1.0.11
2 parents 652c6db + 257f337 commit e70f3e1

8 files changed

+30
-31
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.11
2+
ParseFile fixed
3+
Anonymous login
4+
SecurityContext
5+
CloudFunctions with objects
6+
17
## 1.0.10
28
Add ParseConfig.
39
Fixed whereEqualsTo('', PARSEOBJECT) and other queries

README.md

Lines changed: 5 additions & 3 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.10
16+
parse_server_sdk: ^1.0.11
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

@@ -33,8 +33,10 @@ Parse().initialize(
3333
ApplicationConstants.keyApplicationId,
3434
ApplicationConstants.keyParseServerUrl,
3535
masterKey: ApplicationConstants.keyParseMasterKey,
36-
debug: true,
37-
liveQuery: true);
36+
clientKey: ApplicationConstants.keyParseClientKey,
37+
debug: true,
38+
liveQuery: true,
39+
securityContext: securityContext);
3840
```
3941

4042
## Queries

example/lib/diet_plan.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import 'dart:core';
22

3-
import 'package:parse_server_sdk/parse.dart';
3+
import 'package:parse_server_sdk/parse_server_sdk.dart';
44

55
class DietPlan extends ParseObject implements ParseCloneable {
6-
76
DietPlan() : super(_keyTableName);
8-
DietPlan.clone(): this();
7+
DietPlan.clone() : this();
98

109
/// Looks strangely hacky but due to Flutter not using reflection, we have to
1110
/// mimic a clone
12-
@override clone(Map map) => DietPlan.clone()..fromJson(map);
11+
@override
12+
clone(Map map) => DietPlan.clone()..fromJson(map);
1313

1414
static const String _keyTableName = 'Diet_Plans';
1515
static const String keyName = 'Name';

example/lib/main.dart

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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:parse_server_sdk/parse.dart';
4+
import 'package:parse_server_sdk/parse_server_sdk.dart';
55

66
void main() => runApp(new MyApp());
77

@@ -178,20 +178,13 @@ class _MyAppState extends State<MyApp> {
178178
}
179179

180180
function() async {
181-
var user =
182-
ParseUser("TestFlutter", "TestPassword123", "[email protected]");
183-
await user.signUp();
184-
var loginResponse = await user.login();
185-
if (loginResponse.success) user = loginResponse.result;
186-
187-
var customClient = ParseHTTPClient();
188-
customClient.additionalHeaders = {
189-
keyHeaderSessionToken: ParseCoreData().sessionId
190-
};
191-
var function = ParseCloudFunction('hello', client: customClient);
192-
function.execute();
193-
194-
user.destroy();
181+
var function = ParseCloudFunction('hello');
182+
var result = await function.executeObjectFunction<ParseObject>();
183+
if (result.success) {
184+
if (result.result is ParseObject) {
185+
print((result.result as ParseObject).className);
186+
}
187+
}
195188
}
196189

197190
functionWithParameters() async {
File renamed without changes.

lib/src/base/parse_constants.dart

Lines changed: 1 addition & 1 deletion
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.10';
4+
const String keySdkVersion = '1.0.11';
55
const String keyLibraryName = 'Flutter Parse SDK';
66

77
// End Points

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

test/parse_client_configuration_test.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import 'package:parse_server_sdk/parse_server_sdk.dart';
12
import 'package:test/test.dart';
2-
import 'package:parse_server_sdk/parse.dart';
33

4-
void main(){
5-
test("testBuilder",() {
6-
Parse().initialize("appId",
7-
"serverUrl",
4+
void main() {
5+
test("testBuilder", () {
6+
Parse().initialize("appId", "serverUrl",
87
clientKey: "clientKey",
98
liveQueryUrl: "liveQueryUrl",
109
appName: "appName",
@@ -20,6 +19,5 @@ void main(){
2019
expect(ParseCoreData().masterKey, "masterKey");
2120
expect(ParseCoreData().sessionId, "sessionId");
2221
expect(ParseCoreData().debug, true);
23-
2422
});
25-
}
23+
}

0 commit comments

Comments
 (0)