Skip to content

Commit

Permalink
fix all imports
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmer committed Sep 13, 2024
1 parent 0952927 commit a4a36a4
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 28 deletions.
5 changes: 0 additions & 5 deletions lib/api/token_container_api_endpoint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,23 @@
* limitations under the License.
*/
import 'dart:convert';
import 'dart:math';
import 'dart:typed_data';

import 'package:collection/collection.dart';
import 'package:cryptography/cryptography.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:http/http.dart';
import 'package:privacyidea_authenticator/model/extensions/enums/ec_key_algorithm_extension.dart';
import 'package:privacyidea_authenticator/processors/scheme_processors/token_import_scheme_processors/otp_auth_processor.dart';
import 'package:privacyidea_authenticator/utils/ecc_utils.dart';
import 'package:privacyidea_authenticator/utils/privacyidea_io_client.dart';

import '../model/enums/ec_key_algorithm.dart';
import '../model/riverpod_states/token_state.dart';
import '../model/token_import/token_origin_data.dart';
import '../model/token_template.dart';
import '../model/tokens/container_credentials.dart';
import '../model/tokens/token.dart';
import '../utils/globals.dart';
import '../utils/identifiers.dart';
import '../utils/logger.dart';

import '../widgets/dialog_widgets/enter_passphrase_dialog.dart';

part 'token_container_api_endpoint.freezed.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

import '../../../utils/logger.dart';

abstract class StateNotifierProviderListener<T extends StateNotifier<S>, S> {
Expand Down
2 changes: 1 addition & 1 deletion lib/mains/main_netknights.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import '../utils/customization/application_customization.dart';
import '../utils/globals.dart';
import '../utils/home_widget_utils.dart';
import '../utils/logger.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/settings_notifier.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/app_constraints_notifier.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/settings_notifier.dart';
import '../views/add_token_manually_view/add_token_manually_view.dart';
import '../views/container_view/container_view.dart';
import '../views/feedback_view/feedback_view.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/model/extensions/enums/introduction_extension.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../riverpod_states/settings_state.dart';

import '../../../l10n/app_localizations.dart';
import '../../../utils/riverpod/riverpod_providers/generated_providers/settings_notifier.dart';
import '../../../utils/riverpod/riverpod_providers/generated_providers/token_notifier.dart';
import '../../enums/introduction.dart';
import '../../riverpod_states/introduction_state.dart';
import '../../riverpod_states/settings_state.dart';

extension IntroductionX on Introduction {
/// Checks if the condition for the given state is fulfilled.
Expand Down
2 changes: 1 addition & 1 deletion lib/model/tokens/hotp_token.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@

import 'package:json_annotation/json_annotation.dart';
import 'package:privacyidea_authenticator/utils/type_matchers.dart';
import '../token_template.dart';
import 'package:uuid/uuid.dart';

import '../../utils/identifiers.dart';
import '../enums/algorithms.dart';
import '../enums/token_types.dart';
import '../extensions/enums/algorithms_extension.dart';
import '../token_import/token_origin_data.dart';
import '../token_template.dart';
import 'otp_token.dart';
import 'token.dart';

Expand Down
4 changes: 3 additions & 1 deletion lib/model/tokens/totp_token.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@

import 'package:json_annotation/json_annotation.dart';
import 'package:uuid/uuid.dart';

import '../../utils/identifiers.dart';
import '../../utils/logger.dart';
import '../../utils/type_matchers.dart';
import '../enums/algorithms.dart';
import '../enums/token_types.dart';
import '../extensions/enums/algorithms_extension.dart';
import '../token_template.dart';
import '../token_import/token_origin_data.dart';
import '../token_template.dart';
import 'otp_token.dart';
import 'token.dart';

part 'totp_token.g.dart';

@JsonSerializable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import 'package:privacyidea_authenticator/l10n/app_localizations.dart';
import 'package:privacyidea_authenticator/utils/errors.dart';
import 'package:privacyidea_authenticator/utils/globals.dart';
import 'package:privacyidea_authenticator/utils/riverpod/riverpod_providers/generated_providers/credential_notifier.dart';

import '../../model/processor_result.dart';
import '../../model/tokens/container_credentials.dart';
import '../../utils/identifiers.dart';
import 'scheme_processor_interface.dart';
import '../../utils/logger.dart';

import '../../model/tokens/container_credentials.dart';
import 'scheme_processor_interface.dart';

class ContainerCredentialsProcessor extends SchemeProcessor {
static const resultHandlerType = TypeValidatorRequired<ContainerCredentialsNotifier>();
Expand Down
2 changes: 1 addition & 1 deletion lib/repo/secure_container_credentials_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import 'dart:convert';

import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:mutex/mutex.dart';
import '../interfaces/repo/container_credentials_repository.dart';

import '../interfaces/repo/container_credentials_repository.dart';
import '../model/riverpod_states/credentials_state.dart';
import '../model/tokens/container_credentials.dart';
import '../utils/logger.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import '../../../../model/enums/token_import_type.dart';
import '../../../../model/enums/token_origin_source_type.dart';
import '../../../../model/processor_result.dart';
import '../../../../model/riverpod_states/token_state.dart';
import '../../../../model/token_template.dart';
import '../../../../model/tokens/hotp_token.dart';
import '../../../../model/tokens/otp_token.dart';
import '../../../../model/tokens/push_token.dart';
Expand All @@ -57,8 +56,8 @@ import '../../../privacyidea_io_client.dart';
import '../../../rsa_utils.dart';
import '../../../utils.dart';
import '../../../view_utils.dart';
import 'settings_notifier.dart';
import '../state_providers/status_message_provider.dart';
import 'settings_notifier.dart';

part 'token_notifier.g.dart';

Expand Down
1 change: 0 additions & 1 deletion lib/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import 'package:package_info_plus/package_info_plus.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:privacyidea_authenticator/mains/main_netknights.dart';
import 'package:privacyidea_authenticator/model/extensions/sortable_list.dart';
import 'package:privacyidea_authenticator/processors/scheme_processors/token_import_scheme_processors/token_import_scheme_processor_interface.dart';
import 'package:privacyidea_authenticator/utils/identifiers.dart';
import 'package:privacyidea_authenticator/utils/logger.dart';
import 'package:privacyidea_authenticator/utils/riverpod/riverpod_providers/generated_providers/sortable_notifier.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* limitations under the License.
*/
import 'package:flutter/material.dart';

import '../../../utils/logger.dart';
import '../../../widgets/deactivateable.dart';
import 'add_token_manually_row.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/views/container_view/container_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import '../../l10n/app_localizations.dart';
import '../../model/tokens/container_credentials.dart';
import '../../utils/customization/theme_extentions/action_theme.dart';
import '../../utils/riverpod/riverpod_providers/generated_providers/token_notifier.dart';
import '../main_view/main_view_widgets/token_widgets/slideable_action.dart';
import '../../widgets/pi_slideable.dart';
import '../main_view/main_view_widgets/token_widgets/slideable_action.dart';
import '../view_interface.dart';

const String groupTag = 'container-actions';
Expand Down
2 changes: 0 additions & 2 deletions lib/views/import_tokens_view/pages/import_start_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ import '../../../model/tokens/token.dart';
import '../../../processors/mixins/token_import_processor.dart';
import '../../../processors/scheme_processors/token_import_scheme_processors/token_import_scheme_processor_interface.dart';
import '../../../processors/token_import_file_processor/token_import_file_processor_interface.dart';
import '../../../utils/globals.dart';
import '../../../utils/logger.dart';
import '../../../utils/riverpod/riverpod_providers/generated_providers/progress_state_provider.dart';
import '../../qr_scanner_view/qr_scanner_view.dart';
import '../import_tokens_view.dart';
import '../widgets/dialogs/qr_not_found_dialog.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';

import '../../../l10n/app_localizations.dart';
import '../../../model/enums/introduction.dart';
import '../../../utils/riverpod/riverpod_providers/generated_providers/introduction_provider.dart';
import '../../../utils/riverpod/riverpod_providers/generated_providers/app_constraints_notifier.dart';
import '../../../utils/riverpod/riverpod_providers/generated_providers/introduction_provider.dart';
import '../../../widgets/focused_item_as_overlay.dart';
import '../../add_token_manually_view/add_token_manually_view.dart';
import '../../settings_view/settings_view.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_slidable/flutter_slidable.dart';

import '../../../model/mixins/sortable_mixin.dart';
import '../../../model/riverpod_states/settings_state.dart';
import '../../../model/token_folder.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import 'package:flutter_slidable/flutter_slidable.dart';
import '../../../../../l10n/app_localizations.dart';
import '../../../../../model/enums/introduction.dart';
import '../../../../../model/tokens/token.dart';
import '../../../../../utils/globals.dart';
import '../../../../../utils/customization/theme_extentions/action_theme.dart';
import '../../../../../utils/globals.dart';
import '../../../../../utils/lock_auth.dart';
import '../../../../../utils/logger.dart';
import '../../../../../utils/riverpod/riverpod_providers/generated_providers/introduction_provider.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ import '../../../../utils/globals.dart';
import '../../../../utils/logger.dart';
import '../../../../utils/riverpod/riverpod_providers/state_providers/dragging_sortable_provider.dart';
import '../../../../utils/utils.dart';
import '../../../../widgets/pi_slideable.dart';
import 'default_token_actions/default_delete_action.dart';
import 'default_token_actions/default_edit_action.dart';
import 'default_token_actions/default_lock_action.dart';
import 'slideable_action.dart';
import '../../../../widgets/pi_slideable.dart';
import 'token_widget.dart';

class TokenWidgetBase extends ConsumerWidget {
Expand Down
4 changes: 0 additions & 4 deletions lib/widgets/app_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@ import 'package:flutter/material.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

import '../interfaces/riverpod/state_listeners/notifier_provider_listener.dart';
import '../model/token_template.dart';
import '../utils/home_widget_utils.dart';
import '../utils/logger.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/credential_notifier.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/deeplink_notifier.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/push_request_provider.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/token_container_notifier.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/token_folder_notifier.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/token_notifier.dart';
import '../utils/riverpod/state_listeners/home_widget_deep_link_listener.dart';
import '../utils/riverpod/state_listeners/home_widget_token_state_listener.dart';
import '../utils/riverpod/state_listeners/navigation_deep_link_listener.dart';
import '../utils/riverpod/state_listeners/token_container_token_state_listener.dart';
import 'app_wrappers/single_touch_recognizer.dart';
import 'app_wrappers/state_observer.dart';

Expand Down
3 changes: 1 addition & 2 deletions lib/widgets/default_refresh_indicator.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/token_container_notifier.dart';
import 'deactivateable_refresh_indicator.dart';

import '../utils/logger.dart';
import '../utils/push_provider.dart';
import '../utils/riverpod/riverpod_providers/generated_providers/credential_notifier.dart';
import '../views/main_view/main_view_widgets/loading_indicator.dart';
import 'deactivateable_refresh_indicator.dart';

class DefaultRefreshIndicator extends ConsumerStatefulWidget {
final Widget child;
Expand Down

0 comments on commit a4a36a4

Please sign in to comment.