Skip to content

Commit

Permalink
Merge branch 'master' into add_context
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Oct 16, 2023
2 parents 1ecbace + 088bfbc commit 33b761f
Show file tree
Hide file tree
Showing 12 changed files with 118 additions and 106 deletions.
59 changes: 27 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- "master"
- "development"
paths-ignore:
- "**/README.md"
pull_request:
Expand All @@ -16,31 +15,31 @@ jobs:
matrix:
include:
# Dart framework may contain breaking changes in minor version releases, not following semver.
- name: Dart 3.0, Ubuntu
# The latest Dart framework (below) is tested on all architectures (Ubuntu, macOS, Windows).
- name: Dart 3.1, Ubuntu
os: ubuntu-latest
sdk: 3.0.0
- name: Dart 3.0, macOS
sdk: 3.1.2
- name: Dart 3.1, macOS
os: macos-latest
sdk: 3.0.0
- name: Dart 3.0, Windows
sdk: 3.1.2
- name: Dart 3.1, Windows
os: windows-latest
sdk: 3.0.0
# Only the latest Dart framework version (above) is tested with all architectures. Previous
# Dart framework versions (below) are only tested with Ubuntu to reduce CI resource usage.
sdk: 3.1.2
# Older Dart framework versions (below) are only tested with Ubuntu to reduce CI resource usage.
- name: Dart 3.0
os: ubuntu-latest
sdk: 3.0.7
- name: Dart 2.19
os: ubuntu-latest
sdk: 2.19.6
- name: Dart 2.18
os: ubuntu-latest
sdk: 2.18.7
- name: Dart beta
os: ubuntu-latest
sdk: beta
fail-fast: false
name: Test ${{ matrix.name }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup dart
uses: dart-lang/setup-dart@v1.5.0
with:
Expand Down Expand Up @@ -77,31 +76,31 @@ jobs:
matrix:
include:
# Flutter framework may contain breaking changes in minor version releases, not following semver.
- name: Flutter 3.10, Ubuntu
# The latest Flutter framework (below) is tested on all architectures (Ubuntu, macOS, Windows).
- name: Flutter 3.13, Ubuntu
os: ubuntu-latest
sdk: 3.10.x
- name: Flutter 3.10, macOS
sdk: 3.13.6
- name: Flutter 3.13, macOS
os: macos-latest
sdk: 3.10.x
- name: Flutter 3.10, Windows
sdk: 3.13.6
- name: Flutter 3.13, Windows
os: windows-latest
sdk: 3.10.x
# Only the latest Flutter framework version (above) is tested with all architectures. Previous
# Flutter framework versions (below) are only tested with Ubuntu to reduce CI resource usage.
- name: Flutter 3.7
sdk: 3.13.6
# Older Flutter framework versions (below) are only tested with Ubuntu to reduce CI resource usage.
- name: Flutter 3.10
os: ubuntu-latest
sdk: 3.7.x
- name: Flutter 3.3
sdk: 3.10.6
- name: Flutter 3.7
os: ubuntu-latest
sdk: 3.3.x
sdk: 3.7.12
- name: Flutter beta
os: ubuntu-latest
sdk: beta
fail-fast: false
name: Test ${{ matrix.name }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup flutter (beta)
if: ${{ matrix.sdk == 'beta' }}
uses: subosito/flutter-action@v2
Expand All @@ -116,14 +115,10 @@ jobs:
cache: true
- name: Install dependencies on Ubuntu and MacOS
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
(cd packages/dart && flutter pub get)
(cd packages/flutter && flutter pub get)
run: (cd packages/flutter && flutter pub get)
- name: Install dependencies on Windows
if: matrix.os == 'windows-latest'
run: |
cmd /c "cd packages\dart && flutter pub get"
cmd /c "cd packages\flutter && flutter pub get"
run: cmd /c "cd packages\flutter && flutter pub get"
- name: Analyze code
run: flutter analyze packages/flutter --fatal-infos
- name: Lint
Expand Down
12 changes: 11 additions & 1 deletion packages/dart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
## [5.2.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-5.1.3...dart-5.2.0) (2023-10-09)
## [6.1.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-6.0.0...dart-6.1.0) (2023-10-17)

### Features

* Add `context` in `ParseObject` ([#970](https://github.com/parse-community/Parse-SDK-Flutter/pull/970))

## [6.0.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-5.1.3...dart-6.0.0) (2023-10-16)

### BREAKING CHANGES

* This release removes support for Dart 2.18 ([#969](https://github.com/parse-community/Parse-SDK-Flutter/pull/969))

### Features

* Add support for Dart 3.1, remove support for Dart 2.18 ([#969](https://github.com/parse-community/Parse-SDK-Flutter/pull/969))

## [5.1.3](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-5.1.2...dart-5.1.3) (2023-07-18)

### Bug Fixes
Expand Down
14 changes: 7 additions & 7 deletions packages/dart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ This library gives you access to the powerful Parse Server backend from your Dar

## Compatibility

The Parse Dart SDK is continuously tested with the most recent release of the Dart framework to ensure compatibility. To give developers time to upgrade their app to the newest Dart framework, previous Dart framework releases are supported for at least 1 year after their [release date](https://dart.dev/get-dart/archive).
The Parse Dart SDK is continuously tested with the most recent release of the Dart framework to ensure compatibility. To give developers time to upgrade their app to a newer Dart framework, previous Dart framework releases are supported for at least 1 year after the [release date](https://dart.dev/get-dart/archive) of the next higher significant version.

| Version | Latest Version | End of Support | Compatible |
|-----------|----------------|----------------|----------------------------------------------|
| Dart 3.0 | 3.0.0 | May 2024 | ✅ Yes |
| Dart 2.19 | 2.19.6 | Mar 2024 | ✅ Yes |
| Dart 2.18 | 2.18.7 | Jan 2024 | ✅ Yes |
| Dart 2.17 | 2.17.7 | Aug 2023 | ❌ No (Parse Dart SDK requires Dart >=2.18.0) |
| Version | Latest Version | End of Support | Compatible |
|-----------|----------------|----------------|------------|
| Dart 3.1 | 3.1.2 | Sep 2024 | ✅ Yes |
| Dart 3.0 | 3.0.7 | May 2024 | ✅ Yes |
| Dart 2.19 | 2.19.6 | Mar 2024 | ✅ Yes |

## Getting Started

Expand All @@ -51,3 +50,4 @@ We want to make contributing to this project as easy and transparent as possible

[guide]: https://docs.parseplatform.org/dart/guide/
[open-collective-link]: https://opencollective.com/parse-server

2 changes: 1 addition & 1 deletion packages/dart/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: 'none'
version: 1.0.0

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

dependencies:
parse_server_sdk:
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/base/parse_constants.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of flutter_parse_sdk;

// Library
const String keySdkVersion = '5.2.0';
const String keySdkVersion = '6.1.0';
const String keyLibraryName = 'Flutter Parse SDK';

// End Points
Expand Down
4 changes: 2 additions & 2 deletions packages/dart/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: parse_server_sdk
description: The Dart SDK to connect to Parse Server. Build your apps faster with Parse Platform, the complete application stack.
version: 5.2.0
version: 6.1.0
homepage: https://parseplatform.org
repository: https://github.com/parse-community/Parse-SDK-Flutter
issue_tracker: https://github.com/parse-community/Parse-SDK-Flutter/issues
Expand All @@ -18,7 +18,7 @@ topics:
- backend

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

dependencies:
# Networking
Expand Down
10 changes: 10 additions & 0 deletions packages/flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [7.0.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/flutter-6.0.0...flutter-7.0.0) (2023-10-16)

### BREAKING CHANGES

* This release removes support for Flutter 3.0 ([#971](https://github.com/parse-community/Parse-SDK-Flutter/pull/971))

### Features

* Add support for Flutter 3.10 and 3.13, remove support for Flutter 3.0 ([#971](https://github.com/parse-community/Parse-SDK-Flutter/pull/971))

## [6.0.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/flutter-5.1.2...flutter-6.0.0) (2023-08-06)

### BREAKING CHANGES
Expand Down
18 changes: 9 additions & 9 deletions packages/flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Build Status](https://github.com/parse-community/Parse-SDK-Flutter/workflows/ci/badge.svg?branch=master)](https://github.com/parse-community/Parse-SDK-Flutter/actions?query=workflow%3Aci+branch%3Amaster)
[![Coverage](https://img.shields.io/codecov/c/github/parse-community/Parse-SDK-Flutter/master)](https://app.codecov.io/gh/parse-community/Parse-SDK-Flutter/branch/master)

[![pub package](https://img.shields.io/pub/v/parse_server_sdk_flutter.svg)](https://pub.dev/packages/parse_server_sdk_flutter)
[![pub package](https://img.shields.io/pub/v/parse_server_sdk_flutter.svg)](https://pub.dev/packages/parse_server_sdk_flutter)

[![Forum](https://img.shields.io/discourse/https/community.parseplatform.org/topics.svg)](https://community.parseplatform.org/c/parse-server)
[![Backers on Open Collective](https://opencollective.com/parse-server/backers/badge.svg)][open-collective-link]
Expand All @@ -28,14 +28,14 @@ This library gives you access to the powerful Parse Server backend from your Flu

## Compatibility

The Parse Flutter SDK is continuously tested with the most recent release of the Flutter framework to ensure compatibility. To give developers time to upgrade their app to the newest Flutter framework, previous Flutter framework releases are supported for at least 1 year after their [release date](https://docs.flutter.dev/release/archive?tab=linux). The Parse Flutter SDK depends on the Parse Dart SDK which may require a higher Dart framework version than the Flutter framework version, in which case the Flutter framework version cannot be supported even though its release date may have been less than a year ago.
The Parse Flutter SDK is continuously tested with the most recent release of the Flutter framework to ensure compatibility. To give developers time to upgrade their app to a newer Flutter framework, previous Flutter framework releases are supported for at least 1 year after the [release date](https://docs.flutter.dev/release/archive?tab=linux) of the next higher significant version. The Parse Flutter SDK depends on the Parse Dart SDK which may require a higher Dart framework version than the Flutter framework version, in which case the specific Flutter framework version cannot be supported.

| Version | End of Support | Compatible |
|--------------|----------------|----------------------------------------------|
| Flutter 3.10 | May 2024 | ❌ No |
| Flutter 3.7 | Apr 2024 | ✅ Yes |
| Flutter 3.3 | Jan 2024 | ✅ Yes |
| Flutter 3.0 | Jul 2023 | ❌ No (Parse Flutter SDK requires Flutter >=3.3.0) |
| Version | Latest Version | End of Support | Compatible |
|--------------|----------------|----------------|------------|
| Flutter 3.13 | 3.13.6 | Sep 2024 | ✅ Yes |
| Flutter 3.10 | 3.10.6 | Jul 2024 | ✅ Yes |
| Flutter 3.7 | 3.7.12 | Apr 2024 | ✅ Yes |
| Flutter 3.3 | 3.3.10 | Dec 2024 | ✅ Yes |

## Getting Started

Expand All @@ -50,4 +50,4 @@ Find the full documentation in the [Parse Flutter SDK guide][guide].
We want to make contributing to this project as easy and transparent as possible. Please refer to the [Contribution Guidelines](https://github.com/parse-community/Parse-SDK-Flutter/blob/master/CONTRIBUTING.md).

[guide]: https://docs.parseplatform.org/flutter/guide/
[open-collective-link]: https://opencollective.com/parse-server
[open-collective-link]: https://opencollective.com/parse-server
59 changes: 28 additions & 31 deletions packages/flutter/example/lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,37 +33,34 @@ class _HomePageState extends State<HomePage> {

@override
Widget build(BuildContext context) {
return WillPopScope(
onWillPop: () async => false,
child: Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: const Text('Parse Server demo'),
actions: <Widget>[
TextButton(
child: const Text('Logout',
style: TextStyle(fontSize: 17.0, color: Colors.white)),
onPressed: () async {
final ParseUser user = await ParseUser.currentUser();
user.logout(deleteLocalUserData: true);
Navigator.pop(context as dynamic, true);
})
],
),
body: _showDietList(),
floatingActionButton: FloatingActionButton(
onPressed: () async {
final DietPlan dietPlan =
randomDietPlans[Random().nextInt(randomDietPlans.length - 1)];
final ParseUser user = await ParseUser.currentUser();
dietPlan.set('user', user);
await widget._dietPlanProvider.add(dietPlan);
setState(() {});
},
tooltip: 'Add Diet Plans',
child: const Icon(Icons.add),
)),
);
return Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: const Text('Parse Server demo'),
actions: <Widget>[
TextButton(
child: const Text('Logout',
style: TextStyle(fontSize: 17.0, color: Colors.white)),
onPressed: () async {
final ParseUser user = await ParseUser.currentUser();
user.logout(deleteLocalUserData: true);
Navigator.pop(context as dynamic, true);
})
],
),
body: _showDietList(),
floatingActionButton: FloatingActionButton(
onPressed: () async {
final DietPlan dietPlan =
randomDietPlans[Random().nextInt(randomDietPlans.length - 1)];
final ParseUser user = await ParseUser.currentUser();
dietPlan.set('user', user);
await widget._dietPlanProvider.add(dietPlan);
setState(() {});
},
tooltip: 'Add Diet Plans',
child: const Icon(Icons.add),
));
}

Widget _showDietList() {
Expand Down
25 changes: 11 additions & 14 deletions packages/flutter/example/lib/pages/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,17 @@ class _LoginPageState extends State<LoginPage> {

@override
Widget build(BuildContext context) {
return WillPopScope(
onWillPop: () async => false,
child: Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: const Text('Parse Server demo'),
),
body: Stack(
children: <Widget>[
_showBody(),
_showCircularProgress(),
],
)),
);
return Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: const Text('Parse Server demo'),
),
body: Stack(
children: <Widget>[
_showBody(),
_showCircularProgress(),
],
));
}

Widget _showCircularProgress() {
Expand Down
12 changes: 7 additions & 5 deletions packages/flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ publish_to: 'none'
version: 1.0.0

environment:
sdk: ">=2.18.0 <4.0.0"
sdk: ">=2.19.6 <4.0.0"
flutter: ">=3.3.10"

dependencies:
flutter:
Expand All @@ -20,9 +21,10 @@ dependencies:
sembast: ^3.4.6+1
shared_preferences: ^2.2.0

dependency_overrides:
parse_server_sdk:
path: ../../dart
# Uncomment for local testing
# dependency_overrides:
# parse_server_sdk:
# path: ../../dart

dev_dependencies:
flutter_test:
Expand All @@ -49,4 +51,4 @@ flutter:
- asset: fonts/Roboto/Roboto-Bold.ttf
weight: 700
- asset: fonts/Roboto/Roboto-Black.ttf
weight: 900
weight: 900
Loading

0 comments on commit 33b761f

Please sign in to comment.