Bug 1524529 Update Play Services Cast to 16.0.0 r=VladBaicu

Updated play-services-cast to 16.0.0 in order to benefit from the IPv6 and other features.

Differential Revision: https://phabricator.services.mozilla.com/D18324

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrei Lazar 2019-02-04 12:44:13 +00:00
parent 2ca2cd911d
commit 9ddd6f263c
2 changed files with 7 additions and 4 deletions

View File

@ -84,6 +84,7 @@ buildscript {
if (gradle.mozconfig.substs.MOZ_ANDROID_GOOGLE_PLAY_SERVICES) {
ext.google_play_services_version = '15.0.1'
ext.google_play_services_cast_version = '16.0.0'
}
dependencies {

View File

@ -228,7 +228,7 @@ dependencies {
implementation "com.android.support:mediarouter-v7:$support_library_version"
implementation "com.google.android.gms:play-services-basement:$google_play_services_version"
implementation "com.google.android.gms:play-services-base:$google_play_services_version"
implementation "com.google.android.gms:play-services-cast:$google_play_services_version"
implementation "com.google.android.gms:play-services-cast:$google_play_services_cast_version"
}
if (mozconfig.substs.MOZ_INSTALL_TRACKING) {
@ -461,13 +461,15 @@ android.applicationVariants.all configureVariantDebugLevel
import groovy.xml.XmlUtil
// Workaround for fixing sub-dependencies upon gradle error:
// All gms/firebase libraries must use the exact same version specification (mixing versions can
// All gms/firebase (except play-services-cast since it has sub-dependencies in 15.0.0)
// libraries must use the exact same version specification (mixing versions can
// lead to runtime crashes). Found versions 15.0.1, 15.0.0. Examples include
// com.google.android.gms:play-services-base:15.0.1 and com.google.android.gms:play-services-cast:15.0.0
// com.google.android.gms:play-services-base:15.0.1 and com.google.android.gms:play-services-basement:15.0.0
configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'com.google.android.gms') {
if (details.requested.group == 'com.google.android.gms'
&& details.requested.name != 'play-services-cast') {
details.useVersion "$google_play_services_version"
}
}