Skip to content

Commit b28569c

Browse files
committed
Merge branch 'feature/is_live' into minor_interface
2 parents 33f8148 + db5a0ac commit b28569c

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

audio_service/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## 0.18.16
22

3-
* Support for MPNowPlayingInfoPropertyIsLiveStream on IOS
3+
* Support MPNowPlayingInfoPropertyIsLiveStream on IOS (@MuradSh, @celsoft).
44

55
## 0.18.15
66

audio_service_platform_interface/CHANGELOG.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
## 0.1.2
22

3-
* Support for MPNowPlayingInfoPropertyIsLiveStream on IOS
3+
* Support MPNowPlayingInfoPropertyIsLiveStream on IOS (@MuradSh, @celsoft).
44

55
## 0.1.1
66

7-
* Add customAction to MediaControlMessage (@defsub)
7+
* Add customAction to MediaControlMessage (@defsub).
88

99
## 0.1.0
1010

11-
* Remove unused androidEnableQueue option
12-
* Add setSpeed to MediaActionMessage enum (@nt4f04uNd)
11+
* Remove unused androidEnableQueue option.
12+
* Add setSpeed to MediaActionMessage enum (@nt4f04uNd).
1313

1414
## 0.0.1
1515

audio_service_platform_interface/lib/audio_service_platform_interface.dart

+12-1
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ class AudioServiceConfigMessage {
14211421
'androidNotificationChannelName': androidNotificationChannelName,
14221422
'androidNotificationChannelDescription':
14231423
androidNotificationChannelDescription,
1424-
'notificationColor': notificationColor?.value,
1424+
'notificationColor': notificationColor?._colorValue,
14251425
'androidNotificationIcon': androidNotificationIcon,
14261426
'androidShowNotificationBadge': androidShowNotificationBadge,
14271427
'androidNotificationClickStartsActivity':
@@ -1444,3 +1444,14 @@ class AudioServiceConfigMessage {
14441444
@pragma('vm:prefer-inline')
14451445
Map<String, dynamic>? _castMap(Map<dynamic, dynamic>? map) =>
14461446
map?.cast<String, dynamic>();
1447+
1448+
/// Reimplements deprecated Color.value.
1449+
extension _ColorExtension on Color {
1450+
int get _colorValue =>
1451+
_floatToInt8(a) << 24 |
1452+
_floatToInt8(r) << 16 |
1453+
_floatToInt8(g) << 8 |
1454+
_floatToInt8(b) << 0;
1455+
1456+
int _floatToInt8(double x) => (x * 255.0).round() & 0xff;
1457+
}

0 commit comments

Comments
 (0)