mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-16 02:58:52 +01:00
Log when SIA integration is enabled
This commit is contained in:
@@ -18,14 +18,21 @@
|
||||
*/
|
||||
package com.moez.QKSMS.manager
|
||||
|
||||
import org.json.JSONObject
|
||||
import timber.log.Timber
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
class AnalyticsManagerImpl @Inject constructor() : AnalyticsManager {
|
||||
|
||||
override fun track(event: String, vararg properties: Pair<String, String>) {
|
||||
// Do nothing
|
||||
override fun track(event: String, vararg properties: Pair<String, Any>) {
|
||||
|
||||
// Log the event, but don't do anything else
|
||||
JSONObject(properties
|
||||
.associateBy { pair -> pair.first }
|
||||
.mapValues { pair -> pair.value.second })
|
||||
.also { Timber.v("$event: $it") }
|
||||
}
|
||||
|
||||
override fun setUserProperty(key: String, value: Any) {
|
||||
|
||||
Reference in New Issue
Block a user