Skip to content

Commit

Permalink
chore(deps): Bump lints and flutter_lints version (#4051)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikaHsn authored Nov 1, 2023
1 parent b3e9349 commit 5862746
Show file tree
Hide file tree
Showing 23 changed files with 38 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -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<AnalyticsPluginInterface> {
@override
Expand Down
Original file line number Diff line number Diff line change
@@ -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<APIPluginInterface> {
@override
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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<PushNotificationsPluginInterface> {
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
29 changes: 10 additions & 19 deletions packages/amplify_core/lib/src/types/auth/auth_types.dart
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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';
Expand All @@ -29,52 +28,44 @@ 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';
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';
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';
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify_lints/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -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<DeviceInfo> getDeviceInfo() async {
throw UnsupportedError(
'No suitable implementation was found on this platform.',
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> getApplicationSupportPath() async {
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
2 changes: 1 addition & 1 deletion packages/smithy/goldens/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/test/pub_server/lib/src/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5862746

Please sign in to comment.