Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-26 18:52:02 +04:00
parent 8971ebef55
commit 96478230a0
9 changed files with 112 additions and 4 deletions

View file

@ -33,13 +33,14 @@ class CustomerIoAnalyticsHandler(
class Builder : AnalyticsHandlerBuilder {
override fun build(data: AnalyticsHandlerBuilder.Data): AnalyticsHandler? {
val cdpApiKey = data.config.customerIoCdpApiKey
return if (data.logConfig.isCustomerIoLogEnabled) {
CustomerIoAnalyticsHandler(client = CustomerIoLogClient())
} else if (data.config.customerIoCdpApiKey.isNotBlank()) {
} else if (!cdpApiKey.isNullOrBlank()) {
CustomerIoAnalyticsHandler(
client = CustomerIoClient(
application = data.application,
cdpApiKey = data.config.customerIoCdpApiKey,
cdpApiKey = cdpApiKey,
),
)
} else {