Skip to content

Commit

Permalink
Merge pull request #77 from yosemiteyss/feat/update-1.3.2
Browse files Browse the repository at this point in the history
update version to 1.3.2
  • Loading branch information
yosemiteyss authored Apr 19, 2024
2 parents 6f837b5 + ea0eed3 commit 6dd623d
Show file tree
Hide file tree
Showing 54 changed files with 76 additions and 5,440 deletions.
3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "3.19.6"
}
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
FLUTTER_CHANNEL: 'stable'
FLUTTER_VERSION: '3.13.4'
FLUTTER_VERSION: '3.19.6'

jobs:
publish:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

env:
FLUTTER_CHANNEL: 'stable'
FLUTTER_VERSION: '3.13.4'
FLUTTER_VERSION: '3.19.6'

jobs:
build_example_android:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ migrate_working_dir/
.dart_tool/
.packages
build/

.fvm
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.3.2
* iOS: fix AudioSessionCategory reset to ambient.

## 1.3.1
* Update minimum dart sdk version to 2.19.0.
* Android: update `flutter_plugin_android_lifecycle` to 2.0.17.
Expand Down
3 changes: 2 additions & 1 deletion example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ app.*.map.json
/android/app/release

# CMake
**/cmake-build-debug
**/cmake-build-debug*
.fvm
43 changes: 43 additions & 0 deletions example/integration_test/main_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,49 @@ void main() {

expect(actual, targets);
});

if (Platform.isIOS) {
testWidgets(
'should keeps iOS AudioSessionCategory the same after get volume',
(tester) async {
await FlutterVolumeController.setIOSAudioSessionCategory(
category: AudioSessionCategory.playback);
final before = await FlutterVolumeController.getIOSAudioSessionCategory();

await FlutterVolumeController.getVolume();
final after = await FlutterVolumeController.getIOSAudioSessionCategory();

expect(after, before);
});
}

if (Platform.isIOS) {
testWidgets('should keeps iOS AudioSessionCategory the same after get mute',
(tester) async {
await FlutterVolumeController.setIOSAudioSessionCategory(
category: AudioSessionCategory.playback);
final before = await FlutterVolumeController.getIOSAudioSessionCategory();

await FlutterVolumeController.getMute();
final after = await FlutterVolumeController.getIOSAudioSessionCategory();

expect(after, before);
});
}

if (Platform.isIOS) {
testWidgets('should keeps iOS AudioSessionCategory the same after set mute',
(tester) async {
await FlutterVolumeController.setIOSAudioSessionCategory(
category: AudioSessionCategory.playback);
final before = await FlutterVolumeController.getIOSAudioSessionCategory();

await FlutterVolumeController.setMute(true);
final after = await FlutterVolumeController.getIOSAudioSessionCategory();

expect(after, before);
});
}
}

Future<void> _insertDelay() async {
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>12.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
6 changes: 3 additions & 3 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/integration_test/ios"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_volume_controller: e4d5832f08008180f76e30faf671ffd5a425e529
integration_test: 13825b8a9334a850581300559b8839134b124670

PODFILE CHECKSUM: ec7bdfce9f82e8314b94d9cd1cfee2974a0e1c97
PODFILE CHECKSUM: 989d81c492c14dc649311e4e03b91db276355942

COCOAPODS: 1.12.1
COCOAPODS: 1.15.2
14 changes: 7 additions & 7 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -342,7 +342,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand All @@ -361,7 +361,7 @@
DEVELOPMENT_TEAM = 3NZ9VFU9JY;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -421,7 +421,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -470,7 +470,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand All @@ -491,7 +491,7 @@
DEVELOPMENT_TEAM = 3NZ9VFU9JY;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -515,7 +515,7 @@
DEVELOPMENT_TEAM = 3NZ9VFU9JY;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Loading

0 comments on commit 6dd623d

Please sign in to comment.