@@ -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
});
@@ -464,19 +457,12 @@ void main() {
464
457
});
465
458
}
466
459
467
- extension AndroidNotificationChannelChecks on Subject <AndroidNotificationChannel > {
460
+ extension NotificationChannelChecks on Subject <NotificationChannel > {
468
461
Subject <String > get id => has ((x) => x.id, 'id' );
469
- Subject <String > get name => has ((x) => x.name, 'name' );
470
- Subject <String ?> get description => has ((x) => x.description, 'description' );
471
- Subject <String ?> get groupId => has ((x) => x.groupId, 'groupId' );
472
- Subject <Importance > get importance => has ((x) => x.importance, 'importance' );
473
- Subject <bool > get playSound => has ((x) => x.playSound, 'playSound' );
474
- Subject <AndroidNotificationSound ?> get sound => has ((x) => x.sound, 'sound' );
475
- Subject <bool > get enableVibration => has ((x) => x.enableVibration, 'enableVibration' );
476
- Subject <bool > get enableLights => has ((x) => x.enableLights, 'enableLights' );
462
+ Subject <int > get importance => has ((x) => x.importance, 'importance' );
463
+ Subject <String ?> get name => has ((x) => x.name, 'name' );
464
+ Subject <bool ?> get lightsEnabled => has ((x) => x.lightsEnabled, 'lightsEnabled' );
477
465
Subject <Int64List ?> get vibrationPattern => has ((x) => x.vibrationPattern, 'vibrationPattern' );
478
- Subject <Color ?> get ledColor => has ((x) => x.ledColor, 'ledColor' );
479
- Subject <bool > get showBadge => has ((x) => x.showBadge, 'showBadge' );
480
466
}
481
467
482
468
extension on Subject <AndroidNotificationHostApiNotifyCall > {
0 commit comments