6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 48c205ef
Changed files
comwell_key_app/lib/authentication/authentication_repository.dart | 4 ---- comwell_key_app/lib/my_booking/my_booking_page.dart | 3 --- .../lib/services/interceptors/response_handle_interceptor.dart | 5 ----- comwell_key_app/lib/utils/locator.dart | 1 - 4 files changed, 13 deletions(-)
Diff
diff --git a/comwell_key_app/lib/authentication/authentication_repository.dart b/comwell_key_app/lib/authentication/authentication_repository.dart
index 424d34d3..e9421050 100644
--- a/comwell_key_app/lib/authentication/authentication_repository.dart
+++ b/comwell_key_app/lib/authentication/authentication_repository.dart
@@ -3,15 +3,12 @@ import 'dart:async';
import 'package:comwell_key_app/data/remote/msal_service.dart';
import 'package:comwell_key_app/database/comwell_db.dart';
import 'package:comwell_key_app/tracking/comwell_tracking.dart';
-import 'package:comwell_key_app/utils/secure_storage.dart';
-import 'package:comwell_key_app/common/const.dart' as constants;
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:msal_auth/msal_auth.dart';
import '../utils/seos_repository.dart';
class AuthenticationRepository {
- final SecureStorage _secureStorage;
final SeosRepository _seosRepository;
final ComwellDatabase _database;
final ComwellTracking _comwellTracking;
@@ -20,7 +17,6 @@ class AuthenticationRepository {
AuthenticationRepository(
this._seosRepository,
this._database,
- this._secureStorage,
this._comwellTracking,
this._msalService,
) {
diff --git a/comwell_key_app/lib/my_booking/my_booking_page.dart b/comwell_key_app/lib/my_booking/my_booking_page.dart
index a96e6d30..91a43341 100644
--- a/comwell_key_app/lib/my_booking/my_booking_page.dart
+++ b/comwell_key_app/lib/my_booking/my_booking_page.dart
@@ -1,12 +1,9 @@
import 'package:comwell_key_app/booking_details/bloc/booking_details_bloc.dart';
-import 'package:comwell_key_app/booking_details/booking_details_repository.dart';
import 'package:comwell_key_app/booking_details/components/share_button.dart';
import 'package:comwell_key_app/common/components/comwell_app_bar.dart';
-import 'package:comwell_key_app/housekeeping/housekeeping_repository.dart';
import 'package:comwell_key_app/my_booking/cubit/my_booking_cubit.dart';
import 'package:comwell_key_app/my_booking/cubit/my_booking_state.dart';
import 'package:comwell_key_app/overview/models/booking.dart';
-import 'package:comwell_key_app/profile/profile_repository.dart';
import 'package:comwell_key_app/routing/app_routes.dart';
import 'package:comwell_key_app/services/mappers/booking_mapper.dart';
import 'package:comwell_key_app/themes/light_theme.dart';
diff --git a/comwell_key_app/lib/services/interceptors/response_handle_interceptor.dart b/comwell_key_app/lib/services/interceptors/response_handle_interceptor.dart
index 485aec58..80a3881c 100644
--- a/comwell_key_app/lib/services/interceptors/response_handle_interceptor.dart
+++ b/comwell_key_app/lib/services/interceptors/response_handle_interceptor.dart
@@ -3,7 +3,6 @@ import 'package:comwell_key_app/routing/app_routes.dart';
import 'package:comwell_key_app/services/exceptions.dart';
import 'package:comwell_key_app/utils/env_utils.dart';
import 'package:comwell_key_app/utils/locator.dart';
-import 'package:comwell_key_app/utils/secure_storage.dart';
import 'package:dio/dio.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:go_router/go_router.dart';
@@ -43,10 +42,6 @@ class ResponseHandleInterceptor extends Interceptor {
final exc = DioException(requestOptions: options, error: e, stackTrace: st);
handler.reject(exc);
logOut();
- } on MsalArgumentException catch (e, st) {
- final exc = DioException(requestOptions: options, error: e, stackTrace: st);
- handler.reject(exc);
- logOut();
} catch (e, st) {
handler.reject(DioException(requestOptions: options, error: e, stackTrace: st));
}
diff --git a/comwell_key_app/lib/utils/locator.dart b/comwell_key_app/lib/utils/locator.dart
index 851c65e2..299760c4 100644
--- a/comwell_key_app/lib/utils/locator.dart
+++ b/comwell_key_app/lib/utils/locator.dart
@@ -71,7 +71,6 @@ void setupLocator() {
locator.get(),
locator.get(),
locator.get(),
- locator.get(),
),
);
locator.registerFactory(() => BookingDetailsRepository());