Skip to content

refactor: Increment Dart SDK compatibility to <4.0.0; add example project #883

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 4 commits into from
May 17, 2023
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
23 changes: 23 additions & 0 deletions packages/dart/example/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import '../lib/parse_server_sdk.dart';

Future<void> main() async {
// Parse initialize
await Parse().initialize("keyApplicationId", "keyParseServerUrl",
clientKey: "keyParseClientKey",
debug: true,
liveQueryUrl: "keyLiveQueryUrl",
autoSendSessionId: true,
coreStore: CoreStoreMemoryImp());

// Set a ParseObject and save it
var dietPlan = ParseObject('DietPlan')
..set('Name', 'Ketogenic')
..set('Fat', 65);

var response = await dietPlan.save();

if (response.success) {
dietPlan = response.results?.first;
print("Response received successfully");
}
}
8 changes: 6 additions & 2 deletions packages/dart/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: parse_server_sdk
description: The Dart SDK for Parse Platform (https://parseplatform.org)
description: The Dart SDK to connect to Parse Server. Build your apps faster with Parse Platform, the complete application stack.
version: 5.1.0
homepage: https://github.com/parse-community/Parse-SDK-Flutter

environment:
sdk: ">=2.18.0 <3.1.0"
sdk: ">=2.18.0 <4.0.0"

dependencies:
# Networking
Expand Down Expand Up @@ -32,3 +32,7 @@ dev_dependencies:
build_runner: ^2.3.3
mockito: ^5.3.2
test: ^1.23.1

screenshots:
- description: Parse Platform logo.
path: screenshots/logo.png
Binary file added packages/dart/screenshots/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.