react-native-video/android-exoplayer/build.gradle

28 lines
857 B
Groovy
Raw Normal View History

2017-01-11 05:51:45 -07:00
apply plugin: 'com.android.library'
2018-07-24 14:19:45 -06:00
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
2017-01-11 05:51:45 -07:00
android {
2018-07-24 14:19:45 -06:00
compileSdkVersion safeExtGet('compileSdkVersion', 27)
buildToolsVersion safeExtGet('buildToolsVersion', '27.0.3')
2017-01-11 05:51:45 -07:00
defaultConfig {
2018-07-24 14:19:45 -06:00
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', 27)
versionCode 1
versionName "1.0"
2017-01-11 05:51:45 -07:00
}
}
dependencies {
//noinspection GradleDynamicVersion
2018-07-24 14:19:45 -06:00
provided "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
2018-08-06 15:23:33 -06:00
compile 'com.google.android.exoplayer:exoplayer:2.8.2'
compile('com.google.android.exoplayer:extension-okhttp:2.8.2') {
2017-01-11 05:51:45 -07:00
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
compile 'com.squareup.okhttp3:okhttp:3.9.1'
2017-01-11 05:51:45 -07:00
}