6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit ee9b5036
Changed files
comwell_key_app/lib/authentication/bloc/authentication_bloc.dart | 2 -- comwell_key_app/lib/check_in/check_in_repository.dart | 2 +- comwell_key_app/lib/comwell_app.dart | 1 - comwell_key_app/lib/overview/repository/overview_repository.dart | 1 - comwell_key_app/lib/services/api.dart | 2 +- .../test/booking_details_test/booking_details_repository_test.dart | 2 -- 6 files changed, 2 insertions(+), 8 deletions(-)
Diff
diff --git a/comwell_key_app/lib/authentication/bloc/authentication_bloc.dart b/comwell_key_app/lib/authentication/bloc/authentication_bloc.dart
index 20a36366..d3764ced 100644
--- a/comwell_key_app/lib/authentication/bloc/authentication_bloc.dart
+++ b/comwell_key_app/lib/authentication/bloc/authentication_bloc.dart
@@ -1,10 +1,8 @@
import 'package:bloc/bloc.dart';
import 'package:comwell_key_app/authentication/authentication_repository.dart';
import 'package:comwell_key_app/authentication/enum/authentication_status.dart';
-import 'package:comwell_key_app/utils/seos_repository.dart';
import 'package:equatable/equatable.dart';
import 'package:firebase_analytics/firebase_analytics.dart';
-import 'package:seos_mobile_keys_plugin/seos_mobile_keys_plugin.dart';
part 'authentication_event.dart';
part 'authentication_state.dart';
diff --git a/comwell_key_app/lib/check_in/check_in_repository.dart b/comwell_key_app/lib/check_in/check_in_repository.dart
index 73c2fbc3..aa8d3663 100644
--- a/comwell_key_app/lib/check_in/check_in_repository.dart
+++ b/comwell_key_app/lib/check_in/check_in_repository.dart
@@ -16,7 +16,7 @@ class CheckInRepository {
}
Future<Booking> getBooking(String bookingId) async {
- return mockBooking;
+ //return mockBooking;
final entity = await db.bookingsDao.getBooking(bookingId);
final Json json = jsonDecode(entity.json) as Json;
return Booking.fromJson(json);
diff --git a/comwell_key_app/lib/comwell_app.dart b/comwell_key_app/lib/comwell_app.dart
index c4ccf61a..378c1b81 100644
--- a/comwell_key_app/lib/comwell_app.dart
+++ b/comwell_key_app/lib/comwell_app.dart
@@ -1,6 +1,5 @@
import 'package:comwell_key_app/authentication/authentication_repository.dart';
import 'package:comwell_key_app/authentication/bloc/authentication_bloc.dart';
-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/key/bloc/key_bloc.dart';
import 'package:comwell_key_app/key/repository/key_repository.dart';
diff --git a/comwell_key_app/lib/overview/repository/overview_repository.dart b/comwell_key_app/lib/overview/repository/overview_repository.dart
index 0b9afb3b..12e2a57e 100644
--- a/comwell_key_app/lib/overview/repository/overview_repository.dart
+++ b/comwell_key_app/lib/overview/repository/overview_repository.dart
@@ -1,7 +1,6 @@
import 'package:comwell_key_app/database/comwell_db.dart';
import 'package:comwell_key_app/overview/models/booking.dart';
import 'package:comwell_key_app/overview/models/bookings.dart';
-import 'package:comwell_key_app/overview/models/payment_details.dart';
import 'package:comwell_key_app/services/api.dart';
import 'package:comwell_key_app/utils/locator.dart';
diff --git a/comwell_key_app/lib/services/api.dart b/comwell_key_app/lib/services/api.dart
index ac197c69..e1c318b0 100644
--- a/comwell_key_app/lib/services/api.dart
+++ b/comwell_key_app/lib/services/api.dart
@@ -32,7 +32,7 @@ class Api {
}
Future<Json> postPaymentsDetails(Json body) async {
- final response = await dio.post("/payment/details", data: jsonEncode(body));
+ final response = await dio.post<void>("/payment/details", data: jsonEncode(body));
return response.data as Json;
}
diff --git a/comwell_key_app/test/booking_details_test/booking_details_repository_test.dart b/comwell_key_app/test/booking_details_test/booking_details_repository_test.dart
index da380cf0..b5ff68a7 100644
--- a/comwell_key_app/test/booking_details_test/booking_details_repository_test.dart
+++ b/comwell_key_app/test/booking_details_test/booking_details_repository_test.dart
@@ -18,6 +18,4 @@ void main() {
mockSeosMobileKeysPlugin = MockSeosMobileKeysPlugin();
bookingDetailsRepository = BookingDetailsRepository();
});
-
-
}
\ No newline at end of file