diff --git a/packages/amplify_core/lib/src/category/amplify_analytics_category.dart b/packages/amplify_core/lib/src/category/amplify_analytics_category.dart index 49ddb59658..06e7a8f594 100644 --- a/packages/amplify_core/lib/src/category/amplify_analytics_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_analytics_category.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of amplify_interface; +part of 'amplify_categories.dart'; class AnalyticsCategory extends AmplifyCategory { @override diff --git a/packages/amplify_core/lib/src/category/amplify_api_category.dart b/packages/amplify_core/lib/src/category/amplify_api_category.dart index 832d3c9341..bb4bda9392 100644 --- a/packages/amplify_core/lib/src/category/amplify_api_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_api_category.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of amplify_interface; +part of 'amplify_categories.dart'; class APICategory extends AmplifyCategory { @override diff --git a/packages/amplify_core/lib/src/category/amplify_datastore_category.dart b/packages/amplify_core/lib/src/category/amplify_datastore_category.dart index 76a1bacc5a..1041db75ec 100644 --- a/packages/amplify_core/lib/src/category/amplify_datastore_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_datastore_category.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of amplify_interface; +part of 'amplify_categories.dart'; /// Interface for DataStore category. This expose all the APIs that /// are supported by this category's plugins. This class will accept plugins to diff --git a/packages/amplify_core/lib/src/category/amplify_notifications_category.dart b/packages/amplify_core/lib/src/category/amplify_notifications_category.dart index a4aa88c4c6..a59e2a1501 100644 --- a/packages/amplify_core/lib/src/category/amplify_notifications_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_notifications_category.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of amplify_interface; +part of 'amplify_categories.dart'; /// {@template amplify_core.amplify_notifications_category} /// Top-Level Category for Notifications. diff --git a/packages/amplify_core/lib/src/category/amplify_push_notifications_category.dart b/packages/amplify_core/lib/src/category/amplify_push_notifications_category.dart index 1613e8e852..ede1168dcd 100644 --- a/packages/amplify_core/lib/src/category/amplify_push_notifications_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_push_notifications_category.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of amplify_interface; +part of 'amplify_categories.dart'; class PushNotificationsCategory extends AmplifyCategory { diff --git a/packages/amplify_core/lib/src/category/amplify_storage_category.dart b/packages/amplify_core/lib/src/category/amplify_storage_category.dart index 2a8d158b25..448e1dc1ed 100644 --- a/packages/amplify_core/lib/src/category/amplify_storage_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_storage_category.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of amplify_interface; +part of 'amplify_categories.dart'; /// {@template amplify_core.amplify_storage_category} /// The Amplify Storage category provides an interface for interacting with diff --git a/packages/amplify_core/lib/src/types/analytics/analytics_types.dart b/packages/amplify_core/lib/src/types/analytics/analytics_types.dart index ca1b4e7e49..677df6940c 100644 --- a/packages/amplify_core/lib/src/types/analytics/analytics_types.dart +++ b/packages/amplify_core/lib/src/types/analytics/analytics_types.dart @@ -1,15 +1,14 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -/// Exception Types. +// Exception Types. export '../exception/amplify_exception.dart' show AnalyticsException, InvalidEventException, NetworkException, UnknownException; - -/// API Types. +// API Types. export 'analytics/analytics_event.dart'; export 'analytics/custom_properties.dart'; export 'analytics/user_profile.dart'; diff --git a/packages/amplify_core/lib/src/types/auth/auth_types.dart b/packages/amplify_core/lib/src/types/auth/auth_types.dart index 90ae525acc..bca9c61662 100644 --- a/packages/amplify_core/lib/src/types/auth/auth_types.dart +++ b/packages/amplify_core/lib/src/types/auth/auth_types.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -/// Exceptions +// Exceptions export '../exception/amplify_exception.dart' show AuthException, @@ -14,8 +14,7 @@ export '../exception/amplify_exception.dart' AuthValidationException, NetworkException, UnknownException; - -/// Attributes +// Attributes export 'attribute/auth_next_update_attribute_step.dart'; export 'attribute/auth_update_attribute_step.dart'; export 'attribute/auth_user_attribute.dart'; @@ -29,23 +28,19 @@ export 'attribute/send_user_attribute_verification_code_result.dart'; export 'attribute/update_user_attribute_options.dart'; export 'attribute/update_user_attribute_result.dart'; export 'attribute/update_user_attributes_options.dart'; - -/// Common +// Common export 'auth_code_delivery_details.dart'; export 'auth_device.dart'; export 'auth_next_step.dart'; - -/// Hub +// Hub export 'hub/auth_hub_event.dart'; - -/// MFA +// MFA export 'mfa/mfa_preference.dart'; export 'mfa/totp_setup_details.dart'; export 'mfa/totp_setup_options.dart'; export 'mfa/user_mfa_preference.dart'; export 'mfa/verify_totp_setup_options.dart'; - -/// Password +// Password export 'password/auth_reset_password_step.dart'; export 'password/confirm_reset_password_options.dart'; export 'password/reset_password_options.dart'; @@ -53,15 +48,13 @@ export 'password/reset_password_result.dart'; export 'password/reset_password_step.dart'; export 'password/update_password_options.dart'; export 'password/update_password_result.dart'; - -/// Session +// Session export 'session/auth_session.dart'; export 'session/auth_user.dart'; export 'session/fetch_auth_session_options.dart'; export 'session/get_current_user_options.dart'; export 'session/sign_in_details.dart'; - -/// Sign In +// Sign In export 'sign_in/auth_next_sign_in_step.dart'; export 'sign_in/auth_provider.dart'; export 'sign_in/auth_sign_in_step.dart'; @@ -69,12 +62,10 @@ export 'sign_in/confirm_sign_in_options.dart'; export 'sign_in/sign_in_options.dart'; export 'sign_in/sign_in_result.dart'; export 'sign_in/sign_in_with_web_ui_options.dart'; - -/// Sign Out +// Sign Out export 'sign_out/sign_out_options.dart'; export 'sign_out/sign_out_result.dart'; - -/// Sign Up +// Sign Up export 'sign_up/auth_next_sign_up_step.dart'; export 'sign_up/auth_sign_up_step.dart'; export 'sign_up/confirm_sign_up_options.dart'; diff --git a/packages/amplify_lints/pubspec.yaml b/packages/amplify_lints/pubspec.yaml index caec621d36..da475ab414 100644 --- a/packages/amplify_lints/pubspec.yaml +++ b/packages/amplify_lints/pubspec.yaml @@ -9,5 +9,5 @@ environment: sdk: ^3.0.0 dependencies: - flutter_lints: ^2.0.0 - lints: ^2.1.0 + flutter_lints: ^3.0.0 + lints: ^3.0.0 diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider.dart index f9dc2bcde7..4e4da89cdd 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider.dart @@ -1,12 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -/// {@template amplify_analytics_pinpoint.device_info_provider} -/// Provides DeviceInfo from Flutter -> Dart. -/// {@endtemplate} - -/// Multi platform class that provides DeviceInfo. -/// Requires Flutter specific dependencies. export 'device_info_provider_stub.dart' if (dart.library.html) 'device_info_provider_html.dart' if (dart.library.io) 'device_info_provider_io.dart'; diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_stub.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_stub.dart index 34fb1446ca..5d5d6ba9ba 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_stub.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_stub.dart @@ -3,7 +3,11 @@ import 'package:amplify_analytics_pinpoint/src/device_context_info_provider/device_info_provider/device_info.dart'; -/// Retrieve DeviceInfo +/// {@template amplify_analytics_pinpoint.device_info_provider} +/// Multi platform class that provides DeviceInfo from Flutter -> Dart. +/// Requires Flutter specific dependencies. +/// {@endtemplate} + Future getDeviceInfo() async { throw UnsupportedError( 'No suitable implementation was found on this platform.', diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_path_provider/flutter_path_provider.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_path_provider/flutter_path_provider.dart index 875927bdd9..a82439198a 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_path_provider/flutter_path_provider.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_path_provider/flutter_path_provider.dart @@ -1,9 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -/// {@template amplify_analytics_pinpoint.flutter_path_provider} -/// Provides device storage location. -/// {@endtemplate} export 'flutter_path_provider_stub.dart' if (dart.library.html) 'flutter_path_provider_html.dart' if (dart.library.io) 'flutter_path_provider_io.dart'; diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_path_provider/flutter_path_provider_stub.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_path_provider/flutter_path_provider_stub.dart index c712e7d43c..7d671a41ec 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_path_provider/flutter_path_provider_stub.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_path_provider/flutter_path_provider_stub.dart @@ -4,7 +4,9 @@ // ignore: implementation_imports import 'package:amplify_analytics_pinpoint_dart/src/impl/flutter_provider_interfaces/cached_events_path_provider.dart'; -/// {@macro amplify_analytics_pinpoint.flutter_path_provider} +/// {@template amplify_analytics_pinpoint.flutter_path_provider} +/// Provides device storage location. +/// {@endtemplate} class FlutterPathProvider implements CachedEventsPathProvider { @override Future getApplicationSupportPath() async { diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_in_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_in_form_field.dart index 4b657669ba..409faffa3f 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_in_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_in_form_field.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of authenticator.form_field; +part of '../form_field.dart'; /// {@category Prebuilt Widgets} /// {@template amplify_authenticator.confirm_sign_in_form_field} diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_up_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_up_form_field.dart index c3495b9b64..c262ba3888 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_up_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_up_form_field.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of authenticator.form_field; +part of '../form_field.dart'; /// {@category Prebuilt Widgets} /// {@template amplify_authenticator.confirm_sign_up_form_field} diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_selection_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_selection_form_field.dart index c7c18fb5f7..f5587071d0 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_selection_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_selection_form_field.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of authenticator.form_field; +part of '../form_field.dart'; /// {@category Prebuilt Widgets} /// {@template amplify_authenticator.mfa_selection_form_field} diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/reset_password_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/reset_password_form_field.dart index 2710d48357..01d0dd854e 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/reset_password_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/reset_password_form_field.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of authenticator.form_field; +part of '../form_field.dart'; /// {@category Prebuilt Widgets} /// {@template amplify_authenticator.confirm_sign_up_form_field} diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_in_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_in_form_field.dart index 9d015ab46e..d65618fa04 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_in_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_in_form_field.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of authenticator.form_field; +part of '../form_field.dart'; /// {@category Prebuilt Widgets} /// {@template amplify_authenticator.sign_in_form_field} diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_up_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_up_form_field.dart index 8c9d00679c..94b9e39517 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_up_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_up_form_field.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of authenticator.form_field; +part of '../form_field.dart'; /// {@category Prebuilt Widgets} /// {@template amplify_authenticator.sign_up_form_field} diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/totp_setup_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/totp_setup_form_field.dart index 3faa90a16c..a5398cf2cb 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/totp_setup_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/totp_setup_form_field.dart @@ -3,7 +3,7 @@ // ignore_for_file: use_build_context_synchronously -part of authenticator.form_field; +part of '../form_field.dart'; /// {@category Prebuilt Widgets} /// {@template amplify_authenticator.instruction_form_field} diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/verify_user_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/verify_user_form_field.dart index 5e73bd1042..124a421813 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/verify_user_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/verify_user_form_field.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of authenticator.form_field; +part of '../form_field.dart'; /// {@category Prebuilt Widgets} /// {@template amplify_authenticator.verify_user_form_field} diff --git a/packages/smithy/goldens/pubspec.yaml b/packages/smithy/goldens/pubspec.yaml index f69aebcf0b..c80fb814a2 100644 --- a/packages/smithy/goldens/pubspec.yaml +++ b/packages/smithy/goldens/pubspec.yaml @@ -26,7 +26,7 @@ dev_dependencies: args: ^2.3.1 file: ">=6.0.0 <8.0.0" glob: ^2.0.2 - lints: ^2.0.0 + lints: ^3.0.0 path: any pubspec_parse: ^1.2.0 smithy_codegen: diff --git a/packages/test/pub_server/lib/src/server.dart b/packages/test/pub_server/lib/src/server.dart index 13d86859e6..0aa06950f6 100644 --- a/packages/test/pub_server/lib/src/server.dart +++ b/packages/test/pub_server/lib/src/server.dart @@ -294,7 +294,7 @@ class PubServer { Handler get handler => const Pipeline() .addMiddleware(_loggerMiddleware) .addMiddleware(corsMiddleware) - .addHandler(_$PubServerRouter(this)); + .addHandler(_$PubServerRouter(this).call); } /// Allows access from Web UI.