diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9aefc4805..0242f09cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,22 +16,25 @@ jobs: include: # Dart framework may contain breaking changes in minor version releases, not following semver. # The latest Dart framework (below) is tested on all architectures (Ubuntu, macOS, Windows). - - name: Dart 3.1, Ubuntu + - name: Dart 3.3, Ubuntu os: ubuntu-latest - sdk: 3.1.2 - - name: Dart 3.1, macOS + sdk: 3.3.3 + - name: Dart 3.3, macOS os: macos-latest - sdk: 3.1.2 - - name: Dart 3.1, Windows + sdk: 3.3.3 + - name: Dart 3.3, Windows os: windows-latest - sdk: 3.1.2 + sdk: 3.3.3 # Older Dart framework versions (below) are only tested with Ubuntu to reduce CI resource usage. + - name: Dart 3.2 + os: ubuntu-latest + sdk: 3.2.6 + - name: Dart 3.1 + os: ubuntu-latest + sdk: 3.1.5 - name: Dart 3.0 os: ubuntu-latest sdk: 3.0.7 - - name: Dart 2.19 - os: ubuntu-latest - sdk: 2.19.6 - name: Dart beta os: ubuntu-latest sdk: beta diff --git a/packages/dart/CHANGELOG.md b/packages/dart/CHANGELOG.md index 782a2a0f5..cdee9b8f6 100644 --- a/packages/dart/CHANGELOG.md +++ b/packages/dart/CHANGELOG.md @@ -1,3 +1,13 @@ +## [7.0.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-6.4.0...dart-7.0.0) (2024-04-12) + +### BREAKING CHANGES + +* This release removes support for Dart 2.19 ([#993](https://github.com/parse-community/Parse-SDK-Flutter/pull/993)) + +### Features + +* Add support for Dart 3.1, 3.2, 3.3; remove support for Dart 2.19 ([#993](https://github.com/parse-community/Parse-SDK-Flutter/pull/993)) + ## [6.4.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-6.3.0...dart-6.4.0) (2024-03-30) ### Features diff --git a/packages/dart/README.md b/packages/dart/README.md index 0a751c7bd..7eb6995a7 100644 --- a/packages/dart/README.md +++ b/packages/dart/README.md @@ -32,9 +32,10 @@ The Parse Dart SDK is continuously tested with the most recent release of the Da | Version | Latest Version | End of Support | Compatible | |-----------|----------------|----------------|------------| -| Dart 3.1 | 3.1.2 | Sep 2024 | ✅ Yes | +| Dart 3.3 | 3.3.3 | Mar 2025 | ✅ Yes | +| Dart 3.2 | 3.2.6 | Jan 2025 | ✅ Yes | +| Dart 3.1 | 3.1.5 | Oct 2024 | ✅ Yes | | Dart 3.0 | 3.0.7 | May 2024 | ✅ Yes | -| Dart 2.19 | 2.19.6 | Mar 2024 | ✅ Yes | ## Getting Started diff --git a/packages/dart/lib/src/base/parse_constants.dart b/packages/dart/lib/src/base/parse_constants.dart index a1dcfed0f..bd96e48fd 100644 --- a/packages/dart/lib/src/base/parse_constants.dart +++ b/packages/dart/lib/src/base/parse_constants.dart @@ -1,7 +1,7 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; // Library -const String keySdkVersion = '6.4.0'; +const String keySdkVersion = '7.0.0'; const String keyLibraryName = 'Flutter Parse SDK'; // End Points diff --git a/packages/dart/lib/src/data/parse_core_data.dart b/packages/dart/lib/src/data/parse_core_data.dart index aea6adf36..cc50cc819 100644 --- a/packages/dart/lib/src/data/parse_core_data.dart +++ b/packages/dart/lib/src/data/parse_core_data.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// Singleton class that defines all user keys and data class ParseCoreData { diff --git a/packages/dart/lib/src/data/parse_subclass_handler.dart b/packages/dart/lib/src/data/parse_subclass_handler.dart index f7ed18cf9..73b2de3af 100644 --- a/packages/dart/lib/src/data/parse_subclass_handler.dart +++ b/packages/dart/lib/src/data/parse_subclass_handler.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; typedef ParseObjectConstructor = ParseObject Function(); typedef ParseUserConstructor = ParseUser Function( diff --git a/packages/dart/lib/src/enums/parse_enum_api_rq.dart b/packages/dart/lib/src/enums/parse_enum_api_rq.dart index 56bb33ef8..fb54de722 100644 --- a/packages/dart/lib/src/enums/parse_enum_api_rq.dart +++ b/packages/dart/lib/src/enums/parse_enum_api_rq.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// Used to define the API calls made in ParseObject logs enum ParseApiRQ { diff --git a/packages/dart/lib/src/network/options.dart b/packages/dart/lib/src/network/options.dart index 7f33a5c6c..5b07d7303 100644 --- a/packages/dart/lib/src/network/options.dart +++ b/packages/dart/lib/src/network/options.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseNetworkOptions { ParseNetworkOptions({this.headers}); diff --git a/packages/dart/lib/src/network/parse_client.dart b/packages/dart/lib/src/network/parse_client.dart index ad16235d0..bf29694e6 100644 --- a/packages/dart/lib/src/network/parse_client.dart +++ b/packages/dart/lib/src/network/parse_client.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; typedef ParseClientCreator = ParseClient Function( {required bool sendSessionId, SecurityContext? securityContext}); @@ -93,12 +93,9 @@ class ParseNetworkResponse { class ParseNetworkByteResponse extends ParseNetworkResponse { ParseNetworkByteResponse({ this.bytes, - final String data = 'byte response', - final int statusCode = -1, - }) : super( - data: data, - statusCode: statusCode, - ); + super.data = 'byte response', + super.statusCode, + }); final List<int>? bytes; } diff --git a/packages/dart/lib/src/network/parse_connectivity.dart b/packages/dart/lib/src/network/parse_connectivity.dart index 731ad1a4b..a6ea3dd81 100644 --- a/packages/dart/lib/src/network/parse_connectivity.dart +++ b/packages/dart/lib/src/network/parse_connectivity.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// Connection status check result. enum ParseConnectivityResult { diff --git a/packages/dart/lib/src/network/parse_dio_client.dart b/packages/dart/lib/src/network/parse_dio_client.dart index ddf12e548..04842de90 100644 --- a/packages/dart/lib/src/network/parse_dio_client.dart +++ b/packages/dart/lib/src/network/parse_dio_client.dart @@ -272,33 +272,11 @@ class _ParseDioClient with dio.DioMixin implements dio.Dio { class _Options extends dio.Options { _Options({ - String? method, - Duration? sendTimeout, - Duration? receiveTimeout, - Map<String, dynamic>? extra, - Map<String, dynamic>? headers, - dio.ResponseType? responseType, + super.headers, + super.responseType, String? contentType, - dio.ValidateStatus? validateStatus, - bool? receiveDataWhenStatusError, - bool? followRedirects, - int? maxRedirects, - dio.RequestEncoder? requestEncoder, - dio.ResponseDecoder? responseDecoder, }) : super( - method: method, - sendTimeout: sendTimeout, - receiveTimeout: receiveTimeout, - extra: extra, - headers: headers, - responseType: responseType, contentType: contentType ?? (headers ?? <String, dynamic>{})[dio.Headers.contentTypeHeader], - validateStatus: validateStatus, - receiveDataWhenStatusError: receiveDataWhenStatusError, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - requestEncoder: requestEncoder, - responseDecoder: responseDecoder, ); } diff --git a/packages/dart/lib/src/network/parse_live_query.dart b/packages/dart/lib/src/network/parse_live_query.dart index 1841732e3..8778c0e07 100644 --- a/packages/dart/lib/src/network/parse_live_query.dart +++ b/packages/dart/lib/src/network/parse_live_query.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; enum LiveQueryEvent { create, enter, update, leave, delete, error } diff --git a/packages/dart/lib/src/network/parse_query.dart b/packages/dart/lib/src/network/parse_query.dart index f9f659c5c..420b6fd8d 100644 --- a/packages/dart/lib/src/network/parse_query.dart +++ b/packages/dart/lib/src/network/parse_query.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// Class to create complex queries class QueryBuilder<T extends ParseObject> { diff --git a/packages/dart/lib/src/network/parse_websocket_html.dart b/packages/dart/lib/src/network/parse_websocket_html.dart index 35593e9a8..37555327f 100644 --- a/packages/dart/lib/src/network/parse_websocket_html.dart +++ b/packages/dart/lib/src/network/parse_websocket_html.dart @@ -1,4 +1,5 @@ /// If you change this file, you should apply the same changes to the 'parse_websocket_io.dart' file +library; import 'dart:html' as html; diff --git a/packages/dart/lib/src/network/parse_websocket_io.dart b/packages/dart/lib/src/network/parse_websocket_io.dart index b2cd15503..2f93d76fb 100644 --- a/packages/dart/lib/src/network/parse_websocket_io.dart +++ b/packages/dart/lib/src/network/parse_websocket_io.dart @@ -1,4 +1,5 @@ /// If you change this file, you should apply the same changes to the 'parse_websocket_html.dart' file +library; import 'dart:io' as io; diff --git a/packages/dart/lib/src/objects/parse_acl.dart b/packages/dart/lib/src/objects/parse_acl.dart index 618b86c5f..bf498e17e 100644 --- a/packages/dart/lib/src/objects/parse_acl.dart +++ b/packages/dart/lib/src/objects/parse_acl.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// [ParseACL] is used to control which users can access or modify a particular object /// [ParseObject] can have its own [ParseACL] diff --git a/packages/dart/lib/src/objects/parse_array.dart b/packages/dart/lib/src/objects/parse_array.dart index 1bf36e273..f4ebf602b 100644 --- a/packages/dart/lib/src/objects/parse_array.dart +++ b/packages/dart/lib/src/objects/parse_array.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class _ParseArray implements _Valuable<List>, _ParseSaveStateAwareChild { _ParseArray({this.setMode = false}); diff --git a/packages/dart/lib/src/objects/parse_base.dart b/packages/dart/lib/src/objects/parse_base.dart index 97eced61e..00134fe4d 100644 --- a/packages/dart/lib/src/objects/parse_base.dart +++ b/packages/dart/lib/src/objects/parse_base.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; abstract class ParseBase { /// refers to the Table Name in your Parse Server diff --git a/packages/dart/lib/src/objects/parse_cloneable.dart b/packages/dart/lib/src/objects/parse_cloneable.dart index 589b60149..bf5d383c7 100644 --- a/packages/dart/lib/src/objects/parse_cloneable.dart +++ b/packages/dart/lib/src/objects/parse_cloneable.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// Creates method which can be used to deep clone objects abstract class ParseCloneable { diff --git a/packages/dart/lib/src/objects/parse_config.dart b/packages/dart/lib/src/objects/parse_config.dart index 8df935d63..6031ca147 100644 --- a/packages/dart/lib/src/objects/parse_config.dart +++ b/packages/dart/lib/src/objects/parse_config.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseConfig extends ParseObject { /// Creates an instance of ParseConfig so that you can grab all configs from the server diff --git a/packages/dart/lib/src/objects/parse_error.dart b/packages/dart/lib/src/objects/parse_error.dart index 323905c77..38e392486 100644 --- a/packages/dart/lib/src/objects/parse_error.dart +++ b/packages/dart/lib/src/objects/parse_error.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// ParseException is used in [ParseResult] to inform the user of the exception class ParseError { diff --git a/packages/dart/lib/src/objects/parse_exception.dart b/packages/dart/lib/src/objects/parse_exception.dart index 27cdaf70a..a760b4f82 100644 --- a/packages/dart/lib/src/objects/parse_exception.dart +++ b/packages/dart/lib/src/objects/parse_exception.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; abstract class ParseException implements Exception {} diff --git a/packages/dart/lib/src/objects/parse_file.dart b/packages/dart/lib/src/objects/parse_file.dart index e70da5ff5..6a1b6e383 100644 --- a/packages/dart/lib/src/objects/parse_file.dart +++ b/packages/dart/lib/src/objects/parse_file.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseFile extends ParseFileBase { /// Creates a new file @@ -6,16 +6,12 @@ class ParseFile extends ParseFileBase { /// {https://docs.parseplatform.org/rest/guide/#files/} ParseFile(this.file, {String? name, - String? url, - bool? debug, - ParseClient? client, - bool? autoSendSessionId}) + super.url, + super.debug, + super.client, + super.autoSendSessionId}) : super( name: file != null ? path.basename(file.path) : name!, - url: url, - debug: debug, - client: client, - autoSendSessionId: autoSendSessionId, ); File? file; diff --git a/packages/dart/lib/src/objects/parse_file_base.dart b/packages/dart/lib/src/objects/parse_file_base.dart index 3f3bf5f47..3c16ed277 100644 --- a/packages/dart/lib/src/objects/parse_file_base.dart +++ b/packages/dart/lib/src/objects/parse_file_base.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; abstract class ParseFileBase extends ParseObject { /// Creates a new file diff --git a/packages/dart/lib/src/objects/parse_file_web.dart b/packages/dart/lib/src/objects/parse_file_web.dart index c092ff4d9..cbaba5414 100644 --- a/packages/dart/lib/src/objects/parse_file_web.dart +++ b/packages/dart/lib/src/objects/parse_file_web.dart @@ -1,19 +1,12 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseWebFile extends ParseFileBase { ParseWebFile(this.file, - {required String name, - String? url, - bool? debug, - ParseClient? client, - bool? autoSendSessionId}) - : super( - name: name, - url: url, - debug: debug, - client: client, - autoSendSessionId: autoSendSessionId, - ); + {required super.name, + super.url, + super.debug, + super.client, + super.autoSendSessionId}); Uint8List? file; CancelToken? _cancelToken; diff --git a/packages/dart/lib/src/objects/parse_function.dart b/packages/dart/lib/src/objects/parse_function.dart index 68331baca..5e307303e 100644 --- a/packages/dart/lib/src/objects/parse_function.dart +++ b/packages/dart/lib/src/objects/parse_function.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseCloudFunction extends ParseObject { /// Creates a new cloud function object diff --git a/packages/dart/lib/src/objects/parse_geo_point.dart b/packages/dart/lib/src/objects/parse_geo_point.dart index f7f60a2e8..f1a89193b 100644 --- a/packages/dart/lib/src/objects/parse_geo_point.dart +++ b/packages/dart/lib/src/objects/parse_geo_point.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; const String keyLatitude = 'latitude'; const String keyLongitude = 'longitude'; diff --git a/packages/dart/lib/src/objects/parse_installation.dart b/packages/dart/lib/src/objects/parse_installation.dart index 195b8d71b..5f4c01c33 100644 --- a/packages/dart/lib/src/objects/parse_installation.dart +++ b/packages/dart/lib/src/objects/parse_installation.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseInstallation extends ParseObject { /// Creates an instance of ParseInstallation diff --git a/packages/dart/lib/src/objects/parse_number.dart b/packages/dart/lib/src/objects/parse_number.dart index 2b6c1be25..02b8b66f9 100644 --- a/packages/dart/lib/src/objects/parse_number.dart +++ b/packages/dart/lib/src/objects/parse_number.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class _ParseNumber implements _Valuable<num>, _ParseSaveStateAwareChild { num estimateNumber; diff --git a/packages/dart/lib/src/objects/parse_object.dart b/packages/dart/lib/src/objects/parse_object.dart index 33ce02a5b..3af65c45e 100644 --- a/packages/dart/lib/src/objects/parse_object.dart +++ b/packages/dart/lib/src/objects/parse_object.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// [ParseObject] is a local representation of data that can be saved and /// retrieved from the Parse cloud. diff --git a/packages/dart/lib/src/objects/parse_operation/parse_add_operation.dart b/packages/dart/lib/src/objects/parse_operation/parse_add_operation.dart index 16f892de6..d48b2fb76 100644 --- a/packages/dart/lib/src/objects/parse_operation/parse_add_operation.dart +++ b/packages/dart/lib/src/objects/parse_operation/parse_add_operation.dart @@ -1,8 +1,8 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// An operation that adds a new element to an array class _ParseAddOperation extends _ParseArrayOperation { - _ParseAddOperation(List value) : super(value); + _ParseAddOperation(super.value); @override String get operationName => 'Add'; diff --git a/packages/dart/lib/src/objects/parse_operation/parse_add_relation_operation.dart b/packages/dart/lib/src/objects/parse_operation/parse_add_relation_operation.dart index 716868096..2eaa1b5d6 100644 --- a/packages/dart/lib/src/objects/parse_operation/parse_add_relation_operation.dart +++ b/packages/dart/lib/src/objects/parse_operation/parse_add_relation_operation.dart @@ -1,8 +1,8 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// An operation that adds new objects to a [ParseRelation] class _ParseAddRelationOperation extends _ParseRelationOperation { - _ParseAddRelationOperation(Set<ParseObject> value) : super(value); + _ParseAddRelationOperation(super.value); @override String get operationName => 'AddRelation'; diff --git a/packages/dart/lib/src/objects/parse_operation/parse_add_unique_operation.dart b/packages/dart/lib/src/objects/parse_operation/parse_add_unique_operation.dart index a7cb87ceb..ac6066861 100644 --- a/packages/dart/lib/src/objects/parse_operation/parse_add_unique_operation.dart +++ b/packages/dart/lib/src/objects/parse_operation/parse_add_unique_operation.dart @@ -1,9 +1,9 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// An operation that adds a new element to an array field, /// only if it wasn't already present class _ParseAddUniqueOperation extends _ParseArrayOperation { - _ParseAddUniqueOperation(List value) : super(value); + _ParseAddUniqueOperation(super.value); @override String get operationName => 'AddUnique'; diff --git a/packages/dart/lib/src/objects/parse_operation/parse_increment_operation.dart b/packages/dart/lib/src/objects/parse_operation/parse_increment_operation.dart index 765cf3494..88de06b5f 100644 --- a/packages/dart/lib/src/objects/parse_operation/parse_increment_operation.dart +++ b/packages/dart/lib/src/objects/parse_operation/parse_increment_operation.dart @@ -1,8 +1,8 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// An operation that increment a numeric value by a given amount class _ParseIncrementOperation extends _ParseNumberOperation { - _ParseIncrementOperation(num value) : super(value); + _ParseIncrementOperation(super.value); @override String get operationName => 'Increment'; diff --git a/packages/dart/lib/src/objects/parse_operation/parse_operation.dart b/packages/dart/lib/src/objects/parse_operation/parse_operation.dart index 68fc92ee4..f9e39b3cc 100644 --- a/packages/dart/lib/src/objects/parse_operation/parse_operation.dart +++ b/packages/dart/lib/src/objects/parse_operation/parse_operation.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// Represents an operation performed on Parse data. It defines the core /// functionality of any operation performed on Parse data. @@ -182,7 +182,7 @@ abstract class _ParseOperation<T> implements _Valuable<T> { } abstract class _ParseArrayOperation extends _ParseOperation<List> { - _ParseArrayOperation(List value) : super(value) { + _ParseArrayOperation(super.value) { super.valueForApiRequest = []; } @@ -229,7 +229,7 @@ abstract class _ParseArrayOperation extends _ParseOperation<List> { abstract class _ParseRelationOperation extends _ParseOperation<Set<ParseObject>> { - _ParseRelationOperation(Set<ParseObject> value) : super(value) { + _ParseRelationOperation(super.value) { super.valueForApiRequest = {}; } diff --git a/packages/dart/lib/src/objects/parse_operation/parse_remove_operation.dart b/packages/dart/lib/src/objects/parse_operation/parse_remove_operation.dart index 6ac974c4b..d27c427eb 100644 --- a/packages/dart/lib/src/objects/parse_operation/parse_remove_operation.dart +++ b/packages/dart/lib/src/objects/parse_operation/parse_remove_operation.dart @@ -1,8 +1,8 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// An operation that removes every instance of an element from an array class _ParseRemoveOperation extends _ParseArrayOperation { - _ParseRemoveOperation(List value) : super(value); + _ParseRemoveOperation(super.value); @override String get operationName => 'Remove'; diff --git a/packages/dart/lib/src/objects/parse_operation/parse_remove_relation_operation.dart b/packages/dart/lib/src/objects/parse_operation/parse_remove_relation_operation.dart index 725701ba3..5985d3508 100644 --- a/packages/dart/lib/src/objects/parse_operation/parse_remove_relation_operation.dart +++ b/packages/dart/lib/src/objects/parse_operation/parse_remove_relation_operation.dart @@ -1,8 +1,8 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// An operation that Removes objects from a [ParseRelation] class _ParseRemoveRelationOperation extends _ParseRelationOperation { - _ParseRemoveRelationOperation(Set<ParseObject> value) : super(value); + _ParseRemoveRelationOperation(super.value); @override String get operationName => 'RemoveRelation'; diff --git a/packages/dart/lib/src/objects/parse_relation.dart b/packages/dart/lib/src/objects/parse_relation.dart index 16d75f627..3be59616a 100644 --- a/packages/dart/lib/src/objects/parse_relation.dart +++ b/packages/dart/lib/src/objects/parse_relation.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; abstract class ParseRelation<T extends ParseObject> { //The owning object of this ParseRelation diff --git a/packages/dart/lib/src/objects/parse_response.dart b/packages/dart/lib/src/objects/parse_response.dart index 41a6950bb..ad1c21bd0 100644 --- a/packages/dart/lib/src/objects/parse_response.dart +++ b/packages/dart/lib/src/objects/parse_response.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseResponse { ParseResponse({ diff --git a/packages/dart/lib/src/objects/parse_save_state_aware_child.dart b/packages/dart/lib/src/objects/parse_save_state_aware_child.dart index 32fe4a5a1..bb1a2fe2e 100644 --- a/packages/dart/lib/src/objects/parse_save_state_aware_child.dart +++ b/packages/dart/lib/src/objects/parse_save_state_aware_child.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// An interface used to notify a child about its parent save state. /// diff --git a/packages/dart/lib/src/objects/parse_session.dart b/packages/dart/lib/src/objects/parse_session.dart index 2be307542..9f98ab1bb 100644 --- a/packages/dart/lib/src/objects/parse_session.dart +++ b/packages/dart/lib/src/objects/parse_session.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseSession extends ParseObject implements ParseCloneable { ParseSession({ diff --git a/packages/dart/lib/src/objects/parse_user.dart b/packages/dart/lib/src/objects/parse_user.dart index 6b24095ca..eb91a9cba 100644 --- a/packages/dart/lib/src/objects/parse_user.dart +++ b/packages/dart/lib/src/objects/parse_user.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseUser extends ParseObject implements ParseCloneable { /// Creates an instance of ParseUser diff --git a/packages/dart/lib/src/objects/parse_x_file.dart b/packages/dart/lib/src/objects/parse_x_file.dart index 550877603..cb66e40dc 100644 --- a/packages/dart/lib/src/objects/parse_x_file.dart +++ b/packages/dart/lib/src/objects/parse_x_file.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class ParseXFile extends ParseFileBase { /// Creates a new file base XFile @@ -6,16 +6,12 @@ class ParseXFile extends ParseFileBase { /// {https://docs.parseplatform.org/rest/guide/#files/} ParseXFile(this.file, {String? name, - String? url, - bool? debug, - ParseClient? client, - bool? autoSendSessionId}) + super.url, + super.debug, + super.client, + super.autoSendSessionId}) : super( name: file != null ? path.basename(file.path) : name!, - url: url, - debug: debug, - client: client, - autoSendSessionId: autoSendSessionId, ); XFile? file; diff --git a/packages/dart/lib/src/objects/response/parse_error_response.dart b/packages/dart/lib/src/objects/response/parse_error_response.dart index 665de480b..ef1ccb504 100644 --- a/packages/dart/lib/src/objects/response/parse_error_response.dart +++ b/packages/dart/lib/src/objects/response/parse_error_response.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// Handles any errors returned in response ParseResponse buildErrorResponse( diff --git a/packages/dart/lib/src/objects/response/parse_exception_response.dart b/packages/dart/lib/src/objects/response/parse_exception_response.dart index 2302bd1d1..2450c3425 100644 --- a/packages/dart/lib/src/objects/response/parse_exception_response.dart +++ b/packages/dart/lib/src/objects/response/parse_exception_response.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// Handles exception instead of throwing an exception ParseResponse buildParseResponseWithException(Exception exception) { diff --git a/packages/dart/lib/src/objects/response/parse_response_builder.dart b/packages/dart/lib/src/objects/response/parse_response_builder.dart index 706cd1d28..8390476e5 100644 --- a/packages/dart/lib/src/objects/response/parse_response_builder.dart +++ b/packages/dart/lib/src/objects/response/parse_response_builder.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// Handles all the ParseObject responses /// diff --git a/packages/dart/lib/src/objects/response/parse_response_utils.dart b/packages/dart/lib/src/objects/response/parse_response_utils.dart index f125c321a..812849265 100644 --- a/packages/dart/lib/src/objects/response/parse_response_utils.dart +++ b/packages/dart/lib/src/objects/response/parse_response_utils.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// Handles an API response and logs data if [bool] debug is enabled @protected diff --git a/packages/dart/lib/src/objects/response/parse_success_no_results.dart b/packages/dart/lib/src/objects/response/parse_success_no_results.dart index 24271d265..0383458b5 100644 --- a/packages/dart/lib/src/objects/response/parse_success_no_results.dart +++ b/packages/dart/lib/src/objects/response/parse_success_no_results.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../../parse_server_sdk.dart'; /// Handles successful responses with no results ParseResponse buildSuccessResponseWithNoResults( diff --git a/packages/dart/lib/src/storage/core_store.dart b/packages/dart/lib/src/storage/core_store.dart index 5b06c2d2f..06ab62938 100644 --- a/packages/dart/lib/src/storage/core_store.dart +++ b/packages/dart/lib/src/storage/core_store.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; abstract class CoreStore { Future<bool> containsKey(String key); diff --git a/packages/dart/lib/src/storage/core_store_memory.dart b/packages/dart/lib/src/storage/core_store_memory.dart index b35c10322..696876cf7 100644 --- a/packages/dart/lib/src/storage/core_store_memory.dart +++ b/packages/dart/lib/src/storage/core_store_memory.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class CoreStoreMemoryImp implements CoreStore { static Map<String, dynamic> _data = <String, dynamic>{}; diff --git a/packages/dart/lib/src/storage/core_store_sem_impl.dart b/packages/dart/lib/src/storage/core_store_sem_impl.dart index 9fc826c8d..f0bb4451b 100644 --- a/packages/dart/lib/src/storage/core_store_sem_impl.dart +++ b/packages/dart/lib/src/storage/core_store_sem_impl.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; // ignore_for_file: deprecated_member_use class CoreStoreSembastImp implements CoreStore { diff --git a/packages/dart/lib/src/storage/xxtea_codec.dart b/packages/dart/lib/src/storage/xxtea_codec.dart index 11753cf01..843e78c65 100644 --- a/packages/dart/lib/src/storage/xxtea_codec.dart +++ b/packages/dart/lib/src/storage/xxtea_codec.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; class _XXTeaEncoder extends Converter<Map<String, dynamic>, String> { _XXTeaEncoder(this.key); diff --git a/packages/dart/lib/src/utils/parse_date_format.dart b/packages/dart/lib/src/utils/parse_date_format.dart index 427829357..69b88e34d 100644 --- a/packages/dart/lib/src/utils/parse_date_format.dart +++ b/packages/dart/lib/src/utils/parse_date_format.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; final _ParseDateFormat _parseDateFormat = _ParseDateFormat._internal(); diff --git a/packages/dart/lib/src/utils/parse_decoder.dart b/packages/dart/lib/src/utils/parse_decoder.dart index 252793ee3..3a3f043f0 100644 --- a/packages/dart/lib/src/utils/parse_decoder.dart +++ b/packages/dart/lib/src/utils/parse_decoder.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; List _convertJSONArrayToList(List<dynamic> array) { return array.map(parseDecode).toList(); diff --git a/packages/dart/lib/src/utils/parse_encoder.dart b/packages/dart/lib/src/utils/parse_encoder.dart index d712acb83..c957a39e9 100644 --- a/packages/dart/lib/src/utils/parse_encoder.dart +++ b/packages/dart/lib/src/utils/parse_encoder.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// Custom encoder for DateTime dynamic dateTimeEncoder(dynamic item) { diff --git a/packages/dart/lib/src/utils/parse_live_list.dart b/packages/dart/lib/src/utils/parse_live_list.dart index 99df16cc2..43464c5e7 100644 --- a/packages/dart/lib/src/utils/parse_live_list.dart +++ b/packages/dart/lib/src/utils/parse_live_list.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; // ignore_for_file: invalid_use_of_protected_member class ParseLiveList<T extends ParseObject> { @@ -31,6 +31,7 @@ class ParseLiveList<T extends ParseObject> { } final QueryBuilder<T> _query; + //The included Items, where LiveList should look for updates. final Map<String, dynamic> _listeningIncludes; final bool _lazyLoading; @@ -539,6 +540,10 @@ class ParseLiveElement<T extends ParseObject> extends ParseLiveListElement<T> { super.object = parseResponse.result.first; } break; + case LiveQueryClientEvent.disconnected: + break; + case LiveQueryClientEvent.userDisconnected: + break; } }); }); @@ -742,6 +747,7 @@ class PathKey { final String key; Subscription<ParseObject>? subscription; + @override String toString() { return 'PathKey(key: $key, subscription: ${subscription?.requestId})'; @@ -761,17 +767,17 @@ abstract class ParseLiveListEvent<T extends ParseObject> { class ParseLiveListAddEvent<T extends ParseObject> extends ParseLiveListEvent<T> { - ParseLiveListAddEvent(int index, T object) : super(index, object); + ParseLiveListAddEvent(super.index, super.object); } class ParseLiveListUpdateEvent<T extends ParseObject> extends ParseLiveListEvent<T> { - ParseLiveListUpdateEvent(int index, T object) : super(index, object); + ParseLiveListUpdateEvent(super.index, super.object); } class ParseLiveListDeleteEvent<T extends ParseObject> extends ParseLiveListEvent<T> { - ParseLiveListDeleteEvent(int index, T object) : super(index, object); + ParseLiveListDeleteEvent(super.index, super.object); } class ParseLiveListElementSnapshot<T extends ParseObject> { diff --git a/packages/dart/lib/src/utils/parse_logger.dart b/packages/dart/lib/src/utils/parse_logger.dart index 0e3f507f5..e67bf6b8d 100644 --- a/packages/dart/lib/src/utils/parse_logger.dart +++ b/packages/dart/lib/src/utils/parse_logger.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; void logAPIResponse( String className, String type, ParseResponse parseResponse) { diff --git a/packages/dart/lib/src/utils/parse_login_helpers.dart b/packages/dart/lib/src/utils/parse_login_helpers.dart index 88f03a54a..8147bf30c 100644 --- a/packages/dart/lib/src/utils/parse_login_helpers.dart +++ b/packages/dart/lib/src/utils/parse_login_helpers.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; Map<String, dynamic> facebook(String token, String id, DateTime expires) { return <String, dynamic>{ diff --git a/packages/dart/lib/src/utils/parse_utils.dart b/packages/dart/lib/src/utils/parse_utils.dart index 4a122952b..13dee46e5 100644 --- a/packages/dart/lib/src/utils/parse_utils.dart +++ b/packages/dart/lib/src/utils/parse_utils.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// Checks whether debug is enabled /// diff --git a/packages/dart/lib/src/utils/valuable.dart b/packages/dart/lib/src/utils/valuable.dart index 8c1c79e9a..2a4522181 100644 --- a/packages/dart/lib/src/utils/valuable.dart +++ b/packages/dart/lib/src/utils/valuable.dart @@ -1,4 +1,4 @@ -part of flutter_parse_sdk; +part of '../../parse_server_sdk.dart'; /// A unified interface used to expose the internal state of a private class. /// diff --git a/packages/dart/pubspec.yaml b/packages/dart/pubspec.yaml index b50734a96..369c91e8c 100644 --- a/packages/dart/pubspec.yaml +++ b/packages/dart/pubspec.yaml @@ -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: 6.4.0 +version: 7.0.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 @@ -18,36 +18,36 @@ topics: - backend environment: - sdk: ">=2.19.6 <4.0.0" + sdk: ">=3.0.7 <4.0.0" dependencies: # Networking - dio: ^5.2.0+1 - http: ^0.13.5 + dio: ^5.4.2+1 + http: ^1.1.0 web_socket_channel: ^2.4.0 #Database - sembast: ^3.4.6+1 - sembast_web: ^2.1.3 + sembast: ^3.6.0 + sembast_web: ^2.2.0 # Utils - uuid: ^3.0.7 - meta: ^1.8.0 - path: ^1.8.2 + uuid: ^4.3.3 + meta: ^1.12.0 + path: ^1.9.0 mime: ^1.0.4 timezone: ^0.9.2 - universal_io: ^2.2.0 + universal_io: ^2.2.2 xxtea: ^2.1.0 - collection: ^1.16.0 - cross_file: ^0.3.3+6 + collection: ^1.18.0 + cross_file: ^0.3.3+7 dev_dependencies: - lints: ^2.0.1 + lints: ^3.0.0 # Testing - build_runner: ^2.3.3 - mockito: ^5.3.2 - test: ^1.23.1 + build_runner: ^2.4.9 + mockito: ^5.4.2 + test: ^1.24.9 screenshots: - description: Parse Platform logo.