Skip to content

Commit bd9df99

Browse files
authored
Merge pull request #22 from dayitv89/dishantwalia-patch-2
update firebase bom and remove jcenter
2 parents 6b8f285 + 25a79c9 commit bd9df99

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

android/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
buildscript {
44
repositories {
55
google()
6-
jcenter()
6+
mavenCentral()
77
}
88

99
dependencies {
@@ -16,7 +16,7 @@ apply plugin: 'com.android.library'
1616
def DEFAULT_COMPILE_SDK_VERSION = 27
1717
def DEFAULT_BUILD_TOOLS_VERSION = "27.0.3"
1818
def DEFAULT_TARGET_SDK_VERSION = 27
19-
def DEFAULT_FIREBASE_VERSION = "17.0.0"
19+
def DEFAULT_FIREBASE_BOM_VERSION = "28.4.1"
2020
def DEFAULT_SUPPORT_LIB_VERSION = "27.0.0"
2121

2222

@@ -47,12 +47,13 @@ repositories {
4747

4848
dependencies {
4949
//noinspection GradleCompatible
50-
def firebaseVersion = rootProject.hasProperty('firebaseVersion') ? rootProject.firebaseVersion : DEFAULT_FIREBASE_VERSION
50+
def firebaseBOMVersion = rootProject.hasProperty('firebaseBOMVersion') ? rootProject.firebaseVersion : DEFAULT_FIREBASE_BOM_VERSION
5151
def supportLibVersion = rootProject.hasProperty('supportLibVersion') ? rootProject.supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION
5252
implementation "com.android.support:appcompat-v7:$supportLibVersion"
5353
implementation "com.facebook.react:react-native:+"
54-
implementation "com.google.firebase:firebase-auth:$firebaseVersion"
55-
implementation ("com.google.firebase:firebase-analytics:$firebaseVersion"){
54+
implementation platform("com.google.firebase:firebase-bom:$firebaseBOMVersion")
55+
implementation "com.google.firebase:firebase-auth"
56+
implementation('com.google.firebase:firebase-analytics') {
5657
exclude module: "play-services-ads-identifier"
5758
exclude module: "play-services-measurement"
5859
exclude module: "play-services-measurement-sdk"

0 commit comments

Comments
 (0)