Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refatoração] Ajustes no Gerenciamento de Áudio e Downgrade do flutter_sound #279

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Modificado
- downgrade flutter_sound

## [3.7.0] - 2024-10-25

## [3.6.1] - 2024-06-18
Expand Down
131 changes: 73 additions & 58 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,16 @@ PODS:
- Flutter
- flutter_secure_storage (6.0.0):
- Flutter
- flutter_sound (9.2.13):
- flutter_sound (8.5.0):
- Flutter
- flutter_sound_core (= 9.2.13)
- flutter_sound_core (9.2.13)
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5)
- flutter_sound_core (= 8.5.0)
- mobile-ffmpeg-audio (= 4.4.LTS)
- flutter_sound_core (8.5.0)
- FMDB (2.7.12):
- FMDB/standard (= 2.7.12)
- FMDB/Core (2.7.12)
- FMDB/standard (2.7.12):
- FMDB/Core
- geolocator_apple (1.2.0):
- Flutter
- google_maps_flutter_ios (0.0.1):
Expand All @@ -118,50 +121,60 @@ PODS:
- GoogleUtilities/Network (~> 7.7)
- "GoogleUtilities/NSData+zlib (~> 7.7)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleDataTransport (9.2.1):
- GoogleDataTransport (9.4.1):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleMaps (7.3.0):
- GoogleMaps/Maps (= 7.3.0)
- GoogleMaps/Base (7.3.0)
- GoogleMaps/Maps (7.3.0):
- GoogleMaps (8.4.0):
- GoogleMaps/Maps (= 8.4.0)
- GoogleMaps/Base (8.4.0)
- GoogleMaps/Maps (8.4.0):
- GoogleMaps/Base
- GoogleUtilities/AppDelegateSwizzler (7.11.0):
- GoogleUtilities/AppDelegateSwizzler (7.13.3):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.11.0):
- GoogleUtilities/Privacy
- GoogleUtilities/Environment (7.13.3):
- GoogleUtilities/Privacy
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.11.0):
- GoogleUtilities/Logger (7.13.3):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (7.11.0):
- GoogleUtilities/Privacy
- GoogleUtilities/MethodSwizzler (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/Network (7.11.0):
- GoogleUtilities/Privacy
- GoogleUtilities/Network (7.13.3):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Privacy
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.11.0)"
- GoogleUtilities/Reachability (7.11.0):
- "GoogleUtilities/NSData+zlib (7.13.3)":
- GoogleUtilities/Privacy
- GoogleUtilities/Privacy (7.13.3)
- GoogleUtilities/Reachability (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (7.11.0):
- GoogleUtilities/Privacy
- GoogleUtilities/UserDefaults (7.13.3):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- just_audio (0.0.1):
- Flutter
- map_launcher (0.0.1):
- Flutter
- nanopb (2.30909.0):
- nanopb/decode (= 2.30909.0)
- nanopb/encode (= 2.30909.0)
- nanopb/decode (2.30909.0)
- nanopb/encode (2.30909.0)
- mobile-ffmpeg-audio (4.4.LTS)
- nanopb (2.30909.1):
- nanopb/decode (= 2.30909.1)
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- package_info (0.0.1):
- Flutter
- path_provider_ios (0.0.1):
- Flutter
- "permission_handler (5.1.0+2)":
- Flutter
- PromisesObjC (2.1.1)
- PromisesObjC (2.4.0)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
Expand Down Expand Up @@ -225,6 +238,7 @@ SPEC REPOS:
- GoogleDataTransport
- GoogleMaps
- GoogleUtilities
- mobile-ffmpeg-audio
- nanopb
- PromisesObjC

Expand Down Expand Up @@ -281,13 +295,13 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/workmanager/ios"

SPEC CHECKSUMS:
audio_session: 4f3e461722055d21515cf3261b64c973c062f345
device_info: d7d233b645a32c40dfdc212de5cf646ca482f175
audio_session: 9bdd3bf46960d4322cb8c3cb6138295dcfe84eee
device_info: 52e8c0c9c61def8d0a92bf175f5f500abbea04bc
Firebase: 5ae8b7cf8efce559a653aef0ad95bab3f427c351
firebase_analytics: 0b986dab2b92da974395bf09bbe76931415f7a57
firebase_core: 7c28ecc1e5dd74e03829ac3e9ff5ba3314e737a9
firebase_crashlytics: 520a59314eaaadb34f9be4c2a285d99cfa88ebdb
firebase_remote_config: df81462997f4d1582113c543e5a39ef832cebb92
firebase_analytics: d6f34c4aa7b7826bf8a7e7a46412f5295ad27f21
firebase_core: a58887605caab54c149409dcfb8f70a67dd1415b
firebase_crashlytics: 67a88404641c234487238f92d72750dd6d64a4e7
firebase_remote_config: 2951e234d887d69256b41278c141aaaa6fa4b486
FirebaseABTesting: 61826730ce9eee8781ba99a2b3420e9bce148dc9
FirebaseAnalytics: 89ad762c6c3852a685794174757e2c60a36b6a82
FirebaseCore: 2082fffcd855f95f883c0a1641133eb9bbe76d40
Expand All @@ -297,33 +311,34 @@ SPEC CHECKSUMS:
FirebaseInstallations: 0a115432c4e223c5ab20b0dbbe4cbefa793a0e8e
FirebaseRemoteConfig: ee09d77a7d7c7e31da6a0d1cf956cd611c85609c
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
flutter_phone_direct_caller: bd2ffd297f371a8a6c7bfbba0196964ffe3c4358
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
flutter_sound: c60effa2a350fb977885f0db2fbc4c1ad5160900
flutter_sound_core: 26c10e5832e76aaacfae252d8925232281c486ae
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
geolocator_apple: cc556e6844d508c95df1e87e3ea6fa4e58c50401
google_maps_flutter_ios: 66201f392bf62d500f07670a30488a247b9bb5b9
flutter_phone_direct_caller: 7d5d72794577b96f12b4b6da13a9ef90ba438665
flutter_secure_storage: 2c2ff13db9e0a5647389bff88b0ecac56e3f3418
flutter_sound: f17d773c9423189a33082e3ef05eded71d359a84
flutter_sound_core: d9396f10752a0df9aa3197f4c431d62d934918cc
FMDB: 728731dd336af3936ce00f91d9d8495f5718a0e6
geolocator_apple: 1d9e8e718b0aee61b8573d2d531eff76d00f383b
google_maps_flutter_ios: d2d2ab8df20d7bbc79ea6f776bf468754b8d5d15
GoogleAppMeasurement: 6de2b1a69e4326eb82ee05d138f6a5cb7311bcb1
GoogleDataTransport: ea169759df570f4e37bdee1623ec32a7e64e67c4
GoogleMaps: a146f275ee429d14822178c7a841c03366ec92a1
GoogleUtilities: c2bdc4cf2ce786c4d2e6b3bcfd599a25ca78f06f
just_audio: baa7252489dbcf47a4c7cc9ca663e9661c99aafa
map_launcher: e325db1261d029ff33e08e03baccffe09593ffea
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
shared_preferences_foundation: 297b3ebca31b34ec92be11acd7fb0ba932c822ca
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
url_launcher_ios: ae1517e5e344f5544fb090b079e11f399dfbe4d2
video_player_avfoundation: e489aac24ef5cf7af82702979ed16f2a5ef84cff
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
webview_flutter_wkwebview: b7e70ef1ddded7e69c796c7390ee74180182971f
workmanager: 0afdcf5628bbde6924c21af7836fed07b42e30e6
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleMaps: 8939898920281c649150e0af74aa291c60f2e77d
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
just_audio: 6c031bb61297cf218b4462be616638e81c058e97
map_launcher: b429f5dc548985f011d7c840f269cd2ee3b5d45e
mobile-ffmpeg-audio: 1e0a053f8a6de57114e50ff48b3a85ff1c60f902
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
package_info: cce50adca9873c79f931618469d2114b91d71189
path_provider_ios: 025d0bdaa9f9ab016700ac1e07ff63415cf638e9
permission_handler: a6eb0c0a10e733fc3e1dcea4e2d426beb7c91064
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
shared_preferences_foundation: 17bd1832386c26451addc681d67ed66b81aeb73c
shared_preferences_ios: 7ee5572d25d2f093bc27a9ede31993d8737a711d
sqflite: 954affaf2567c73cda074440299a625e3b2cbf8a
url_launcher_ios: 11b43d60fcf5780032024bc078747c5086d8c084
video_player_avfoundation: a7dd0333707baa3cf2ee5aef8daba07683d5999a
wakelock: cc82bb76a8260a57c002d11c0a508b434618379f
webview_flutter_wkwebview: 6e6160e04b1e85872253adc5322afe416d9cdddc
workmanager: 01be2de7f184bd15de93a1812936a2b7f42ef07e

PODFILE CHECKSUM: 523a019f6fbc954f537ac9e0ebc60aab48e66655

COCOAPODS: 1.11.3
COCOAPODS: 1.16.2
77 changes: 77 additions & 0 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
53B5742ACA1244E5F06F7894 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EB8481D2D55E81DFD0092E7D /* Pods_Runner.framework */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
Expand All @@ -32,17 +33,21 @@
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
26538243E43CEEC3165F0A8D /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
4B8C53A19B6EF06A3BDE05C7 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
7DC94F8BF40EE974143B2369 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
EB8481D2D55E81DFD0092E7D /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
F24D58B15015C3A524633FB5 /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Runner/GoogleService-Info.plist"; sourceTree = "<group>"; };
FCBA930D24B6066E00D2615C /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -52,6 +57,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
53B5742ACA1244E5F06F7894 /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -77,6 +83,7 @@
97C146EF1CF9000F007C117D /* Products */,
BEE34599E28C43DA05E04174 /* Pods */,
F24D58B15015C3A524633FB5 /* GoogleService-Info.plist */,
BD865FBCB57A7B6840D94DD3 /* Frameworks */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -112,9 +119,20 @@
name = "Supporting Files";
sourceTree = "<group>";
};
BD865FBCB57A7B6840D94DD3 /* Frameworks */ = {
isa = PBXGroup;
children = (
EB8481D2D55E81DFD0092E7D /* Pods_Runner.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
BEE34599E28C43DA05E04174 /* Pods */ = {
isa = PBXGroup;
children = (
4B8C53A19B6EF06A3BDE05C7 /* Pods-Runner.debug.xcconfig */,
26538243E43CEEC3165F0A8D /* Pods-Runner.release.xcconfig */,
7DC94F8BF40EE974143B2369 /* Pods-Runner.profile.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
Expand All @@ -126,6 +144,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
0BFBB598F201C7AFC3E843D4 /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
Expand All @@ -134,6 +153,8 @@
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
FCC41D2424B5FA85006655DB /* ShellScript */,
C591514C2953560D00323941 /* Run Dev Env Script */,
046E2C6AFAED6F0CF8EBD75A /* [CP] Embed Pods Frameworks */,
DC06A015AB17F31A0B0C866A /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -194,6 +215,45 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
046E2C6AFAED6F0CF8EBD75A /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
0BFBB598F201C7AFC3E843D4 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -241,6 +301,23 @@
shellPath = /bin/sh;
shellScript = "${SRCROOT}/Scripts/custom_config.sh\n";
};
DC06A015AB17F31A0B0C866A /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
showEnvVarsInLog = 0;
};
FCC41D2424B5FA85006655DB /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
6 changes: 4 additions & 2 deletions lib/app/core/managers/audio_play_services.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class AudioPlayServices implements IAudioPlayServices {

Future<void> _setupPlayEnvironment() async {
await _releaseAudioSession();
await _playerModule.openPlayer();
// await _playerModule.openPlayer();
await _playerModule.openAudioSession();

_playerSubscription = _playerModule.onProgress?.listen((e) {
// what to do in onProgress?
Expand All @@ -76,7 +77,8 @@ class AudioPlayServices implements IAudioPlayServices {
if (!_playerModule.isStopped) {
await _playerModule.stopPlayer();
}
await _playerModule.closePlayer();
// await _playerModule.closePlayer();
await _playerModule.closeAudioSession();
} catch (e, stack) {
logError(e, stack);
}
Expand Down
7 changes: 4 additions & 3 deletions lib/app/core/managers/audio_record_services.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,17 @@ extension _AudioRecordServices on AudioRecordServices {
if (!isRecorderStopped) {
await _recorder.stopRecorder();
}

await _recorder.closeRecorder();
// await _recorder.closeRecorder();
await _recorder.closeAudioSession();
} catch (e, stack) {
logError(e, stack);
}
}

Future<void> _setupRecordEnvironment() async {
await _releaseAudioSession();
await _recorder.openRecorder();
// await _recorder.openRecorder();
await _recorder.openAudioSession();

_currentDuration = Duration(
milliseconds:
Expand Down
Loading
Loading