From 62be7582942f5d1276bf082c3f1cce1b65d0baf9 Mon Sep 17 00:00:00 2001 From: Phill Date: Sat, 12 Jan 2019 18:02:03 +0000 Subject: [PATCH 1/2] Version 1.0.5 - Fixing save issues --- .idea/flutter_parse_sdk.iml | 19 + .idea/libraries/Dart_Packages.xml | 28 + .idea/libraries/Dart_SDK.xml | 38 +- .idea/libraries/Flutter_Plugins.xml | 4 +- .idea/libraries/Flutter_for_Android.xml | 7 - .idea/misc.xml | 4 +- .idea/modules.xml | 3 +- .../example_lib_main_dart.xml | 7 - .idea/vcs.xml | 6 + .idea/workspace.xml | 1172 ++++++++++------- CHANGELOG.md | 37 +- README.md | 223 +++- example/ios/Flutter/Debug.xcconfig | 1 + example/ios/Flutter/Release.xcconfig | 1 + example/lib/application_constants.dart | 8 +- example/lib/diet_plan.dart | 85 +- example/lib/main.dart | 109 +- lib/base/parse_constants.dart | 10 - lib/data/parse_data.dart | 27 - lib/data/parse_data_objects.dart | 19 - lib/data/parse_data_server.dart | 35 - lib/data/parse_data_user.dart | 53 - lib/enums/parse_enum_object_call.dart | 26 - lib/enums/parse_enum_user_call.dart | 32 - lib/network/parse_http_client.dart | 23 - lib/network/parse_query.dart | 282 ---- lib/objects/parse_base.dart | 52 - lib/objects/parse_exception.dart | 8 - lib/objects/parse_object.dart | 99 -- lib/objects/parse_response.dart | 75 -- lib/objects/parse_user.dart | 165 --- lib/parse.dart | 120 +- lib/src/base/parse_constants.dart | 43 + lib/src/data/parse_core_data.dart | 53 + lib/src/enums/parse_enum_api_rq.dart | 20 + lib/src/network/parse_http_client.dart | 20 + lib/{ => src}/network/parse_livequery.dart | 6 +- lib/src/network/parse_query.dart | 268 ++++ lib/src/objects/parse_base.dart | 175 +++ lib/src/objects/parse_clonable.dart | 6 + lib/src/objects/parse_error.dart | 79 ++ lib/src/objects/parse_function.dart | 29 + lib/src/objects/parse_geo_point.dart | 30 + lib/src/objects/parse_object.dart | 127 ++ lib/src/objects/parse_response.dart | 92 ++ lib/src/objects/parse_user.dart | 278 ++++ lib/src/utils/parse_decoder.dart | 74 ++ lib/src/utils/parse_encoder.dart | 43 + lib/src/utils/parse_logger.dart | 30 + lib/src/utils/parse_utils.dart | 11 + lib/src/utils/parse_utils_date.dart | 51 + lib/src/utils/parse_utils_objects.dart | 9 + lib/utils/parse_utils_date.dart | 20 - lib/utils/parse_utils_network.dart | 6 - lib/utils/parse_utils_objects.dart | 13 - pubspec.yaml | 8 +- 56 files changed, 2635 insertions(+), 1634 deletions(-) create mode 100644 .idea/flutter_parse_sdk.iml create mode 100644 .idea/libraries/Dart_Packages.xml delete mode 100644 .idea/libraries/Flutter_for_Android.xml delete mode 100644 .idea/runConfigurations/example_lib_main_dart.xml create mode 100644 .idea/vcs.xml delete mode 100644 lib/base/parse_constants.dart delete mode 100644 lib/data/parse_data.dart delete mode 100644 lib/data/parse_data_objects.dart delete mode 100644 lib/data/parse_data_server.dart delete mode 100644 lib/data/parse_data_user.dart delete mode 100644 lib/enums/parse_enum_object_call.dart delete mode 100644 lib/enums/parse_enum_user_call.dart delete mode 100644 lib/network/parse_http_client.dart delete mode 100644 lib/network/parse_query.dart delete mode 100644 lib/objects/parse_base.dart delete mode 100644 lib/objects/parse_exception.dart delete mode 100644 lib/objects/parse_object.dart delete mode 100644 lib/objects/parse_response.dart delete mode 100644 lib/objects/parse_user.dart create mode 100644 lib/src/base/parse_constants.dart create mode 100644 lib/src/data/parse_core_data.dart create mode 100644 lib/src/enums/parse_enum_api_rq.dart create mode 100644 lib/src/network/parse_http_client.dart rename lib/{ => src}/network/parse_livequery.dart (89%) create mode 100644 lib/src/network/parse_query.dart create mode 100644 lib/src/objects/parse_base.dart create mode 100644 lib/src/objects/parse_clonable.dart create mode 100644 lib/src/objects/parse_error.dart create mode 100644 lib/src/objects/parse_function.dart create mode 100644 lib/src/objects/parse_geo_point.dart create mode 100644 lib/src/objects/parse_object.dart create mode 100644 lib/src/objects/parse_response.dart create mode 100644 lib/src/objects/parse_user.dart create mode 100644 lib/src/utils/parse_decoder.dart create mode 100644 lib/src/utils/parse_encoder.dart create mode 100644 lib/src/utils/parse_logger.dart create mode 100644 lib/src/utils/parse_utils.dart create mode 100644 lib/src/utils/parse_utils_date.dart create mode 100644 lib/src/utils/parse_utils_objects.dart delete mode 100644 lib/utils/parse_utils_date.dart delete mode 100644 lib/utils/parse_utils_network.dart delete mode 100644 lib/utils/parse_utils_objects.dart diff --git a/.idea/flutter_parse_sdk.iml b/.idea/flutter_parse_sdk.iml new file mode 100644 index 000000000..c9d208a4e --- /dev/null +++ b/.idea/flutter_parse_sdk.iml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml new file mode 100644 index 000000000..97a3d9f67 --- /dev/null +++ b/.idea/libraries/Dart_Packages.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml index 33279489a..128e0bcc2 100644 --- a/.idea/libraries/Dart_SDK.xml +++ b/.idea/libraries/Dart_SDK.xml @@ -1,25 +1,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/.idea/libraries/Flutter_Plugins.xml b/.idea/libraries/Flutter_Plugins.xml index 53449daee..22987bdb6 100644 --- a/.idea/libraries/Flutter_Plugins.xml +++ b/.idea/libraries/Flutter_Plugins.xml @@ -1,7 +1,7 @@ - + - + diff --git a/.idea/libraries/Flutter_for_Android.xml b/.idea/libraries/Flutter_for_Android.xml deleted file mode 100644 index 3a5f76447..000000000 --- a/.idea/libraries/Flutter_for_Android.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index c75aae1ba..8dc6d52f3 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -29,5 +29,7 @@ - + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index c81a67101..c749759a5 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,8 +2,7 @@ - - + \ No newline at end of file diff --git a/.idea/runConfigurations/example_lib_main_dart.xml b/.idea/runConfigurations/example_lib_main_dart.xml deleted file mode 100644 index d2e33a592..000000000 --- a/.idea/runConfigurations/example_lib_main_dart.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 6c1dca3ea..d754f93d2 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,6 +1,7 @@ + @@ -9,38 +10,67 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - flutter_test - parse - bodycal/parse + User() + import + BaseClient + bad + client + send + getObjectData()[key] + ParseResponse + setObjectData + saveInStorage + Store + fromJson + ParseBase + ParseObject + userLogger + user + toJson + toString + encode( - parse_server_sdk + part + ParseBase + ParseResponse + logger + object - - - + + + + + - - - - - - - - - - - @@ -381,468 +461,561 @@ - - 1537612077691 + + 1546881355795 - - 1537714842215 + + 1546884752230 + + 1546887791210 + - + + + + + + + + + - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - + + + - - - - + + + - - + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + - - - - objectData + getObjectData() + Dart + EXPRESSION + + + await ParseCoreData().getStore().getString(key) Dart EXPRESSION - value.body + await ParseCoreData().getStore().setString(key, toJson()) Dart EXPRESSION - client + ParseCoreData().getStore().setString(key, toJson()) Dart EXPRESSION - ParseHTTPClient + ParseCoreData().getStore().setString(key, toJson()); + Dart + EXPRESSION + + + emailAddress + Dart + EXPRESSION + + + resultsList.first.objectId + Dart + EXPRESSION + + + resultsList.first + Dart + EXPRESSION + + + JsonEncoder().convert(_objectData) + Dart + EXPRESSION + + + JsonEncoder().convert(objectData) Dart EXPRESSION - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - + + - + - - + + - - - + - - + + - + + - - + + - + - - + + - + - - + + - + - - + + - + - - + + + + + + - + - - + + - + - - + + - + - - + + - + - - + + - - - - - - - - - + - - + + - + - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - - - - - - - - - - - - - - - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - + + + + + + + - - - - - + + + - - - - + + + + + - - - - - - + - - - - + - - - - + + + + + + + - - - - - + + + - + - - + + - + - - - - - + + - + - - - - - + + - + - - - - - + + - + - - + + @@ -863,7 +1036,7 @@ - Android (parse_android)|Android + No facets are configured - parse_android + flutter_parse_sdk + + + + + + + + 1.8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + @@ -130,8 +84,26 @@ - - + + + + + + + + + + + + + + + + + + + + @@ -139,8 +111,44 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -154,6 +162,15 @@ + + + + + + + + + @@ -177,6 +194,9 @@ toJson toString encode( + Json() + saV + save part @@ -226,24 +246,24 @@ @@ -259,24 +279,6 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + +