Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit d6b9d58

Browse files
author
SD MacBookAir 1
committed
chore(Android): Update the Include.gradle to make use of the GooglePlayServicesVersion variable
1 parent 65c07e2 commit d6b9d58

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/platforms/android/include.gradle

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ repositories {
1616
}
1717

1818
def supportVersion = project.hasProperty("supportVersion") ? project.supportVersion : "26.0.0"
19+
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : "12.0.1"
1920

2021
dependencies {
2122
compile "com.android.support:appcompat-v7:$supportVersion"
@@ -24,39 +25,36 @@ dependencies {
2425
compile "com.android.support:design:$supportVersion"
2526
compile "com.android.support:support-compat:$supportVersion"
2627

27-
def firebaseVersion = "12.0.1"
28-
2928
// make sure you have these versions by updating your local Android SDK's (Android Support repo and Google repo)
30-
compile "com.google.firebase:firebase-core:$firebaseVersion"
31-
compile "com.google.firebase:firebase-auth:$firebaseVersion"
29+
compile "com.google.firebase:firebase-core:$googlePlayServicesVersion"
30+
compile "com.google.firebase:firebase-auth:$googlePlayServicesVersion"
3231

3332
// for reading google-services.json and configuration
34-
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : firebaseVersion
3533
compile "com.google.android.gms:play-services-base:$googlePlayServicesVersion"
3634

3735
// Uncomment if you want to use the regular Database (instead of 'Cloud Firestore')
38-
// compile "com.google.firebase:firebase-database:$firebaseVersion"
36+
// compile "com.google.firebase:firebase-database:$googlePlayServicesVersion"
3937

4038
// Uncomment if you want to use 'Cloud Firestore'
41-
// compile "com.google.firebase:firebase-firestore:$firebaseVersion"
39+
// compile "com.google.firebase:firebase-firestore:$googlePlayServicesVersion"
4240

4341
// Uncomment if you want to use 'Remote Config'
44-
// compile "com.google.firebase:firebase-config:$firebaseVersion"
42+
// compile "com.google.firebase:firebase-config:$googlePlayServicesVersion"
4543

4644
// Uncomment if you want to use 'Crash Reporting'
47-
// compile "com.google.firebase:firebase-crash:$firebaseVersion"
45+
// compile "com.google.firebase:firebase-crash:$googlePlayServicesVersion"
4846

4947
// Uncomment if you want to enable 'Crashlytics' (1 / 2)
5048
// compile 'com.crashlytics.sdk.android:crashlytics:2.9.1'
5149

5250
// Uncomment if you want FCM (Firebase Cloud Messaging)
53-
// compile "com.google.firebase:firebase-messaging:$firebaseVersion"
51+
// compile "com.google.firebase:firebase-messaging:$googlePlayServicesVersion"
5452

5553
// Uncomment if you want Google Cloud Storage
56-
// compile "com.google.firebase:firebase-storage:$firebaseVersion"
54+
// compile "com.google.firebase:firebase-storage:$googlePlayServicesVersion"
5755

5856
// Uncomment if you want AdMob
59-
// compile "com.google.firebase:firebase-ads:$firebaseVersion"
57+
// compile "com.google.firebase:firebase-ads:$googlePlayServicesVersion"
6058

6159
// Uncomment if you need Facebook Authentication
6260
// compile ("com.facebook.android:facebook-android-sdk:4.+"){ exclude group: 'com.google.zxing' }
@@ -65,7 +63,7 @@ dependencies {
6563
// compile "com.google.android.gms:play-services-auth:$googlePlayServicesVersion"
6664

6765
// Uncomment if you need Firebase Invites or Dynamics Links
68-
// compile "com.google.firebase:firebase-invites:$firebaseVersion"
66+
// compile "com.google.firebase:firebase-invites:$googlePlayServicesVersion"
6967
}
7068

7169
apply plugin: "com.google.gms.google-services"

0 commit comments

Comments
 (0)