From 396711a7af7c3f91e30c98580c004cc1163f4939 Mon Sep 17 00:00:00 2001 From: yosemiteyss Date: Mon, 13 Feb 2023 11:30:54 +0800 Subject: [PATCH 1/3] add .fvm to gitignore --- .gitignore | 2 ++ example/.gitignore | 4 +--- example/macos/Podfile.lock | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index bf154f3..1b1c2e2 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,5 @@ migrate_working_dir/ .dart_tool/ .packages build/ + +.fvm \ No newline at end of file diff --git a/example/.gitignore b/example/.gitignore index 5ea004a..8066995 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -47,6 +47,4 @@ app.*.map.json /android/app/release # CMake -**/cmake-build-debug - -.fvm \ No newline at end of file +**/cmake-build-debug \ No newline at end of file diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index d75c6d7..afd157b 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -15,8 +15,8 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: flutter_volume_controller: 25d09126b0d695560f11c80b1311d5063fed882f - FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 + FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424 PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 -COCOAPODS: 1.11.2 +COCOAPODS: 1.11.3 From b00b433d370cfc66b37b53340297f3a1d9104d2d Mon Sep 17 00:00:00 2001 From: yosemiteyss Date: Mon, 13 Feb 2023 11:31:00 +0800 Subject: [PATCH 2/3] remove unused test --- example/test/widget_test.dart | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 example/test/widget_test.dart diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart deleted file mode 100644 index 2daedbb..0000000 --- a/example/test/widget_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility in the flutter_test package. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:flutter_volume_controller_example/main.dart'; - -void main() { - testWidgets('Verify Platform version', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); - - // Verify that platform version is retrieved. - expect( - find.byWidgetPredicate( - (Widget widget) => widget is Text && - widget.data!.startsWith('Running on:'), - ), - findsOneWidget, - ); - }); -} From 07f8883427cec6110bcc375f1fa3b6f993b61059 Mon Sep 17 00:00:00 2001 From: yosemiteyss Date: Mon, 13 Feb 2023 11:34:28 +0800 Subject: [PATCH 3/3] update version to 1.2.4 --- CHANGELOG.md | 18 ++++++++---------- example/pubspec.lock | 2 +- pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db596f6..a971456 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,22 @@ +## 1.2.4 +* Added `setIOSAudioSessionCategory` method. +* Added `category` option to `addListener` method. +* Update example with audio stream and audio session category pickers. +* Fixed deactivating audio session after removing volume listener on iOS. +* Fixed setting audio stream after attaching volume listener on Android. +* Fixed restoring audio stream after activity is resumed on Android. + ## 1.2.3 * Fixed allow music playback when start listening or reading the volume. (by DerJojo11) https://github.com/yosemiteyss/flutter_volume_controller/pull/32 ## 1.2.2 - * Fixed incorrect volume level due to floating point conversion. ## 1.2.1+1 - * Updated set mute documentation. ## 1.2.1 - * Added mute functions. * Added distinct error codes for exception handling. * Fixed volume level not emitted immediately after attaching volume listener. Set `emitOnStart` to @@ -20,29 +25,22 @@ * Updated documentation. ## 1.2.0 - * Add linux support ## 1.1.1 - * Fix nullable step value not being handled in windows ## 1.1.0 - * Add windows support ## 1.0.1+1 - * Fix iOS resume audio stream when return to foreground ## 1.0.1 - * Add setAndroidAudioStream() to set the default audio stream on Android. ## 1.0.0+1 - * Update example ## 1.0.0 - * Initial release. diff --git a/example/pubspec.lock b/example/pubspec.lock index b9876ef..1d66582 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -118,7 +118,7 @@ packages: path: ".." relative: true source: path - version: "1.2.3" + version: "1.2.4" fuchsia_remote_debug_protocol: dependency: transitive description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index a138020..b9a063c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_volume_controller description: A Flutter plugin to control system volume and listen for volume changes on different platforms. -version: 1.2.3 +version: 1.2.4 homepage: https://github.com/yosemiteyss/flutter_volume_controller environment: