Bug 1447734 - Specify Google Play Services library version in Gradle r=nalexander

MozReview-Commit-ID: KXcYJTlG2UC
This commit is contained in:
James Willcox 2018-03-21 12:50:11 -05:00
Родитель dd28aadd33
Коммит 6e2788b633
4 изменённых файлов: 14 добавлений и 13 удалений

Просмотреть файл

@ -53,6 +53,10 @@ buildscript {
ext.kotlin_version = '1.1.51' ext.kotlin_version = '1.1.51'
ext.support_library_version = '23.4.0' ext.support_library_version = '23.4.0'
if (gradle.mozconfig.substs.MOZ_ANDROID_GOOGLE_PLAY_SERVICES) {
ext.google_play_services_version = '8.4.0'
}
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2' classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'

Просмотреть файл

@ -223,21 +223,21 @@ dependencies {
if (mozconfig.substs.MOZ_NATIVE_DEVICES) { if (mozconfig.substs.MOZ_NATIVE_DEVICES) {
implementation "com.android.support:mediarouter-v7:$support_library_version" implementation "com.android.support:mediarouter-v7:$support_library_version"
implementation "com.google.android.gms:play-services-basement:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-basement:$google_play_services_version"
implementation "com.google.android.gms:play-services-base:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-base:$google_play_services_version"
implementation "com.google.android.gms:play-services-cast:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-cast:$google_play_services_version"
} }
if (mozconfig.substs.MOZ_INSTALL_TRACKING) { if (mozconfig.substs.MOZ_INSTALL_TRACKING) {
implementation "com.google.android.gms:play-services-analytics:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-analytics:$google_play_services_version"
implementation "com.google.android.gms:play-services-basement:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-basement:$google_play_services_version"
} }
if (mozconfig.substs.MOZ_ANDROID_GCM) { if (mozconfig.substs.MOZ_ANDROID_GCM) {
implementation "com.google.android.gms:play-services-basement:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-basement:$google_play_services_version"
implementation "com.google.android.gms:play-services-base:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-base:$google_play_services_version"
implementation "com.google.android.gms:play-services-gcm:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-gcm:$google_play_services_version"
implementation "com.google.android.gms:play-services-measurement:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-measurement:$google_play_services_version"
} }
// Include LeakCanary in local builds, but not in official builds. Mach // Include LeakCanary in local builds, but not in official builds. Mach

Просмотреть файл

@ -18,9 +18,6 @@ def google_play_services(value):
set_config('MOZ_ANDROID_GOOGLE_PLAY_SERVICES', depends_if(google_play_services)(lambda _: True)) set_config('MOZ_ANDROID_GOOGLE_PLAY_SERVICES', depends_if(google_play_services)(lambda _: True))
set_config('ANDROID_GOOGLE_PLAY_SERVICES_VERSION', '8.4.0')
add_old_configure_assignment('ANDROID_GOOGLE_PLAY_SERVICES_VERSION', '8.4.0')
option(env='MOZ_ANDROID_GCM', option(env='MOZ_ANDROID_GCM',
help='Enable GCM (Google Cloud Messaging) registration', help='Enable GCM (Google Cloud Messaging) registration',
default=google_play_services) default=google_play_services)

2
mobile/android/thirdparty/build.gradle поставляемый
Просмотреть файл

@ -47,7 +47,7 @@ dependencies {
if (mozconfig.substs.MOZ_ANDROID_MMA) { if (mozconfig.substs.MOZ_ANDROID_MMA) {
implementation "com.android.support:appcompat-v7:$support_library_version" implementation "com.android.support:appcompat-v7:$support_library_version"
implementation "com.android.support:support-annotations:$support_library_version" implementation "com.android.support:support-annotations:$support_library_version"
implementation "com.google.android.gms:play-services-gcm:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}" implementation "com.google.android.gms:play-services-gcm:$google_play_services_version"
} }
} }