Skip to content

Commit

Permalink
Merge branch 'feature/is_live' into minor_interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Dec 14, 2024
2 parents 33f8148 + db5a0ac commit b28569c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion audio_service/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 0.18.16

* Support for MPNowPlayingInfoPropertyIsLiveStream on IOS
* Support MPNowPlayingInfoPropertyIsLiveStream on IOS (@MuradSh, @celsoft).

## 0.18.15

Expand Down
8 changes: 4 additions & 4 deletions audio_service_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## 0.1.2

* Support for MPNowPlayingInfoPropertyIsLiveStream on IOS
* Support MPNowPlayingInfoPropertyIsLiveStream on IOS (@MuradSh, @celsoft).

## 0.1.1

* Add customAction to MediaControlMessage (@defsub)
* Add customAction to MediaControlMessage (@defsub).

## 0.1.0

* Remove unused androidEnableQueue option
* Add setSpeed to MediaActionMessage enum (@nt4f04uNd)
* Remove unused androidEnableQueue option.
* Add setSpeed to MediaActionMessage enum (@nt4f04uNd).

## 0.0.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ class AudioServiceConfigMessage {
'androidNotificationChannelName': androidNotificationChannelName,
'androidNotificationChannelDescription':
androidNotificationChannelDescription,
'notificationColor': notificationColor?.value,
'notificationColor': notificationColor?._colorValue,
'androidNotificationIcon': androidNotificationIcon,
'androidShowNotificationBadge': androidShowNotificationBadge,
'androidNotificationClickStartsActivity':
Expand All @@ -1444,3 +1444,14 @@ class AudioServiceConfigMessage {
@pragma('vm:prefer-inline')
Map<String, dynamic>? _castMap(Map<dynamic, dynamic>? map) =>
map?.cast<String, dynamic>();

/// Reimplements deprecated Color.value.
extension _ColorExtension on Color {
int get _colorValue =>
_floatToInt8(a) << 24 |
_floatToInt8(r) << 16 |
_floatToInt8(g) << 8 |
_floatToInt8(b) << 0;

int _floatToInt8(double x) => (x * 255.0).round() & 0xff;
}

0 comments on commit b28569c

Please sign in to comment.