From 00174b63b8f2c9081fc151455973137bf51b52a2 Mon Sep 17 00:00:00 2001 From: Tom Spencer Date: Thu, 6 Sep 2018 09:44:27 +0100 Subject: [PATCH] Support RN 0.57 w/ gradle 3 --- android-exoplayer/build.gradle | 14 +++++++------- android/build.gradle | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/android-exoplayer/build.gradle b/android-exoplayer/build.gradle index 1fb8c420..cc93e1f6 100644 --- a/android-exoplayer/build.gradle +++ b/android-exoplayer/build.gradle @@ -18,19 +18,19 @@ android { dependencies { //noinspection GradleDynamicVersion - provided "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" - compile('com.google.android.exoplayer:exoplayer:2.8.2') { + compileOnly "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" + implementation('com.google.android.exoplayer:exoplayer:2.8.2') { exclude group: 'com.android.support' } // All support libs must use the same version - compile "com.android.support:support-annotations:${safeExtGet('supportLibVersion', '+')}" - compile "com.android.support:support-compat:${safeExtGet('supportLibVersion', '+')}" - compile "com.android.support:support-media-compat:${safeExtGet('supportLibVersion', '+')}" + implementation "com.android.support:support-annotations:${safeExtGet('supportLibVersion', '+')}" + implementation "com.android.support:support-compat:${safeExtGet('supportLibVersion', '+')}" + implementation "com.android.support:support-media-compat:${safeExtGet('supportLibVersion', '+')}" - compile('com.google.android.exoplayer:extension-okhttp:2.8.2') { + implementation('com.google.android.exoplayer:extension-okhttp:2.8.2') { exclude group: 'com.squareup.okhttp3', module: 'okhttp' } - compile 'com.squareup.okhttp3:okhttp:3.11.0' + implementation 'com.squareup.okhttp3:okhttp:3.11.0' } diff --git a/android/build.gradle b/android/build.gradle index a57d7a46..ff05f873 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -21,6 +21,6 @@ android { dependencies { //noinspection GradleDynamicVersion - provided "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" - compile 'com.yqritc:android-scalablevideoview:1.0.4' + compileOnly "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" + implementation 'com.yqritc:android-scalablevideoview:1.0.4' }