From cd5601f0deb78ef03cc025cad5bf358d1e3d4919 Mon Sep 17 00:00:00 2001 From: Sean Holbert Date: Thu, 8 Apr 2021 10:36:11 -0700 Subject: [PATCH] Exoplayer: Use okhttp version specified in gradle.properties (#2340) Because React Native uses okhttp, including exoplayer causes apps to use two different versions of okhttp. This results in some unpredictable behavior. Clients of `react-native-video` should be able to specify the same OKHTTP version to react-native and react-native video. See where it's specified in react-native trunk: - https://github.com/facebook/react-native/blob/master/ReactAndroid/gradle.properties#L15 - https://github.com/facebook/react-native/blob/e1b6cd3f756aa034b11af6bf9960efb42bde8692/ReactAndroid/build.gradle#L452-L453 --- android-exoplayer/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android-exoplayer/build.gradle b/android-exoplayer/build.gradle index 449186101c..058da944cf 100644 --- a/android-exoplayer/build.gradle +++ b/android-exoplayer/build.gradle @@ -35,6 +35,6 @@ dependencies { implementation('com.google.android.exoplayer:extension-okhttp:2.11.4') { exclude group: 'com.squareup.okhttp3', module: 'okhttp' } - implementation 'com.squareup.okhttp3:okhttp:3.14.3' + implementation 'com.squareup.okhttp3:okhttp:${OKHTTP_VERSION}' }