Skip to content

Commit a4bb6a5

Browse files
authored
Merge pull request #424 from AppDevNext/FirebaseBOM
Firebase BOM (Bill Of Materials)
2 parents ab9ba5f + 6797299 commit a4bb6a5

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

LogcatCrashlyticLib/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
44
id 'maven-publish'
5+
id 'com.google.firebase.crashlytics'
56
}
67

78
android {
@@ -18,8 +19,13 @@ android {
1819

1920
dependencies {
2021
api project(':LogcatCoreLib')
21-
api 'com.google.firebase:firebase-analytics:21.2.0'
22-
api 'com.google.firebase:firebase-crashlytics:18.3.1'
22+
// Import the BoM for the Firebase platform
23+
api platform('com.google.firebase:firebase-bom:31.1.0')
24+
25+
// Add the dependencies for the Crashlytics and Analytics libraries
26+
// When using the BoM, you don't specify versions in Firebase library dependencies
27+
api 'com.google.firebase:firebase-crashlytics'
28+
api 'com.google.firebase:firebase-analytics-ktx'
2329
}
2430

2531
project.afterEvaluate {

0 commit comments

Comments
 (0)