Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Analytics ktx 이전 #506

Open
nodobi opened this issue Dec 13, 2024 · 0 comments
Open

Firebase Analytics ktx 이전 #506

nodobi opened this issue Dec 13, 2024 · 0 comments

Comments

@nodobi
Copy link
Contributor

nodobi commented Dec 13, 2024

개요

Firebase Anayltics 모듈에서 KTX API로 이전
https://firebase.google.com/docs/android/kotlin-migration?hl=ko

대응 부분

private fun logEvent(action: EventAction, category: EventCategory, label: String, value: String, vararg extras: EventExtra) {
if (BuildConfig.IS_DEBUG) {
Firebase.analytics.logEvent("${action.value}_debug") {
param(EVENT_CATEGORY, "${category.value}_debug")
param(EVENT_LABEL, "$label (debug)")
param(VALUE, value)
extras.forEach {
param("${it.key}_debug", it.value)
}
}
} else {
Firebase.analytics.logEvent(action.value) {
param(EVENT_CATEGORY, category.value)
param(EVENT_LABEL, label)
param(VALUE, value)
extras.forEach {
param(it.key, it.value)
}
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant