-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86557d2
commit 3cec112
Showing
7 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
library/analytics-firebase/src/main/java/com/simple/analytics/firebase/FirebaseAnalytics.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package com.simple.analytics.firebase | ||
|
||
import android.annotation.SuppressLint | ||
import android.content.Context | ||
import androidx.core.os.bundleOf | ||
import com.google.firebase.analytics.FirebaseAnalytics | ||
import com.google.firebase.Firebase | ||
import com.google.firebase.analytics.analytics | ||
import com.simple.analytics.Analytics | ||
|
||
class FirebaseAnalytics(private val context: Context) : Analytics { | ||
class FirebaseAnalytics : Analytics { | ||
|
||
@SuppressLint("MissingPermission") | ||
override suspend fun execute(eventName: String, vararg params: Pair<String, String>) { | ||
|
||
FirebaseAnalytics.getInstance(context).logEvent(eventName, bundleOf(*params)) | ||
Firebase.analytics.logEvent(eventName, bundleOf(*params)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters