Skip to content

Commit

Permalink
refactor(analytics, fiam): use BoM 32.5.0 and drop ktx
Browse files Browse the repository at this point in the history
  • Loading branch information
thatfiredev committed Oct 30, 2023
1 parent 505c4f1 commit 898961d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion analytics/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ dependencies {
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2")

// Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom)
implementation(platform("com.google.firebase:firebase-bom:32.4.1"))
implementation(platform("com.google.firebase:firebase-bom:32.5.0"))

// Firebase Analytics
implementation("com.google.firebase:firebase-analytics")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import androidx.viewpager2.adapter.FragmentStateAdapter
import androidx.viewpager2.widget.ViewPager2
import com.google.android.material.tabs.TabLayout
import com.google.android.material.tabs.TabLayoutMediator
import com.google.firebase.Firebase
import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.analytics
import com.google.firebase.analytics.ktx.logEvent
import com.google.firebase.ktx.Firebase
import com.google.firebase.analytics.analytics
import com.google.firebase.analytics.logEvent
import com.google.firebase.quickstart.analytics.R
import com.google.firebase.quickstart.analytics.databinding.ActivityMainBinding
import com.google.firebase.quickstart.analytics.kotlin.MainActivity.Companion.IMAGE_INFOS
Expand Down
2 changes: 1 addition & 1 deletion inappmessaging/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {
implementation("androidx.multidex:multidex:2.0.1")

// Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom)
implementation(platform("com.google.firebase:firebase-bom:32.4.1"))
implementation(platform("com.google.firebase:firebase-bom:32.5.0"))

// FIAM
implementation("com.google.firebase:firebase-inappmessaging-display")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.snackbar.Snackbar
import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.analytics
import com.google.firebase.fiamquickstart.R
import com.google.firebase.fiamquickstart.databinding.ActivityMainBinding
import com.google.firebase.inappmessaging.FirebaseInAppMessaging
import com.google.firebase.inappmessaging.inAppMessaging
import com.google.firebase.installations.installations
import com.google.firebase.Firebase
import com.google.firebase.analytics.analytics

class KotlinMainActivity : AppCompatActivity() {

Expand All @@ -23,7 +23,7 @@ class KotlinMainActivity : AppCompatActivity() {
val binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)

firebaseAnalytics = com.google.firebase.ktx.Firebase.analytics
firebaseAnalytics = Firebase.analytics
firebaseIam = Firebase.inAppMessaging

firebaseIam.isAutomaticDataCollectionEnabled = true
Expand Down

0 comments on commit 898961d

Please sign in to comment.