Use constant to define androidx media version

PiperOrigin-RevId: 266802551
This commit is contained in:
olly 2019-09-02 19:31:28 +01:00 committed by Toni
parent a564c8011f
commit 0dc997103b
3 changed files with 3 additions and 2 deletions

View File

@ -27,6 +27,7 @@ project.ext {
jsr305Version = '3.0.2' jsr305Version = '3.0.2'
kotlinAnnotationsVersion = '1.3.31' kotlinAnnotationsVersion = '1.3.31'
androidxAnnotationVersion = '1.1.0' androidxAnnotationVersion = '1.1.0'
androidxMediaVersion = '1.0.1'
androidxTestVersion = '1.1.0' androidxTestVersion = '1.1.0'
truthVersion = '0.44' truthVersion = '0.44'
modulePrefix = ':' modulePrefix = ':'

View File

@ -32,7 +32,7 @@ android {
dependencies { dependencies {
implementation project(modulePrefix + 'library-core') implementation project(modulePrefix + 'library-core')
api 'androidx.media:media:1.0.1' api 'androidx.media:media:' + androidxMediaVersion
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
} }

View File

@ -40,7 +40,7 @@ android {
dependencies { dependencies {
implementation project(modulePrefix + 'library-core') implementation project(modulePrefix + 'library-core')
implementation 'androidx.media:media:1.0.1' api 'androidx.media:media:' + androidxMediaVersion
implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
testImplementation project(modulePrefix + 'testutils') testImplementation project(modulePrefix + 'testutils')