forked from aws-amplify/amplify-flutter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "chore(amplify_core): move model-related types from datastore …
…interface to amplify_core (aws-amplify#1023)" (aws-amplify#1102) This reverts commit 176653e.
- Loading branch information
Showing
39 changed files
with
116 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
packages/amplify_core/lib/src/types/exception/codegen_exception.dart
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
import 'dart:convert'; | ||
import 'dart:io'; | ||
|
||
dynamic getJsonFromFile(String path) async { | ||
path = 'resources/' + path; | ||
String jsonString = ''; | ||
try { | ||
jsonString = await File(path).readAsString(); | ||
} catch (e) { | ||
jsonString = await File('test/' + path).readAsString(); | ||
} | ||
return jsonDecode(jsonString); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 7 additions & 20 deletions
27
packages/amplify_datastore_plugin_interface/lib/src/publicTypes.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,11 @@ | ||
export 'package:amplify_core/src/types/models/auth_rule.dart'; | ||
export 'package:amplify_core/src/types/models/model.dart'; | ||
export 'package:amplify_core/src/types/models/model_field.dart'; | ||
export 'package:amplify_core/src/types/models/model_field_definition.dart'; | ||
export 'package:amplify_core/src/types/models/model_field_type.dart'; | ||
export 'package:amplify_core/src/types/models/model_provider.dart'; | ||
export 'package:amplify_core/src/types/models/model_schema.dart'; | ||
export 'package:amplify_core/src/types/models/model_schema_definition.dart'; | ||
export 'package:amplify_core/src/types/query/query_field.dart'; | ||
export 'package:amplify_core/src/types/query/query_field.dart'; | ||
export 'package:amplify_core/src/types/temporal/datetime_parse.dart'; | ||
export 'package:amplify_core/src/types/temporal/temporal_date.dart'; | ||
export 'package:amplify_core/src/types/temporal/temporal_datetime.dart'; | ||
export 'package:amplify_core/src/types/temporal/temporal_time.dart'; | ||
export 'package:amplify_core/src/types/temporal/temporal_timestamp.dart'; | ||
export 'package:amplify_core/src/util/parsers.dart'; | ||
export 'package:amplify_core/src/util/uuid.dart'; | ||
|
||
export 'types/exception/DataStoreException.dart'; | ||
export 'types/exception/DataStoreExceptionMessages.dart'; | ||
export 'types/models/observe_query_throttle_options.dart'; | ||
export 'types/models/query_snapshot.dart'; | ||
export 'types/models/subscription_event.dart'; | ||
export 'types/models/query_snapshot.dart'; | ||
export 'types/models/observe_query_throttle_options.dart'; | ||
export 'types/sync/DataStoreSyncExpression.dart'; | ||
export 'types/temporal/temporal_date.dart'; | ||
export 'types/temporal/temporal_time.dart'; | ||
export 'types/temporal/temporal_datetime.dart'; | ||
export 'types/temporal/temporal_timestamp.dart'; | ||
export 'types/query/query_field.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/amplify_datastore_plugin_interface/lib/src/types/models/uuid.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
import 'package:uuid/uuid.dart'; | ||
|
||
class UUID { | ||
static final _internal = Uuid(); | ||
|
||
static String getUUID() { | ||
return _internal.v4(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.