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 {
|
2019-06-19 01:37:21 -06:00
|
|
|
compileSdkVersion safeExtGet('compileSdkVersion', 28)
|
|
|
|
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
|
2019-02-26 03:21:28 -07:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2017-01-11 05:51:45 -07:00
|
|
|
|
|
|
|
defaultConfig {
|
2018-07-24 14:19:45 -06:00
|
|
|
minSdkVersion safeExtGet('minSdkVersion', 16)
|
2019-06-19 01:37:21 -06:00
|
|
|
targetSdkVersion safeExtGet('targetSdkVersion', 28)
|
2018-06-21 11:29:38 -06:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
2017-01-11 05:51:45 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-05-24 03:03:38 -06:00
|
|
|
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
|
2019-01-24 06:32:26 -07:00
|
|
|
implementation('com.google.android.exoplayer:exoplayer:2.9.3') {
|
|
|
|
exclude group: 'com.android.support'
|
|
|
|
}
|
2018-08-08 00:10:03 -06:00
|
|
|
|
|
|
|
// All support libs must use the same version
|
2019-06-19 01:37:21 -06:00
|
|
|
implementation "androidx.annotation:annotation:1.0.0"
|
|
|
|
implementation "androidx.core:core:1.0.0"
|
|
|
|
implementation "androidx.media:media:1.0.0"
|
2018-08-08 00:10:03 -06:00
|
|
|
|
2019-01-24 06:32:26 -07:00
|
|
|
implementation('com.google.android.exoplayer:extension-okhttp:2.9.3') {
|
|
|
|
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
|
|
|
|
}
|
2018-12-31 14:51:29 -07:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
|
2018-08-08 00:10:03 -06:00
|
|
|
|
2019-02-26 03:21:28 -07:00
|
|
|
}
|