From 11362169026a7b0fb3ad22e372a0e26ca221e952 Mon Sep 17 00:00:00 2001 From: mikelee-osmo Date: Fri, 13 Jul 2018 10:50:11 -0700 Subject: [PATCH] separates versioning for firebase-core and firebase-messaging. These are no longer coupled in recent releases by Google. --- android/build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 368f74c..cf55998 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -4,6 +4,8 @@ def DEFAULT_COMPILE_SDK_VERSION = 26 def DEFAULT_BUILD_TOOLS_VERSION = "25.0.2" def DEFAULT_TARGET_SDK_VERSION = 26 def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "12.+" +def DEFAULT_FIREBASE_CORE_VERSION = "12.+" +def DEFAULT_FIREBASE_MESSAGING_VERSION = "12.+" android { compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION @@ -23,11 +25,13 @@ repositories { dependencies { def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION + def firebaseCoreVersion = project.hasProperty('firebaseCoreVersion') ? project.firebaseCoreVersion : DEFAULT_FIREBASE_CORE_VERSION + def firebaseMessagingVersion = project.hasProperty('firebaseMessagingVersion') ? project.firebaseMessagingVersion : DEFAULT_FIREBASE_MESSAGING_VERSION compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.facebook.react:react-native:+' - compile "com.google.firebase:firebase-core:$googlePlayServicesVersion" - compile "com.google.firebase:firebase-messaging:$googlePlayServicesVersion" + compile "com.google.firebase:firebase-core:$firebaseCoreVersion" + compile "com.google.firebase:firebase-messaging:$firebaseMessagingVersion" compile 'me.leolin:ShortcutBadger:1.1.17@aar' compile "com.android.support:support-core-utils:26.1.0" } -- 2.26.2