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..32791cd --- /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 { public *; } +-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