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
|
|
|
|
}
|
2018-06-21 11:29:38 -06:00
|
|
|
|
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)
|
2018-06-21 11:29:38 -06:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
2017-01-11 05:51:45 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-09-06 02:44:27 -06:00
|
|
|
compileOnly "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
|
2018-12-31 22:36:02 -07:00
|
|
|
implementation('com.google.android.exoplayer:exoplayer:2.9.0') {
|
|
|
|
exclude group: 'com.android.support'
|
|
|
|
}
|
2018-11-01 03:48:59 -06:00
|
|
|
implementation project(':exoplayer-library-core')
|
|
|
|
implementation project(':exoplayer-library-dash')
|
|
|
|
implementation project(':exoplayer-library-ui')
|
|
|
|
implementation project(':exoplayer-library-smoothstreaming')
|
|
|
|
implementation project(':exoplayer-library-hls')
|
|
|
|
implementation project(':exoplayer-extension-okhttp')
|
2018-08-08 00:10:03 -06:00
|
|
|
|
|
|
|
// All support libs must use the same version
|
2018-09-06 02:44:27 -06:00
|
|
|
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', '+')}"
|
2018-08-08 00:10:03 -06:00
|
|
|
|
2018-12-31 22:36:02 -07:00
|
|
|
implementation('com.google.android.exoplayer:extension-okhttp:2.9.0') {
|
|
|
|
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
|
|
|
|
}
|
2018-09-06 02:44:27 -06:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
|
2018-08-08 00:10:03 -06:00
|
|
|
|
2017-01-11 05:51:45 -07:00
|
|
|
}
|