From 5d9538f7442364e53281a045b5b8cdb08b6897d6 Mon Sep 17 00:00:00 2001 From: Hamza Aleghwairyeen Date: Sun, 7 Apr 2024 05:10:31 +0300 Subject: [PATCH] 4/7/3 --- ios/Podfile.lock | 146 ++++++++++-------- .../functions/audio_recorder_controller.dart | 6 +- .../home/map_passenger_controller.dart | 1 + 3 files changed, 87 insertions(+), 66 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index bc5aa25..35c23d9 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1,43 +1,45 @@ PODS: - - agora_rtc_engine (6.2.6): - - AgoraIrisRTC_iOS (= 4.2.6-build.3) - - AgoraRtcEngine_iOS (= 4.2.6) + - agora_rtc_engine (6.3.0): + - AgoraIrisRTC_iOS (= 4.3.0-build.2) + - AgoraRtcEngine_iOS (= 4.3.0) - Flutter - - AgoraIrisRTC_iOS (4.2.6-build.3) - - AgoraRtcEngine_iOS (4.2.6): - - AgoraRtcEngine_iOS/AIAEC (= 4.2.6) - - AgoraRtcEngine_iOS/AINS (= 4.2.6) - - AgoraRtcEngine_iOS/AudioBeauty (= 4.2.6) - - AgoraRtcEngine_iOS/ClearVision (= 4.2.6) - - AgoraRtcEngine_iOS/ContentInspect (= 4.2.6) - - AgoraRtcEngine_iOS/DRM (= 4.2.6) - - AgoraRtcEngine_iOS/FaceDetection (= 4.2.6) - - AgoraRtcEngine_iOS/ReplayKit (= 4.2.6) - - AgoraRtcEngine_iOS/RtcBasic (= 4.2.6) - - AgoraRtcEngine_iOS/SpatialAudio (= 4.2.6) - - AgoraRtcEngine_iOS/VideoCodecDec (= 4.2.6) - - AgoraRtcEngine_iOS/VideoCodecEnc (= 4.2.6) - - AgoraRtcEngine_iOS/VirtualBackground (= 4.2.6) - - AgoraRtcEngine_iOS/VQA (= 4.2.6) - - AgoraRtcEngine_iOS/AIAEC (4.2.6) - - AgoraRtcEngine_iOS/AINS (4.2.6) - - AgoraRtcEngine_iOS/AudioBeauty (4.2.6) - - AgoraRtcEngine_iOS/ClearVision (4.2.6) - - AgoraRtcEngine_iOS/ContentInspect (4.2.6) - - AgoraRtcEngine_iOS/DRM (4.2.6) - - AgoraRtcEngine_iOS/FaceDetection (4.2.6) - - AgoraRtcEngine_iOS/ReplayKit (4.2.6) - - AgoraRtcEngine_iOS/RtcBasic (4.2.6) - - AgoraRtcEngine_iOS/SpatialAudio (4.2.6) - - AgoraRtcEngine_iOS/VideoCodecDec (4.2.6) - - AgoraRtcEngine_iOS/VideoCodecEnc (4.2.6) - - AgoraRtcEngine_iOS/VirtualBackground (4.2.6) - - AgoraRtcEngine_iOS/VQA (4.2.6) - - AppAuth (1.6.2): - - AppAuth/Core (= 1.6.2) - - AppAuth/ExternalUserAgent (= 1.6.2) - - AppAuth/Core (1.6.2) - - AppAuth/ExternalUserAgent (1.6.2): + - AgoraIrisRTC_iOS (4.3.0-build.2) + - AgoraRtcEngine_iOS (4.3.0): + - AgoraRtcEngine_iOS/AIAEC (= 4.3.0) + - AgoraRtcEngine_iOS/AINS (= 4.3.0) + - AgoraRtcEngine_iOS/AudioBeauty (= 4.3.0) + - AgoraRtcEngine_iOS/ClearVision (= 4.3.0) + - AgoraRtcEngine_iOS/ContentInspect (= 4.3.0) + - AgoraRtcEngine_iOS/FaceCapture (= 4.3.0) + - AgoraRtcEngine_iOS/FaceDetection (= 4.3.0) + - AgoraRtcEngine_iOS/ReplayKit (= 4.3.0) + - AgoraRtcEngine_iOS/RtcBasic (= 4.3.0) + - AgoraRtcEngine_iOS/SpatialAudio (= 4.3.0) + - AgoraRtcEngine_iOS/VideoAv1CodecDec (= 4.3.0) + - AgoraRtcEngine_iOS/VideoCodecDec (= 4.3.0) + - AgoraRtcEngine_iOS/VideoCodecEnc (= 4.3.0) + - AgoraRtcEngine_iOS/VirtualBackground (= 4.3.0) + - AgoraRtcEngine_iOS/VQA (= 4.3.0) + - AgoraRtcEngine_iOS/AIAEC (4.3.0) + - AgoraRtcEngine_iOS/AINS (4.3.0) + - AgoraRtcEngine_iOS/AudioBeauty (4.3.0) + - AgoraRtcEngine_iOS/ClearVision (4.3.0) + - AgoraRtcEngine_iOS/ContentInspect (4.3.0) + - AgoraRtcEngine_iOS/FaceCapture (4.3.0) + - AgoraRtcEngine_iOS/FaceDetection (4.3.0) + - AgoraRtcEngine_iOS/ReplayKit (4.3.0) + - AgoraRtcEngine_iOS/RtcBasic (4.3.0) + - AgoraRtcEngine_iOS/SpatialAudio (4.3.0) + - AgoraRtcEngine_iOS/VideoAv1CodecDec (4.3.0) + - AgoraRtcEngine_iOS/VideoCodecDec (4.3.0) + - AgoraRtcEngine_iOS/VideoCodecEnc (4.3.0) + - AgoraRtcEngine_iOS/VirtualBackground (4.3.0) + - AgoraRtcEngine_iOS/VQA (4.3.0) + - AppAuth (1.7.3): + - AppAuth/Core (= 1.7.3) + - AppAuth/ExternalUserAgent (= 1.7.3) + - AppAuth/Core (1.7.3) + - AppAuth/ExternalUserAgent (1.7.3): - AppAuth/Core - audio_session (0.0.1): - Flutter @@ -63,9 +65,9 @@ PODS: - FirebaseCoreInternal (~> 10.0) - GoogleUtilities/Environment (~> 7.12) - GoogleUtilities/Logger (~> 7.12) - - FirebaseCoreInternal (10.19.0): + - FirebaseCoreInternal (10.23.0): - "GoogleUtilities/NSData+zlib (~> 7.8)" - - FirebaseInstallations (10.19.0): + - FirebaseInstallations (10.23.0): - FirebaseCore (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/UserDefaults (~> 7.8) @@ -84,11 +86,15 @@ PODS: - Flutter - flutter_secure_storage (6.0.0): - Flutter + - flutter_sound (9.2.13): + - Flutter + - flutter_sound_core (= 9.2.13) + - flutter_sound_core (9.2.13) - flutter_tts (0.0.1): - Flutter - - FMDB (2.7.5): - - FMDB/standard (= 2.7.5) - - FMDB/standard (2.7.5) + - FMDB (2.7.9): + - FMDB/standard (= 2.7.9) + - FMDB/standard (2.7.9) - geolocator_apple (1.2.0): - Flutter - google_maps_flutter_ios (0.0.1): @@ -104,9 +110,9 @@ PODS: - google_sign_in_ios (0.0.1): - Flutter - GoogleSignIn (~> 6.2) - - GoogleDataTransport (9.3.0): + - 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.4.0): - GoogleMaps/Maps (= 7.4.0) @@ -134,23 +140,31 @@ PODS: - GoogleToolboxForMac/Defines (= 2.3.2) - "GoogleToolboxForMac/NSString+URLArguments (= 2.3.2)" - "GoogleToolboxForMac/NSString+URLArguments (2.3.2)" - - GoogleUtilities/AppDelegateSwizzler (7.12.0): + - GoogleUtilities/AppDelegateSwizzler (7.13.0): - GoogleUtilities/Environment - GoogleUtilities/Logger - GoogleUtilities/Network - - GoogleUtilities/Environment (7.12.0): + - GoogleUtilities/Privacy + - GoogleUtilities/Environment (7.13.0): + - GoogleUtilities/Privacy - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/Logger (7.12.0): + - GoogleUtilities/Logger (7.13.0): - GoogleUtilities/Environment - - GoogleUtilities/Network (7.12.0): + - GoogleUtilities/Privacy + - GoogleUtilities/Network (7.13.0): - GoogleUtilities/Logger - "GoogleUtilities/NSData+zlib" + - GoogleUtilities/Privacy - GoogleUtilities/Reachability - - "GoogleUtilities/NSData+zlib (7.12.0)" - - GoogleUtilities/Reachability (7.12.0): + - "GoogleUtilities/NSData+zlib (7.13.0)": + - GoogleUtilities/Privacy + - GoogleUtilities/Privacy (7.13.0) + - GoogleUtilities/Reachability (7.13.0): - GoogleUtilities/Logger - - GoogleUtilities/UserDefaults (7.12.0): + - GoogleUtilities/Privacy + - GoogleUtilities/UserDefaults (7.13.0): - GoogleUtilities/Logger + - GoogleUtilities/Privacy - GoogleUtilitiesComponents (1.1.0): - GoogleUtilities/Logger - GTMAppAuth (1.3.1): @@ -204,7 +218,7 @@ PODS: - FlutterMacOS - permission_handler_apple (9.3.0): - Flutter - - PromisesObjC (2.3.1) + - PromisesObjC (2.4.0) - sqflite (0.0.3): - Flutter - FMDB (>= 2.7.5) @@ -268,6 +282,7 @@ DEPENDENCIES: - Flutter (from `Flutter`) - flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`) - flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`) + - flutter_sound (from `.symlinks/plugins/flutter_sound/ios`) - flutter_tts (from `.symlinks/plugins/flutter_tts/ios`) - geolocator_apple (from `.symlinks/plugins/geolocator_apple/ios`) - google_maps_flutter_ios (from `.symlinks/plugins/google_maps_flutter_ios/ios`) @@ -301,6 +316,7 @@ SPEC REPOS: - FirebaseCoreInternal - FirebaseInstallations - FirebaseMessaging + - flutter_sound_core - FMDB - GoogleDataTransport - GoogleMaps @@ -349,6 +365,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/flutter_local_notifications/ios" flutter_secure_storage: :path: ".symlinks/plugins/flutter_secure_storage/ios" + flutter_sound: + :path: ".symlinks/plugins/flutter_sound/ios" flutter_tts: :path: ".symlinks/plugins/flutter_tts/ios" geolocator_apple: @@ -395,10 +413,10 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/webview_flutter_wkwebview/ios" SPEC CHECKSUMS: - agora_rtc_engine: 5b2a7c221e1f3dfb8dee0fb0659f269be24fa81b - AgoraIrisRTC_iOS: 8346499b82968a4967e3d0bec2cf14bf7c0c3f76 - AgoraRtcEngine_iOS: ac647332ad8f86d79cf810601c9e62b28c3a4de0 - AppAuth: 3bb1d1cd9340bd09f5ed189fb00b1cc28e1e8570 + agora_rtc_engine: f737aeb9ac7fdfcfda875d0d0125eedaa09602f9 + AgoraIrisRTC_iOS: 2caf892fa827777fe43b6ac7d12e9b42579eb865 + AgoraRtcEngine_iOS: 267c0980c1fb97e056d05b850f8629b05b6e467a + AppAuth: a13994980c1ec792f7e2e665acd4d4aa6be43240 audio_session: 4f3e461722055d21515cf3261b64c973c062f345 background_location: 1b80c1fe3abd9912bca298618f6e365abf6f588f camera_avfoundation: 3125e8cd1a4387f6f31c6c63abb8a55892a9eeeb @@ -407,25 +425,27 @@ SPEC CHECKSUMS: firebase_core: 0af4a2b24f62071f9bf283691c0ee41556dcb3f5 firebase_messaging: 875385354f623750aa03204a028d640108bc3412 FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f - FirebaseCoreInternal: b444828ea7cfd594fca83046b95db98a2be4f290 - FirebaseInstallations: 033d199474164db20c8350736842a94fe717b960 + FirebaseCoreInternal: 6a292e6f0bece1243a737e81556e56e5e19282e3 + FirebaseInstallations: 42d6ead4605d6eafb3b6683674e80e18eb6f2c35 FirebaseMessaging: 9bc34a98d2e0237e1b121915120d4d48ddcf301e Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743 flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be + flutter_sound: c60effa2a350fb977885f0db2fbc4c1ad5160900 + flutter_sound_core: 26c10e5832e76aaacfae252d8925232281c486ae flutter_tts: 0f492aab6accf87059b72354fcb4ba934304771d - FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a + FMDB: aa44149f6fb634b1ac54f64f47064bb0d0c5a032 geolocator_apple: cc556e6844d508c95df1e87e3ea6fa4e58c50401 google_maps_flutter_ios: 590249c67f34f422122c232f2a626192adbc78ee google_mlkit_commons: 3857c1e9f23ca02073f8dd34a7a3580feb814cef google_mlkit_text_recognition: 9225b4bf1b176dd18b05c9594e5347834e793440 google_sign_in_ios: 1256ff9d941db546373826966720b0c24804bcdd - GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe + GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a GoogleMaps: 032f676450ba0779bd8ce16840690915f84e57ac GoogleMLKit: 2bd0dc6253c4d4f227aad460f69215a504b2980e GoogleSignIn: 5651ce3a61e56ca864160e79b484cd9ed3f49b7a GoogleToolboxForMac: 8bef7c7c5cf7291c687cf5354f39f9db6399ad34 - GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34 + GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152 GoogleUtilitiesComponents: 679b2c881db3b615a2777504623df6122dd20afe GTMAppAuth: 0ff230db599948a9ad7470ca667337803b3fc4dd GTMSessionFetcher: 3a63d75eecd6aa32c2fc79f578064e1214dfdec2 @@ -444,7 +464,7 @@ SPEC CHECKSUMS: package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85 path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 permission_handler_apple: 036b856153a2b1f61f21030ff725f3e6fece2b78 - PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 + PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47 sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a Stripe: e046335ab6e3f25d39f1a55bd98620a85269cffa stripe_ios: 37dd66ec680264019be16c5f47333f381164e6a6 diff --git a/lib/controller/functions/audio_recorder_controller.dart b/lib/controller/functions/audio_recorder_controller.dart index eb3901c..b0dd2c8 100644 --- a/lib/controller/functions/audio_recorder_controller.dart +++ b/lib/controller/functions/audio_recorder_controller.dart @@ -1,6 +1,6 @@ import 'dart:io'; -import 'package:SEFER/controller/home/captin/map_driver_controller.dart'; +import 'package:SEFER/controller/home/map_passenger_controller.dart'; import 'package:flutter_sound/flutter_sound.dart'; import 'package:get/get.dart'; import 'package:permission_handler/permission_handler.dart'; @@ -21,13 +21,13 @@ class AudioController extends GetxController { return; } await recorder.openRecorder(); - recorder.setSubscriptionDuration(const Duration(milliseconds: 500)); + recorder.setSubscriptionDuration(const Duration(minutes: 50)); } Future startRecording() async { await recorder.startRecorder( toFile: - 'audio_${Get.find().rideId}.wav'); // Specify the file name + 'audio_${Get.find().rideId}.wav'); // Specify the file name isRecoding = true; update(); } diff --git a/lib/controller/home/map_passenger_controller.dart b/lib/controller/home/map_passenger_controller.dart index f034e0f..9b5f4d4 100644 --- a/lib/controller/home/map_passenger_controller.dart +++ b/lib/controller/home/map_passenger_controller.dart @@ -676,6 +676,7 @@ class MapPassengerController extends GetxController { remainingTimeToPassengerFromDriverAfterApplied = 0; remainingTimeDriverWaitPassenger5Minute = 0; rideTimerBegin = true; + statusRide == 'Begin'; isDriverInPassengerWay = false; isDriverArrivePassenger = false; update();