Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-21 17:12:52 +03:00
parent 309f1cda20
commit 081128f2cf
16 changed files with 40 additions and 50 deletions

View file

@ -11,5 +11,6 @@ interface AppsFlyerOnlyEvent
* Events implementing this interface will be sent to AppsFlyer along with other analytics handlers
*/
interface AppsFlyerIncludedEvent {
val appsFlyerReplacedEvent: String
val appsFlyerReplacedEvent: String?
get() = null
}

View file

@ -93,7 +93,7 @@ sealed class Basic(
}
this["Memo"] = memoType.name
},
) {
), AppsFlyerIncludedEvent {
enum class MemoType {
Empty, Full, Null
}

View file

@ -3,7 +3,6 @@ package com.tangem.core.analytics.models.event
import com.tangem.core.analytics.models.AnalyticsEvent
import com.tangem.core.analytics.models.AnalyticsParam
import com.tangem.core.analytics.models.AppsFlyerIncludedEvent
import com.tangem.core.analytics.models.AppsFlyerOnlyEvent
sealed class OnboardingAnalyticsEvent(
category: String,
@ -16,8 +15,6 @@ sealed class OnboardingAnalyticsEvent(
params: Map<String, String> = mapOf(),
) : OnboardingAnalyticsEvent(category = "Onboarding", event = event, params = params) {
class AppsFlyerOnlyEntryScreenView : Onboarding(event = "wallet_entry_screen_view"), AppsFlyerOnlyEvent
class Started(
source: String,
) : Onboarding(
@ -68,12 +65,7 @@ sealed class OnboardingAnalyticsEvent(
put("Seed Phrase Length", seedPhraseLength.toString())
}
},
), AppsFlyerIncludedEvent {
override val appsFlyerReplacedEvent = when (creationType) {
WalletCreationType.NewSeed -> "wallet_created_successfully"
WalletCreationType.SeedImport -> "wallet_imported"
}
}
), AppsFlyerIncludedEvent
sealed class WalletCreationType(val value: String) {
data object NewSeed : WalletCreationType(value = "New Seed")
@ -93,7 +85,7 @@ sealed class OnboardingAnalyticsEvent(
params = mapOf(
AnalyticsParam.SOURCE to source,
),
)
), AppsFlyerIncludedEvent
class ButtonImportWallet : SeedPhrase("Button - Import Wallet")
class ImportSeedPhraseScreenOpened : SeedPhrase("Import Seed Phrase Screen Opened")