@@ -90,20 +90,13 @@ void main() {
90
90
group ('NotificationChannelManager' , () {
91
91
test ('smoke' , () async {
92
92
await init ();
93
- check (notifAndroid .takeCreatedChannels ()).single
93
+ check (testBinding.androidNotificationHost .takeCreatedChannels ()).single
94
94
..id.equals (NotificationChannelManager .kChannelId)
95
95
..name.equals ('Messages' )
96
- ..description.isNull ()
97
- ..groupId.isNull ()
98
- ..importance.equals (Importance .high)
99
- ..playSound.isTrue ()
100
- ..sound.isNull ()
101
- ..enableVibration.isTrue ()
96
+ ..importance.equals (NotificationImportance .high)
97
+ ..lightsEnabled.equals (true )
102
98
..vibrationPattern.isNotNull ().deepEquals (
103
99
NotificationChannelManager .kVibrationPattern)
104
- ..showBadge.isTrue ()
105
- ..enableLights.isTrue ()
106
- ..ledColor.isNull ()
107
100
;
108
101
});
109
102
});
@@ -462,19 +455,12 @@ void main() {
462
455
});
463
456
}
464
457
465
- extension AndroidNotificationChannelChecks on Subject <AndroidNotificationChannel > {
458
+ extension NotificationChannelChecks on Subject <NotificationChannel > {
466
459
Subject <String > get id => has ((x) => x.id, 'id' );
467
- Subject <String > get name => has ((x) => x.name, 'name' );
468
- Subject <String ?> get description => has ((x) => x.description, 'description' );
469
- Subject <String ?> get groupId => has ((x) => x.groupId, 'groupId' );
470
- Subject <Importance > get importance => has ((x) => x.importance, 'importance' );
471
- Subject <bool > get playSound => has ((x) => x.playSound, 'playSound' );
472
- Subject <AndroidNotificationSound ?> get sound => has ((x) => x.sound, 'sound' );
473
- Subject <bool > get enableVibration => has ((x) => x.enableVibration, 'enableVibration' );
474
- Subject <bool > get enableLights => has ((x) => x.enableLights, 'enableLights' );
460
+ Subject <int > get importance => has ((x) => x.importance, 'importance' );
461
+ Subject <String ?> get name => has ((x) => x.name, 'name' );
462
+ Subject <bool ?> get lightsEnabled => has ((x) => x.lightsEnabled, 'lightsEnabled' );
475
463
Subject <Int64List ?> get vibrationPattern => has ((x) => x.vibrationPattern, 'vibrationPattern' );
476
- Subject <Color ?> get ledColor => has ((x) => x.ledColor, 'ledColor' );
477
- Subject <bool > get showBadge => has ((x) => x.showBadge, 'showBadge' );
478
464
}
479
465
480
466
extension on Subject <AndroidNotificationHostApiNotifyCall > {
0 commit comments