File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
androidMain/kotlin/dev/gitlive/firebase/analytics
jvmMain/kotlin/dev/gitlive/firebase/analytics Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1+ @file:JvmName(" analyticsAndroid" )
12package dev.gitlive.firebase.analytics
23
34import android.os.Bundle
@@ -84,7 +85,7 @@ actual class FirebaseAnalytics(val android: com.google.firebase.analytics.Fireba
8485
8586actual class FirebaseAnalyticsException (message : String ): Exception(message)
8687
87- fun Map <String , Any >.toBundle () = Bundle ().apply {
88+ private fun Map <String , Any >.toBundle () = Bundle ().apply {
8889 forEach { (key, value) ->
8990 when (value::class ) {
9091 String ::class -> putString(key, value as String )
Original file line number Diff line number Diff line change @@ -7,15 +7,24 @@ actual val Firebase.analytics: FirebaseAnalytics
77 get() = TODO (" Not yet implemented" )
88
99actual class FirebaseAnalytics {
10- actual fun logEvent (name : String , parameters : Map <String , String >? ) {}
11- actual fun logEvent (name : String , block : FirebaseAnalyticsParameters .() -> Unit ) {}
1210 actual fun setUserProperty (name : String , value : String ) {}
1311 actual fun setUserId (id : String ) {}
1412 actual fun resetAnalyticsData () {}
1513 actual fun setAnalyticsCollectionEnabled (enabled : Boolean ) {}
1614 actual fun setSessionTimeoutInterval (sessionTimeoutInterval : Long ) {}
1715 actual suspend fun getSessionId (): Long? = TODO (" Not yet implemented" )
1816 actual fun setDefaultEventParameters (parameters : Map <String , String >) {}
17+ actual fun logEvent (name : String , parameters : Map <String , Any >? ) {}
18+
19+ actual fun setConsent (consentSettings : Map <FirebaseAnalytics .ConsentType , FirebaseAnalytics .ConsentStatus >) {}
20+
21+ actual enum class ConsentType {
22+ AD_PERSONALIZATION , AD_STORAGE , AD_USER_DATA , ANALYTICS_STORAGE
23+ }
24+
25+ actual enum class ConsentStatus {
26+ GRANTED , DENIED
27+ }
1928}
2029
2130actual class FirebaseAnalyticsException internal constructor(message : String ) : FirebaseException(message)
You can’t perform that action at this time.
0 commit comments