From e2c43cd5449822c9a7664e63360adabfd4610481 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 10:42:50 +0000 Subject: [PATCH 1/4] Bump freezed from 2.4.5 to 2.4.7 Bumps [freezed](https://github.com/rrousselGit/freezed) from 2.4.5 to 2.4.7. - [Commits](https://github.com/rrousselGit/freezed/compare/freezed-v2.4.5...freezed-v2.4.7) --- updated-dependencies: - dependency-name: freezed dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index e1517a60f6..e8f5cf2dae 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -545,10 +545,10 @@ packages: dependency: "direct dev" description: name: freezed - sha256: "21bf2825311de65501d22e563e3d7605dff57fb5e6da982db785ae5372ff018a" + sha256: "57247f692f35f068cae297549a46a9a097100685c6780fe67177503eea5ed4e5" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.7" freezed_annotation: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index dfccd5687c..e7dc644f0e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -77,7 +77,7 @@ dev_dependencies: sdk: flutter build_runner: 2.4.8 json_serializable: - freezed: ^2.4.5 + freezed: ^2.4.7 custom_lint: 0.5.11 riverpod_lint: 2.1.1 riverpod_generator: 2.3.3 From e5837467afe7aed6ddf2015ad46b4104ae358d75 Mon Sep 17 00:00:00 2001 From: bannzai Date: Sat, 10 Feb 2024 18:44:53 +0900 Subject: [PATCH 2/4] :shell: flutter pub run build_runner build --delete-conflicting-outputs --- lib/entity/config.codegen.freezed.dart | 4 +-- lib/entity/diary.codegen.freezed.dart | 4 +-- lib/entity/diary_setting.codegen.freezed.dart | 4 +-- lib/entity/menstruation.codegen.freezed.dart | 4 +-- lib/entity/package.codegen.freezed.dart | 4 +-- lib/entity/pill_sheet.codegen.freezed.dart | 8 +++--- .../pill_sheet_group.codegen.freezed.dart | 6 ++-- ...heet_modified_history.codegen.freezed.dart | 4 +-- ...odified_history_value.codegen.freezed.dart | 28 +++++++++---------- lib/entity/pilll_ads.codegen.freezed.dart | 4 +-- ...ication_customization.codegen.freezed.dart | 4 +-- ...mote_config_parameter.codegen.freezed.dart | 4 +-- lib/entity/schedule.codegen.freezed.dart | 6 ++-- lib/entity/setting.codegen.freezed.dart | 6 ++-- lib/entity/user.codegen.freezed.dart | 6 ++-- .../state.codegen.freezed.dart | 4 +-- ...initial_setting_state.codegen.freezed.dart | 6 ++-- ...nstruation_card_state.codegen.freezed.dart | 4 +-- 18 files changed, 55 insertions(+), 55 deletions(-) diff --git a/lib/entity/config.codegen.freezed.dart b/lib/entity/config.codegen.freezed.dart index cb53333204..3c4129f505 100644 --- a/lib/entity/config.codegen.freezed.dart +++ b/lib/entity/config.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'config.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Config _$ConfigFromJson(Map json) { return _Config.fromJson(json); @@ -108,7 +108,7 @@ class _$ConfigImpl extends _Config { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfigImpl && diff --git a/lib/entity/diary.codegen.freezed.dart b/lib/entity/diary.codegen.freezed.dart index 94cb13ffba..12b413b273 100644 --- a/lib/entity/diary.codegen.freezed.dart +++ b/lib/entity/diary.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'diary.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Diary _$DiaryFromJson(Map json) { return _Diary.fromJson(json); @@ -234,7 +234,7 @@ class _$DiaryImpl extends _Diary { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DiaryImpl && diff --git a/lib/entity/diary_setting.codegen.freezed.dart b/lib/entity/diary_setting.codegen.freezed.dart index 727691bfee..966a1c2403 100644 --- a/lib/entity/diary_setting.codegen.freezed.dart +++ b/lib/entity/diary_setting.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'diary_setting.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); DiarySetting _$DiarySettingFromJson(Map json) { return _DiarySetting.fromJson(json); @@ -165,7 +165,7 @@ class _$DiarySettingImpl extends _DiarySetting with DiagnosticableTreeMixin { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DiarySettingImpl && diff --git a/lib/entity/menstruation.codegen.freezed.dart b/lib/entity/menstruation.codegen.freezed.dart index f7385c9d7e..9d3e79c191 100644 --- a/lib/entity/menstruation.codegen.freezed.dart +++ b/lib/entity/menstruation.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'menstruation.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Menstruation _$MenstruationFromJson(Map json) { return _Menstruation.fromJson(json); @@ -258,7 +258,7 @@ class _$MenstruationImpl extends _Menstruation { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MenstruationImpl && diff --git a/lib/entity/package.codegen.freezed.dart b/lib/entity/package.codegen.freezed.dart index 51820a2482..cc6c54c65a 100644 --- a/lib/entity/package.codegen.freezed.dart +++ b/lib/entity/package.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'package.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Package _$PackageFromJson(Map json) { return _Package.fromJson(json); @@ -154,7 +154,7 @@ class _$PackageImpl implements _Package { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PackageImpl && diff --git a/lib/entity/pill_sheet.codegen.freezed.dart b/lib/entity/pill_sheet.codegen.freezed.dart index 2e336be195..653eadf4a3 100644 --- a/lib/entity/pill_sheet.codegen.freezed.dart +++ b/lib/entity/pill_sheet.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'pill_sheet.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); PillSheetTypeInfo _$PillSheetTypeInfoFromJson(Map json) { return _PillSheetTypeInfo.fromJson(json); @@ -163,7 +163,7 @@ class _$PillSheetTypeInfoImpl implements _PillSheetTypeInfo { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetTypeInfoImpl && @@ -400,7 +400,7 @@ class _$RestDurationImpl implements _RestDuration { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$RestDurationImpl && @@ -766,7 +766,7 @@ class _$PillSheetImpl extends _PillSheet { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetImpl && diff --git a/lib/entity/pill_sheet_group.codegen.freezed.dart b/lib/entity/pill_sheet_group.codegen.freezed.dart index 1daab21070..42c766e083 100644 --- a/lib/entity/pill_sheet_group.codegen.freezed.dart +++ b/lib/entity/pill_sheet_group.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'pill_sheet_group.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); PillSheetGroup _$PillSheetGroupFromJson(Map json) { return _PillSheetGroup.fromJson(json); @@ -261,7 +261,7 @@ class _$PillSheetGroupImpl extends _PillSheetGroup { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetGroupImpl && @@ -471,7 +471,7 @@ class _$PillSheetGroupDisplayNumberSettingImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetGroupDisplayNumberSettingImpl && diff --git a/lib/entity/pill_sheet_modified_history.codegen.freezed.dart b/lib/entity/pill_sheet_modified_history.codegen.freezed.dart index 90a37b8c65..5ef3db1e48 100644 --- a/lib/entity/pill_sheet_modified_history.codegen.freezed.dart +++ b/lib/entity/pill_sheet_modified_history.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'pill_sheet_modified_history.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); PillSheetModifiedHistory _$PillSheetModifiedHistoryFromJson( Map json) { @@ -560,7 +560,7 @@ class _$PillSheetModifiedHistoryImpl extends _PillSheetModifiedHistory { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetModifiedHistoryImpl && diff --git a/lib/entity/pill_sheet_modified_history_value.codegen.freezed.dart b/lib/entity/pill_sheet_modified_history_value.codegen.freezed.dart index 9485873559..066b0572f6 100644 --- a/lib/entity/pill_sheet_modified_history_value.codegen.freezed.dart +++ b/lib/entity/pill_sheet_modified_history_value.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'pill_sheet_modified_history_value.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); PillSheetModifiedHistoryValue _$PillSheetModifiedHistoryValueFromJson( Map json) { @@ -491,7 +491,7 @@ class _$PillSheetModifiedHistoryValueImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetModifiedHistoryValueImpl && @@ -754,7 +754,7 @@ class _$CreatedPillSheetValueImpl extends _CreatedPillSheetValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreatedPillSheetValueImpl && @@ -1006,7 +1006,7 @@ class _$AutomaticallyRecordedLastTakenDateValueImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AutomaticallyRecordedLastTakenDateValueImpl && @@ -1234,7 +1234,7 @@ class _$DeletedPillSheetValueImpl extends _DeletedPillSheetValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DeletedPillSheetValueImpl && @@ -1529,7 +1529,7 @@ class _$TakenPillValueImpl extends _TakenPillValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TakenPillValueImpl && @@ -1806,7 +1806,7 @@ class _$TakenPillEditedValueImpl extends _TakenPillEditedValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TakenPillEditedValueImpl && @@ -2065,7 +2065,7 @@ class _$RevertTakenPillValueImpl extends _RevertTakenPillValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$RevertTakenPillValueImpl && @@ -2364,7 +2364,7 @@ class _$ChangedPillNumberValueImpl extends _ChangedPillNumberValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChangedPillNumberValueImpl && @@ -2604,7 +2604,7 @@ class _$EndedPillSheetValueImpl extends _EndedPillSheetValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$EndedPillSheetValueImpl && @@ -2784,7 +2784,7 @@ class _$BeganRestDurationValueImpl extends _BeganRestDurationValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BeganRestDurationValueImpl && @@ -2949,7 +2949,7 @@ class _$EndedRestDurationValueImpl extends _EndedRestDurationValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$EndedRestDurationValueImpl && @@ -3165,7 +3165,7 @@ class _$ChangedBeginDisplayNumberValueImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChangedBeginDisplayNumberValueImpl && @@ -3394,7 +3394,7 @@ class _$ChangedEndDisplayNumberValueImpl extends _ChangedEndDisplayNumberValue { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChangedEndDisplayNumberValueImpl && diff --git a/lib/entity/pilll_ads.codegen.freezed.dart b/lib/entity/pilll_ads.codegen.freezed.dart index 7eea9b5cbe..d756a4a17c 100644 --- a/lib/entity/pilll_ads.codegen.freezed.dart +++ b/lib/entity/pilll_ads.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'pilll_ads.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); PilllAds _$PilllAdsFromJson(Map json) { return _PilllAds.fromJson(json); @@ -225,7 +225,7 @@ class _$PilllAdsImpl extends _PilllAds { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PilllAdsImpl && diff --git a/lib/entity/reminder_notification_customization.codegen.freezed.dart b/lib/entity/reminder_notification_customization.codegen.freezed.dart index cbf74810ae..ec061fd1aa 100644 --- a/lib/entity/reminder_notification_customization.codegen.freezed.dart +++ b/lib/entity/reminder_notification_customization.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'reminder_notification_customization.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); ReminderNotificationCustomization _$ReminderNotificationCustomizationFromJson( Map json) { @@ -177,7 +177,7 @@ class _$ReminderNotificationCustomizationImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ReminderNotificationCustomizationImpl && diff --git a/lib/entity/remote_config_parameter.codegen.freezed.dart b/lib/entity/remote_config_parameter.codegen.freezed.dart index 7c6fb2b91e..7a6c7db844 100644 --- a/lib/entity/remote_config_parameter.codegen.freezed.dart +++ b/lib/entity/remote_config_parameter.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'remote_config_parameter.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); RemoteConfigParameter _$RemoteConfigParameterFromJson( Map json) { @@ -192,7 +192,7 @@ class _$RemoteConfigParameterImpl extends _RemoteConfigParameter { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$RemoteConfigParameterImpl && diff --git a/lib/entity/schedule.codegen.freezed.dart b/lib/entity/schedule.codegen.freezed.dart index d6a8f61d7d..af0ad13d6d 100644 --- a/lib/entity/schedule.codegen.freezed.dart +++ b/lib/entity/schedule.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'schedule.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Schedule _$ScheduleFromJson(Map json) { return _Schedule.fromJson(json); @@ -229,7 +229,7 @@ class _$ScheduleImpl extends _Schedule { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ScheduleImpl && @@ -435,7 +435,7 @@ class _$LocalNotificationImpl extends _LocalNotification { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LocalNotificationImpl && diff --git a/lib/entity/setting.codegen.freezed.dart b/lib/entity/setting.codegen.freezed.dart index 9402ee204a..43b362d149 100644 --- a/lib/entity/setting.codegen.freezed.dart +++ b/lib/entity/setting.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'setting.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); ReminderTime _$ReminderTimeFromJson(Map json) { return _ReminderTime.fromJson(json); @@ -135,7 +135,7 @@ class _$ReminderTimeImpl extends _ReminderTime with DiagnosticableTreeMixin { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ReminderTimeImpl && @@ -488,7 +488,7 @@ class _$SettingImpl extends _Setting with DiagnosticableTreeMixin { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SettingImpl && diff --git a/lib/entity/user.codegen.freezed.dart b/lib/entity/user.codegen.freezed.dart index d460638785..ed13a79b5c 100644 --- a/lib/entity/user.codegen.freezed.dart +++ b/lib/entity/user.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'user.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); UserPrivate _$UserPrivateFromJson(Map json) { return _UserPrivate.fromJson(json); @@ -111,7 +111,7 @@ class _$UserPrivateImpl extends _UserPrivate { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UserPrivateImpl && @@ -541,7 +541,7 @@ class _$UserImpl extends _User { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UserImpl && diff --git a/lib/features/diary_setting_physical_condtion_detail/state.codegen.freezed.dart b/lib/features/diary_setting_physical_condtion_detail/state.codegen.freezed.dart index 01175602d8..a1cbdaff18 100644 --- a/lib/features/diary_setting_physical_condtion_detail/state.codegen.freezed.dart +++ b/lib/features/diary_setting_physical_condtion_detail/state.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'state.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$DiarySettingPhysicalConditionDetailState { @@ -130,7 +130,7 @@ class _$DiarySettingPhysicalConditionDetailStateImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DiarySettingPhysicalConditionDetailStateImpl && diff --git a/lib/features/initial_setting/initial_setting_state.codegen.freezed.dart b/lib/features/initial_setting/initial_setting_state.codegen.freezed.dart index 765ddbff97..92a5ca542c 100644 --- a/lib/features/initial_setting/initial_setting_state.codegen.freezed.dart +++ b/lib/features/initial_setting/initial_setting_state.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'initial_setting_state.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$InitialSettingTodayPillNumber { @@ -126,7 +126,7 @@ class _$InitialSettingTodayPillNumberImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$InitialSettingTodayPillNumberImpl && @@ -392,7 +392,7 @@ class _$InitialSettingStateImpl extends _InitialSettingState { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$InitialSettingStateImpl && diff --git a/lib/features/menstruation/menstruation_card_state.codegen.freezed.dart b/lib/features/menstruation/menstruation_card_state.codegen.freezed.dart index aede1db3ef..7307a1a6aa 100644 --- a/lib/features/menstruation/menstruation_card_state.codegen.freezed.dart +++ b/lib/features/menstruation/menstruation_card_state.codegen.freezed.dart @@ -12,7 +12,7 @@ part of 'menstruation_card_state.codegen.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$MenstruationCardState { @@ -136,7 +136,7 @@ class _$MenstruationCardStateImpl extends _MenstruationCardState { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MenstruationCardStateImpl && From 1b72ec5606908333624f8eb211a1919c98ee65b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 10:47:24 +0000 Subject: [PATCH 3/4] Bump mockito from 5.4.2 to 5.4.4 Bumps [mockito](https://github.com/dart-lang/mockito) from 5.4.2 to 5.4.4. - [Release notes](https://github.com/dart-lang/mockito/releases) - [Changelog](https://github.com/dart-lang/mockito/blob/master/CHANGELOG.md) - [Commits](https://github.com/dart-lang/mockito/commits) --- updated-dependencies: - dependency-name: mockito dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index e8f5cf2dae..45289ce859 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -721,10 +721,10 @@ packages: dependency: "direct main" description: name: mockito - sha256: "7d5b53bcd556c1bc7ffbe4e4d5a19c3e112b7e925e9e172dd7c6ad0630812616" + sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917" url: "https://pub.dev" source: hosted - version: "5.4.2" + version: "5.4.4" package_config: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index e7dc644f0e..349c386b96 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -40,7 +40,7 @@ dependencies: url_launcher: ^6.2.4 package_info: ^2.0.0 json_annotation: ^4.0.0 - mockito: ^5.3.2 + mockito: ^5.4.4 freezed_annotation: ^2.2.0 riverpod: ^2.4.4 hooks_riverpod: ^2.4.10 From 3608c092063c4cf32cd267ac09747de399b51f50 Mon Sep 17 00:00:00 2001 From: bannzai Date: Sat, 10 Feb 2024 18:57:16 +0900 Subject: [PATCH 4/4] :shell: flutter pub run build_runner build --delete-conflicting-outputs --- test/helper/mock.mocks.dart | 67 +++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 28 deletions(-) diff --git a/test/helper/mock.mocks.dart b/test/helper/mock.mocks.dart index f6c8177bed..1933b15667 100644 --- a/test/helper/mock.mocks.dart +++ b/test/helper/mock.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.4 from annotations // in pilll/test/helper/mock.dart. // Do not manually edit this file. @@ -9,20 +9,20 @@ import 'package:cloud_firestore/cloud_firestore.dart' as _i3; import 'package:flutter_local_notifications/flutter_local_notifications.dart' as _i14; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i25; -import 'package:pilll/entity/diary.codegen.dart' as _i22; -import 'package:pilll/entity/diary_setting.codegen.dart' as _i21; +import 'package:mockito/src/dummies.dart' as _i21; +import 'package:pilll/entity/diary.codegen.dart' as _i23; +import 'package:pilll/entity/diary_setting.codegen.dart' as _i22; import 'package:pilll/entity/firestore_id_generator.dart' as _i35; import 'package:pilll/entity/menstruation.codegen.dart' as _i8; import 'package:pilll/entity/pill_sheet.codegen.dart' as _i31; import 'package:pilll/entity/pill_sheet_group.codegen.dart' as _i7; import 'package:pilll/entity/pill_sheet_modified_history.codegen.dart' as _i18; import 'package:pilll/entity/pill_sheet_type.dart' as _i17; -import 'package:pilll/entity/pilll_ads.codegen.dart' as _i24; +import 'package:pilll/entity/pilll_ads.codegen.dart' as _i25; import 'package:pilll/entity/reminder_notification_customization.codegen.dart' as _i5; import 'package:pilll/entity/remote_config_parameter.codegen.dart' as _i27; -import 'package:pilll/entity/schedule.codegen.dart' as _i23; +import 'package:pilll/entity/schedule.codegen.dart' as _i24; import 'package:pilll/entity/setting.codegen.dart' as _i6; import 'package:pilll/entity/user.codegen.dart' as _i4; import 'package:pilll/provider/batch.dart' as _i11; @@ -47,6 +47,8 @@ import 'package:purchases_flutter/purchases_flutter.dart' as _i10; // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors @@ -844,7 +846,10 @@ class MockDatabaseConnection extends _i1.Mock @override String get userID => (super.noSuchMethod( Invocation.getter(#userID), - returnValue: '', + returnValue: _i21.dummyValue( + this, + Invocation.getter(#userID), + ), ) as String); @override _i3.DocumentReference<_i4.User> userReference() => (super.noSuchMethod( @@ -875,49 +880,49 @@ class MockDatabaseConnection extends _i1.Mock ), ) as _i3.DocumentReference); @override - _i3.DocumentReference<_i21.DiarySetting> diarySettingReference() => + _i3.DocumentReference<_i22.DiarySetting> diarySettingReference() => (super.noSuchMethod( Invocation.method( #diarySettingReference, [], ), - returnValue: _FakeDocumentReference_8<_i21.DiarySetting>( + returnValue: _FakeDocumentReference_8<_i22.DiarySetting>( this, Invocation.method( #diarySettingReference, [], ), ), - ) as _i3.DocumentReference<_i21.DiarySetting>); + ) as _i3.DocumentReference<_i22.DiarySetting>); @override - _i3.CollectionReference<_i22.Diary> diariesReference() => (super.noSuchMethod( + _i3.CollectionReference<_i23.Diary> diariesReference() => (super.noSuchMethod( Invocation.method( #diariesReference, [], ), - returnValue: _FakeCollectionReference_9<_i22.Diary>( + returnValue: _FakeCollectionReference_9<_i23.Diary>( this, Invocation.method( #diariesReference, [], ), ), - ) as _i3.CollectionReference<_i22.Diary>); + ) as _i3.CollectionReference<_i23.Diary>); @override - _i3.DocumentReference<_i22.Diary> diaryReference(_i22.Diary? diary) => + _i3.DocumentReference<_i23.Diary> diaryReference(_i23.Diary? diary) => (super.noSuchMethod( Invocation.method( #diaryReference, [diary], ), - returnValue: _FakeDocumentReference_8<_i22.Diary>( + returnValue: _FakeDocumentReference_8<_i23.Diary>( this, Invocation.method( #diaryReference, [diary], ), ), - ) as _i3.DocumentReference<_i22.Diary>); + ) as _i3.DocumentReference<_i23.Diary>); @override _i3.DocumentReference userPrivateRawReference() => (super.noSuchMethod( @@ -1032,49 +1037,49 @@ class MockDatabaseConnection extends _i1.Mock ), ) as _i3.DocumentReference<_i7.PillSheetGroup>); @override - _i3.CollectionReference<_i23.Schedule> schedulesReference() => + _i3.CollectionReference<_i24.Schedule> schedulesReference() => (super.noSuchMethod( Invocation.method( #schedulesReference, [], ), - returnValue: _FakeCollectionReference_9<_i23.Schedule>( + returnValue: _FakeCollectionReference_9<_i24.Schedule>( this, Invocation.method( #schedulesReference, [], ), ), - ) as _i3.CollectionReference<_i23.Schedule>); + ) as _i3.CollectionReference<_i24.Schedule>); @override - _i3.DocumentReference<_i23.Schedule> scheduleReference(String? scheduleID) => + _i3.DocumentReference<_i24.Schedule> scheduleReference(String? scheduleID) => (super.noSuchMethod( Invocation.method( #scheduleReference, [scheduleID], ), - returnValue: _FakeDocumentReference_8<_i23.Schedule>( + returnValue: _FakeDocumentReference_8<_i24.Schedule>( this, Invocation.method( #scheduleReference, [scheduleID], ), ), - ) as _i3.DocumentReference<_i23.Schedule>); + ) as _i3.DocumentReference<_i24.Schedule>); @override - _i3.DocumentReference<_i24.PilllAds?> pilllAds() => (super.noSuchMethod( + _i3.DocumentReference<_i25.PilllAds?> pilllAds() => (super.noSuchMethod( Invocation.method( #pilllAds, [], ), - returnValue: _FakeDocumentReference_8<_i24.PilllAds?>( + returnValue: _FakeDocumentReference_8<_i25.PilllAds?>( this, Invocation.method( #pilllAds, [], ), ), - ) as _i3.DocumentReference<_i24.PilllAds?>); + ) as _i3.DocumentReference<_i25.PilllAds?>); @override _i9.Future transaction(_i3.TransactionHandler? transactionHandler) => (super.noSuchMethod( @@ -1082,8 +1087,8 @@ class MockDatabaseConnection extends _i1.Mock #transaction, [transactionHandler], ), - returnValue: _i25.ifNotNull( - _i25.dummyValueOrNull( + returnValue: _i21.ifNotNull( + _i21.dummyValueOrNull( this, Invocation.method( #transaction, @@ -1422,7 +1427,13 @@ class MockFirestoreIDGenerator extends _i1.Mock #call, [], ), - returnValue: '', + returnValue: _i21.dummyValue( + this, + Invocation.method( + #call, + [], + ), + ), ) as String); }