Skip to content

Commit d653594

Browse files
committed
Migrate firebase-core to firebase-analytics
* Firebase firebase-core is no longer needed, instead firebase-analytics should be used. * Google's notes: - > The Firebase Android library firebase-core is no longer needed. This SDK included the Firebase SDK for Google Analytics. Now, to use Analytics or a product that recommends adding Analytics (see table below), you need to explicitly declare the Analytics dependency: com.google.firebase:firebase-analytics or com.google.firebase:firebase-analytics-ktx. - https://firebase.google.com/support/release-notes/android
1 parent 2381a82 commit d653594

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

OneSignalSDK/unittest/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ext {
77
androidTestCoreVersion = '1.3.0'
88
androidWorkTestVersion = '2.5.0'
99
awaitilityVersion = '3.1.5'
10-
firebaseCoreVersion = '17.2.2'
10+
firebaseAnalytics = '19.0.1'
1111
googlePlayServicesVersion = '17.0.0'
1212
jUnitVersion = '4.13.2'
1313
reflectionsVersion = '0.9.12'
@@ -62,9 +62,8 @@ dependencies {
6262
// Use local OneSignal SDK
6363
implementation(project(':onesignal'))
6464

65-
// Required to shadow firebase analytics classes
6665
implementation "com.google.android.gms:play-services-location:$googlePlayServicesVersion"
67-
implementation "com.google.firebase:firebase-core:$firebaseCoreVersion"
66+
implementation "com.google.firebase:firebase-analytics:$firebaseAnalytics"
6867

6968
implementation "com.huawei.hms:push:$huaweiHMSPushVersion"
7069
implementation "com.huawei.hms:location:$huaweiHMSLocationVersion"

0 commit comments

Comments
 (0)