From 6658da445c3e6a69474b20d17380502336c89c99 Mon Sep 17 00:00:00 2001 From: syed-tp Date: Fri, 30 Jan 2026 17:16:36 +0530 Subject: [PATCH 1/2] fix: add consumer proguard rules to fix release build crash --- android/build.gradle | 1 + android/consumer-rules.pro | 4 ++++ android/gradle.properties | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 android/consumer-rules.pro diff --git a/android/build.gradle b/android/build.gradle index e338baa..ba25b5b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -41,6 +41,7 @@ android { defaultConfig { minSdkVersion getExtOrIntegerDefault("minSdkVersion") targetSdkVersion getExtOrIntegerDefault("targetSdkVersion") + consumerProguardFiles "consumer-rules.pro" } buildFeatures { diff --git a/android/consumer-rules.pro b/android/consumer-rules.pro new file mode 100644 index 0000000..b10f3fc --- /dev/null +++ b/android/consumer-rules.pro @@ -0,0 +1,4 @@ +# Keep DownloadHelper and its Callback to prevent AbstractMethodError in release builds +# This ensures that the Callback interface and DownloadHelper methods are not stripped or renamed incorrectly by R8 +-keep class androidx.media3.exoplayer.offline.DownloadHelper { *; } +-keep interface androidx.media3.exoplayer.offline.DownloadHelper$Callback { *; } diff --git a/android/gradle.properties b/android/gradle.properties index 1fd2321..1da033e 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -3,4 +3,4 @@ Tpstreams_minSdkVersion=24 Tpstreams_targetSdkVersion=34 Tpstreams_compileSdkVersion=35 Tpstreams_ndkVersion=27.1.12297006 -Tpstreams_tpstreamsAndroidPlayerVersion=1.1.7 \ No newline at end of file +Tpstreams_tpstreamsAndroidPlayerVersion=1.1.8 \ No newline at end of file From cd9383682bfb803aa81c36c89601f0b828fc1eeb Mon Sep 17 00:00:00 2001 From: syed-tp Date: Fri, 30 Jan 2026 17:22:37 +0530 Subject: [PATCH 2/2] fix: enhancments --- android/consumer-rules.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/consumer-rules.pro b/android/consumer-rules.pro index b10f3fc..32791cd 100644 --- a/android/consumer-rules.pro +++ b/android/consumer-rules.pro @@ -1,4 +1,4 @@ # Keep DownloadHelper and its Callback to prevent AbstractMethodError in release builds # This ensures that the Callback interface and DownloadHelper methods are not stripped or renamed incorrectly by R8 --keep class androidx.media3.exoplayer.offline.DownloadHelper { *; } +-keep class androidx.media3.exoplayer.offline.DownloadHelper { public *; } -keep interface androidx.media3.exoplayer.offline.DownloadHelper$Callback { *; }