Skip to content

Commit 6dd623d

Browse files
authored
Merge pull request #77 from yosemiteyss/feat/update-1.3.2
update version to 1.3.2
2 parents 6f837b5 + ea0eed3 commit 6dd623d

File tree

54 files changed

+76
-5440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+76
-5440
lines changed

.fvmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutter": "3.19.6"
3+
}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
env:
88
FLUTTER_CHANNEL: 'stable'
9-
FLUTTER_VERSION: '3.13.4'
9+
FLUTTER_VERSION: '3.19.6'
1010

1111
jobs:
1212
publish:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
env:
1414
FLUTTER_CHANNEL: 'stable'
15-
FLUTTER_VERSION: '3.13.4'
15+
FLUTTER_VERSION: '3.19.6'
1616

1717
jobs:
1818
build_example_android:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ migrate_working_dir/
2929
.dart_tool/
3030
.packages
3131
build/
32-
3332
.fvm

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.3.2
2+
* iOS: fix AudioSessionCategory reset to ambient.
3+
14
## 1.3.1
25
* Update minimum dart sdk version to 2.19.0.
36
* Android: update `flutter_plugin_android_lifecycle` to 2.0.17.

example/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ app.*.map.json
4848
/android/app/release
4949

5050
# CMake
51-
**/cmake-build-debug
51+
**/cmake-build-debug*
52+
.fvm

example/integration_test/main_test.dart

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,49 @@ void main() {
152152

153153
expect(actual, targets);
154154
});
155+
156+
if (Platform.isIOS) {
157+
testWidgets(
158+
'should keeps iOS AudioSessionCategory the same after get volume',
159+
(tester) async {
160+
await FlutterVolumeController.setIOSAudioSessionCategory(
161+
category: AudioSessionCategory.playback);
162+
final before = await FlutterVolumeController.getIOSAudioSessionCategory();
163+
164+
await FlutterVolumeController.getVolume();
165+
final after = await FlutterVolumeController.getIOSAudioSessionCategory();
166+
167+
expect(after, before);
168+
});
169+
}
170+
171+
if (Platform.isIOS) {
172+
testWidgets('should keeps iOS AudioSessionCategory the same after get mute',
173+
(tester) async {
174+
await FlutterVolumeController.setIOSAudioSessionCategory(
175+
category: AudioSessionCategory.playback);
176+
final before = await FlutterVolumeController.getIOSAudioSessionCategory();
177+
178+
await FlutterVolumeController.getMute();
179+
final after = await FlutterVolumeController.getIOSAudioSessionCategory();
180+
181+
expect(after, before);
182+
});
183+
}
184+
185+
if (Platform.isIOS) {
186+
testWidgets('should keeps iOS AudioSessionCategory the same after set mute',
187+
(tester) async {
188+
await FlutterVolumeController.setIOSAudioSessionCategory(
189+
category: AudioSessionCategory.playback);
190+
final before = await FlutterVolumeController.getIOSAudioSessionCategory();
191+
192+
await FlutterVolumeController.setMute(true);
193+
final after = await FlutterVolumeController.getIOSAudioSessionCategory();
194+
195+
expect(after, before);
196+
});
197+
}
155198
}
156199

157200
Future<void> _insertDelay() async {

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
platform :ios, '11.0'
2+
platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ EXTERNAL SOURCES:
1919
:path: ".symlinks/plugins/integration_test/ios"
2020

2121
SPEC CHECKSUMS:
22-
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
22+
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
2323
flutter_volume_controller: e4d5832f08008180f76e30faf671ffd5a425e529
2424
integration_test: 13825b8a9334a850581300559b8839134b124670
2525

26-
PODFILE CHECKSUM: ec7bdfce9f82e8314b94d9cd1cfee2974a0e1c97
26+
PODFILE CHECKSUM: 989d81c492c14dc649311e4e03b91db276355942
2727

28-
COCOAPODS: 1.12.1
28+
COCOAPODS: 1.15.2

0 commit comments

Comments
 (0)