Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
griffinsorrentino authored Jul 25, 2024
2 parents c19aebb + e175fc0 commit 219bd60
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public actual class FirebaseAnalytics(public val android: com.google.firebase.an
public actual fun setUserProperty(name: String, value: String) {
android.setUserProperty(name, value)
}
public actual fun setUserId(id: String) {
public actual fun setUserId(id: String?) {
android.setUserId(id)
}
public actual fun resetAnalyticsData() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public expect fun Firebase.analytics(app: FirebaseApp): FirebaseAnalytics
public expect class FirebaseAnalytics {
public fun logEvent(name: String, parameters: Map<String, Any>? = null)
public fun setUserProperty(name: String, value: String)
public fun setUserId(id: String)
public fun setUserId(id: String?)
public fun setAnalyticsCollectionEnabled(enabled: Boolean)
public fun setSessionTimeoutInterval(sessionTimeoutInterval: Duration)
public suspend fun getSessionId(): Long?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public actual class FirebaseAnalytics(public val ios: FIRAnalytics.Companion) {
public actual fun setUserProperty(name: String, value: String) {
ios.setUserPropertyString(value, name)
}
public actual fun setUserId(id: String) {
public actual fun setUserId(id: String?) {
ios.setUserID(id)
}
public actual fun resetAnalyticsData() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public actual class FirebaseAnalytics(public val js: dev.gitlive.firebase.analyt
dev.gitlive.firebase.analytics.externals.setUserProperty(js, name, value)
}

public actual fun setUserId(id: String) {
public actual fun setUserId(id: String?) {
dev.gitlive.firebase.analytics.externals.setUserId(js, id)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public external fun getAnalytics(app: FirebaseApp? = definedExternally): Firebas

public external fun logEvent(app: FirebaseAnalytics, name: String, parameters: Map<String, Any>?)
public external fun setUserProperty(app: FirebaseAnalytics, name: String, value: String)
public external fun setUserId(app: FirebaseAnalytics, id: String)
public external fun setUserId(app: FirebaseAnalytics, id: String?)
public external fun resetAnalyticsData(app: FirebaseAnalytics)
public external fun setDefaultEventParameters(app: FirebaseAnalytics, parameters: Map<String, String>)
public external fun setAnalyticsCollectionEnabled(app: FirebaseAnalytics, enabled: Boolean)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public actual fun Firebase.analytics(app: FirebaseApp): FirebaseAnalytics {

public actual class FirebaseAnalytics {
public actual fun setUserProperty(name: String, value: String) {}
public actual fun setUserId(id: String) {}
public actual fun setUserId(id: String?) {}
public actual fun resetAnalyticsData() {}
public actual fun setAnalyticsCollectionEnabled(enabled: Boolean) {}
public actual fun setSessionTimeoutInterval(sessionTimeoutInterval: Duration) {}
Expand Down

0 comments on commit 219bd60

Please sign in to comment.