Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Add in-app card
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Nov 5, 2024
1 parent c1167e1 commit acf098c
Showing 1 changed file with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,28 @@ class CustomerJourneyCardsProvider @Inject constructor(

companion object {
val ACTIVE_CARDS = listOf(
shutdownCard(),
adjustBalanceCard(),
addPlannedPaymentCard(),
didYouKnow_pinAddTransactionWidgetCard(),
didYouKnow_expensesPieChart(),
rateUsCard(),
shareIvyWalletCard(),
joinIvyTelegramCard(),
rateUsCard_2(),
joinTelegram2(),
ivyWalletIsOpenSource(),
bugsApology(),
)

fun shutdownCard() = CustomerJourneyCardModel(
id = "shutdown",
condition = { _, _, _ -> true },
title = "Important Notice: App No Longer Maintained",
description = "As of Nov 5th 2024, Ivy Wallet is no longer maintained by the original developers. You may continue to use the app, but it will no longer receive updates, bug fixes, or support, and it may stop functioning at some point.",
cta = "Learn More",
ctaIcon = R.drawable.github_logo,
background = Gradient.solid(Red),
hasDismiss = true,
onAction = { _, _, ivyActivity ->
ivyActivity.openUrlInBrowser(Constants.URL_IVY_WALLET_REPO)
}
)


fun adjustBalanceCard() = CustomerJourneyCardModel(
id = "adjust_balance",
condition = { trnCount, _, _ ->
Expand Down

0 comments on commit acf098c

Please sign in to comment.