Upgrade packages deps to major versions #213
| @ -33,7 +33,7 @@ class AuthenticationMockCacheDataSourceImpl<Data> | |||||||
|   Future<Account?> getCachedAccount() async { |   Future<Account?> getCachedAccount() async { | ||||||
|     await Future<void>.delayed(const Duration(milliseconds: 200)); |     await Future<void>.delayed(const Duration(milliseconds: 200)); | ||||||
| 
 | 
 | ||||||
| return null; |     return null; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   @override |   @override | ||||||
|  | |||||||
| @ -53,7 +53,8 @@ class DefaultFirebaseOptions { | |||||||
|     messagingSenderId: '100151285458', |     messagingSenderId: '100151285458', | ||||||
|     projectId: 'wyatt-notification-example', |     projectId: 'wyatt-notification-example', | ||||||
|     storageBucket: 'wyatt-notification-example.appspot.com', |     storageBucket: 'wyatt-notification-example.appspot.com', | ||||||
|     iosClientId: '100151285458-a9notq1k1padf0vk9ove8ll3amjgi7mn.apps.googleusercontent.com', |     iosClientId: | ||||||
|  |         '100151285458-a9notq1k1padf0vk9ove8ll3amjgi7mn.apps.googleusercontent.com', | ||||||
|     iosBundleId: 'com.example.notificationBlocExample', |     iosBundleId: 'com.example.notificationBlocExample', | ||||||
|   ); |   ); | ||||||
| } | } | ||||||
|  | |||||||
| @ -22,7 +22,6 @@ import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_me | |||||||
| import 'package:wyatt_type_utils/wyatt_type_utils.dart'; | import 'package:wyatt_type_utils/wyatt_type_utils.dart'; | ||||||
| 
 | 
 | ||||||
| class CloudMessagingRepositoryImpl extends CloudMessagingRepository { | class CloudMessagingRepositoryImpl extends CloudMessagingRepository { | ||||||
| 
 |  | ||||||
|   CloudMessagingRepositoryImpl({ |   CloudMessagingRepositoryImpl({ | ||||||
|     required CloudMessagingRemoteDataSource notificationRemoteDataSource, |     required CloudMessagingRemoteDataSource notificationRemoteDataSource, | ||||||
|   }) : _notificationRemoteDataSource = notificationRemoteDataSource; |   }) : _notificationRemoteDataSource = notificationRemoteDataSource; | ||||||
|  | |||||||
| @ -18,7 +18,6 @@ import 'package:wyatt_architecture/wyatt_architecture.dart'; | |||||||
| import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; | import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; | ||||||
| 
 | 
 | ||||||
| class GetCloudMessagingTokenUseCase extends AsyncUseCase<void, String?> { | class GetCloudMessagingTokenUseCase extends AsyncUseCase<void, String?> { | ||||||
| 
 |  | ||||||
|   GetCloudMessagingTokenUseCase({ |   GetCloudMessagingTokenUseCase({ | ||||||
|     required CloudMessagingRepository notificationRepository, |     required CloudMessagingRepository notificationRepository, | ||||||
|   }) : _notificationRepository = notificationRepository; |   }) : _notificationRepository = notificationRepository; | ||||||
|  | |||||||
| @ -18,7 +18,6 @@ import 'package:wyatt_architecture/wyatt_architecture.dart'; | |||||||
| import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; | import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; | ||||||
| 
 | 
 | ||||||
| class InitCloudmessagingUseCase extends AsyncUseCase<NoParam, void> { | class InitCloudmessagingUseCase extends AsyncUseCase<NoParam, void> { | ||||||
| 
 |  | ||||||
|   InitCloudmessagingUseCase({ |   InitCloudmessagingUseCase({ | ||||||
|     required CloudMessagingRepository notificationRepository, |     required CloudMessagingRepository notificationRepository, | ||||||
|   }) : _notificationRepository = notificationRepository; |   }) : _notificationRepository = notificationRepository; | ||||||
|  | |||||||
| @ -25,7 +25,6 @@ import 'package:wyatt_type_utils/wyatt_type_utils.dart'; | |||||||
| 
 | 
 | ||||||
| class ListenNotificationUseCase | class ListenNotificationUseCase | ||||||
|     extends StreamUseCase<NoParam, RemoteNotification> { |     extends StreamUseCase<NoParam, RemoteNotification> { | ||||||
| 
 |  | ||||||
|   ListenNotificationUseCase({ |   ListenNotificationUseCase({ | ||||||
|     required CloudMessagingRepository notificationRepository, |     required CloudMessagingRepository notificationRepository, | ||||||
|   }) : _notificationRepository = notificationRepository; |   }) : _notificationRepository = notificationRepository; | ||||||
|  | |||||||
| @ -18,7 +18,6 @@ import 'package:wyatt_architecture/wyatt_architecture.dart'; | |||||||
| import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; | import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; | ||||||
| 
 | 
 | ||||||
| class RequestCloudMessagingPermissionUseCase extends AsyncUseCase<void, void> { | class RequestCloudMessagingPermissionUseCase extends AsyncUseCase<void, void> { | ||||||
| 
 |  | ||||||
|   RequestCloudMessagingPermissionUseCase({ |   RequestCloudMessagingPermissionUseCase({ | ||||||
|     required CloudMessagingRepository notificationRepository, |     required CloudMessagingRepository notificationRepository, | ||||||
|   }) : _notificationRepository = notificationRepository; |   }) : _notificationRepository = notificationRepository; | ||||||
|  | |||||||
| @ -20,7 +20,6 @@ import 'package:wyatt_architecture/wyatt_architecture.dart'; | |||||||
| import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; | import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_messaging_repository.dart'; | ||||||
| 
 | 
 | ||||||
| class SubscribeToNotificationTopicUseCase extends AsyncUseCase<String, void> { | class SubscribeToNotificationTopicUseCase extends AsyncUseCase<String, void> { | ||||||
| 
 |  | ||||||
|   SubscribeToNotificationTopicUseCase({ |   SubscribeToNotificationTopicUseCase({ | ||||||
|     required CloudMessagingRepository notificationRepository, |     required CloudMessagingRepository notificationRepository, | ||||||
|   }) : _notificationRepository = notificationRepository; |   }) : _notificationRepository = notificationRepository; | ||||||
|  | |||||||
| @ -21,7 +21,6 @@ import 'package:wyatt_cloud_messaging_bloc_base/src/domain/repositories/cloud_me | |||||||
| 
 | 
 | ||||||
| class UnsubscribeFromNotificationTopicUseCase | class UnsubscribeFromNotificationTopicUseCase | ||||||
|     extends AsyncUseCase<String, void> { |     extends AsyncUseCase<String, void> { | ||||||
| 
 |  | ||||||
|   UnsubscribeFromNotificationTopicUseCase({ |   UnsubscribeFromNotificationTopicUseCase({ | ||||||
|     required CloudMessagingRepository notificationRepository, |     required CloudMessagingRepository notificationRepository, | ||||||
|   }) : _notificationRepository = notificationRepository; |   }) : _notificationRepository = notificationRepository; | ||||||
|  | |||||||
| @ -17,7 +17,6 @@ | |||||||
| part of 'cloud_messaging_cubit.dart'; | part of 'cloud_messaging_cubit.dart'; | ||||||
| 
 | 
 | ||||||
| class CloudmessagingState extends Equatable { | class CloudmessagingState extends Equatable { | ||||||
| 
 |  | ||||||
|   const CloudmessagingState([this.remoteNotification]); |   const CloudmessagingState([this.remoteNotification]); | ||||||
|   final RemoteNotification? remoteNotification; |   final RemoteNotification? remoteNotification; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -33,8 +33,7 @@ class CrudFirestoreDataSourceImpl<Model extends ObjectModel, Entity> | |||||||
|     required Model Function( |     required Model Function( | ||||||
|       DocumentSnapshot<Map<String, dynamic>>, |       DocumentSnapshot<Map<String, dynamic>>, | ||||||
|       SnapshotOptions?, |       SnapshotOptions?, | ||||||
|     ) |     ) fromFirestore, | ||||||
|         fromFirestore, |  | ||||||
| 
 | 
 | ||||||
|     /// The function that converts a [Model] to a [Map<String, Object?>]. |     /// The function that converts a [Model] to a [Map<String, Object?>]. | ||||||
|     required Map<String, Object?> Function(Model, SetOptions?) toFirestore, |     required Map<String, Object?> Function(Model, SetOptions?) toFirestore, | ||||||
|  | |||||||
| @ -26,9 +26,8 @@ class FormDifference extends FormOperation { | |||||||
| 
 | 
 | ||||||
|   @override |   @override | ||||||
|   WyattForm call(WyattForm a, WyattForm b) { |   WyattForm call(WyattForm a, WyattForm b) { | ||||||
|     final inputs = < |     final inputs = <FormInput<dynamic, | ||||||
|         FormInput<dynamic, FormInputValidator<dynamic, ValidationError>, |         FormInputValidator<dynamic, ValidationError>, dynamic>>[]; | ||||||
|             dynamic>>[]; |  | ||||||
| 
 | 
 | ||||||
|     for (final i in a.inputs) { |     for (final i in a.inputs) { | ||||||
|       if (!b.containsKey(i.key)) { |       if (!b.containsKey(i.key)) { | ||||||
|  | |||||||
| @ -26,9 +26,8 @@ class FormIntersection extends FormOperation { | |||||||
| 
 | 
 | ||||||
|   @override |   @override | ||||||
|   WyattForm call(WyattForm a, WyattForm b) { |   WyattForm call(WyattForm a, WyattForm b) { | ||||||
|     final inputs = < |     final inputs = <FormInput<dynamic, | ||||||
|         FormInput<dynamic, FormInputValidator<dynamic, ValidationError>, |         FormInputValidator<dynamic, ValidationError>, dynamic>>[]; | ||||||
|             dynamic>>[]; |  | ||||||
| 
 | 
 | ||||||
|     for (final i in a.inputs) { |     for (final i in a.inputs) { | ||||||
|       if (b.containsKey(i.key)) { |       if (b.containsKey(i.key)) { | ||||||
|  | |||||||
| @ -26,9 +26,8 @@ class FormUnion extends FormOperation { | |||||||
| 
 | 
 | ||||||
|   @override |   @override | ||||||
|   WyattForm call(WyattForm a, WyattForm b) { |   WyattForm call(WyattForm a, WyattForm b) { | ||||||
|     final inputs = < |     final inputs = <FormInput<dynamic, | ||||||
|         FormInput<dynamic, FormInputValidator<dynamic, ValidationError>, |         FormInputValidator<dynamic, ValidationError>, dynamic>>[]; | ||||||
|             dynamic>>[]; |  | ||||||
| 
 | 
 | ||||||
|     for (final i in a.inputs) { |     for (final i in a.inputs) { | ||||||
|       inputs.add(i); |       inputs.add(i); | ||||||
|  | |||||||
| @ -178,7 +178,8 @@ class CardWrapper extends StatelessWidget { | |||||||
|               Theme.of(context) |               Theme.of(context) | ||||||
|                   .extension<CardThemeExtension>() |                   .extension<CardThemeExtension>() | ||||||
|                   ?.backgroundColors, |                   ?.backgroundColors, | ||||||
|               CardThemeExtensionDefault.from(Theme.of(context)).backgroundColors, |               CardThemeExtensionDefault.from(Theme.of(context)) | ||||||
|  |                   .backgroundColors, | ||||||
|             ], |             ], | ||||||
|             valueValidator: (multiColor) => multiColor?.isGradient, |             valueValidator: (multiColor) => multiColor?.isGradient, | ||||||
|             transform: (multiColor) => |             transform: (multiColor) => | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user