Skip to content

Commit

Permalink
Version 0.1.0-nullsafety.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Dec 7, 2020
1 parent 5b2ec16 commit 8482c41
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.0-nullsafety.1

* Fix some static analysis errors.

## 0.1.0-nullsafety.0

* Support null safety.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.0-nullsafety.0"
version: "0.1.0-nullsafety.1"
boolean_selector:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/android.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class AndroidAudioFocusRequest {
this.audioAttributes,
this.willPauseWhenDucked,
this.onAudioFocusChanged,
}) : assert(gainType != null);
});

Map toJson() => {
'gainType': gainType.index,
Expand Down
5 changes: 2 additions & 3 deletions lib/src/core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AudioSession {
final _becomingNoisyEventSubject = PublishSubject<void>();

AudioSession._() {
_avAudioSession?.interruptionNotificationStream?.listen((notification) {
_avAudioSession?.interruptionNotificationStream.listen((notification) {
switch (notification.type) {
case AVAudioSessionInterruptionType.began:
if (notification.wasSuspended != true) {
Expand Down Expand Up @@ -114,7 +114,6 @@ class AudioSession {
/// audio. However, you may also call this method afterwards to change the
/// current configuration at any time.
Future<void> configure(AudioSessionConfiguration configuration) async {
assert(configuration != null);
await _avAudioSession?.setCategory(
configuration.avAudioSessionCategory,
configuration.avAudioSessionCategoryOptions,
Expand Down Expand Up @@ -251,7 +250,7 @@ class AudioSessionConfiguration {
this.androidAudioAttributes,
this.androidAudioFocusGainType = AndroidAudioFocusGainType.gain,
this.androidWillPauseWhenDucked,
}) : assert(androidAudioFocusGainType != null);
});

AudioSessionConfiguration.fromJson(Map data)
: this(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: audio_session
description: Sets the iOS audio session category and Android audio attributes for your app, and manages your app's audio focus, mixing and ducking behaviour.
version: 0.1.0-nullsafety.0
version: 0.1.0-nullsafety.1
homepage: https://github.com/ryanheise/audio_session

environment:
Expand Down

0 comments on commit 8482c41

Please sign in to comment.