Skip to content

Commit 0a0a540

Browse files
authored
fix: audio not playing intermittently in android (#1660)
* chore: upgrade just_audio, AGP and gradle version * fix: missing await
1 parent 3d456e8 commit 0a0a540

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

mobile-app/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip

mobile-app/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.6.0" apply false
21+
id "com.android.application" version '8.12.2' apply false
2222
id "org.jetbrains.kotlin.android" version "1.9.10" apply false
2323
// START: FlutterFire Configuration
2424
id "com.google.gms.google-services" version "4.3.15" apply false

mobile-app/lib/service/audio/audio_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class AudioPlayerHandler extends BaseAudioHandler {
253253
}
254254

255255
void loadEnglishAudio(EnglishAudio audio) async {
256-
_audioPlayer.setAudioSource(
256+
await _audioPlayer.setAudioSource(
257257
ClippingAudioSource(
258258
start: parseTimeStamp(audio.startTimeStamp),
259259
end: audio.finishTimeStamp == null

mobile-app/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,10 +1069,10 @@ packages:
10691069
dependency: "direct main"
10701070
description:
10711071
name: just_audio
1072-
sha256: "90421d34e9ee9a407c3722e9db6a45c57b90620b51fcf3a172bae4c3c3278ed5"
1072+
sha256: "679637a3ec5b6e00f36472f5a3663667df00ee4822cbf5dafca0f568c710960a"
10731073
url: "https://pub.dev"
10741074
source: hosted
1075-
version: "0.10.2"
1075+
version: "0.10.4"
10761076
just_audio_platform_interface:
10771077
dependency: transitive
10781078
description:

mobile-app/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies:
3737
html: 0.15.5+1
3838
infinite_scroll_pagination: 5.0.0
3939
jiffy: 6.3.2
40-
just_audio: 0.10.2
40+
just_audio: 0.10.4
4141
path: 1.9.1
4242
path_provider: 2.1.5
4343
phone_ide: 2.0.0

0 commit comments

Comments
 (0)