Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import kotlinx.parcelize.Parcelize
import kotlinx.serialization.Serializable

@Serializable
sealed interface TipStep : FlowStep, Parcelable, NonDismissableRoute, NonDraggableRoute {
sealed interface TipStep : FlowStep, Parcelable {

@Parcelize
@Serializable
Expand Down
1 change: 1 addition & 0 deletions apps/flipcash/shared/tipping/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies {
implementation(project(":apps:flipcash:shared:tokens"))
implementation(project(":apps:flipcash:shared:userflags"))
implementation(project(":libs:messaging"))
implementation(project(":libs:vibrator:bindings"))
implementation(project(":services:flipcash"))
implementation(project(":services:opencode"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.getcode.opencode.model.financial.Fiat
import com.getcode.opencode.model.financial.Token
import com.getcode.opencode.utils.combine
import com.getcode.util.resources.ResourceHelper
import com.getcode.util.vibration.Vibrator
import com.getcode.view.LoadingSuccessState
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
Expand Down Expand Up @@ -72,6 +73,7 @@ class TippingCoordinator @Inject constructor(
private val resources: ResourceHelper,
private val purchaseMethodController: PurchaseMethodController,
private val analytics: FlipcashAnalyticsService,
private val vibrator: Vibrator,
) : TipSelectionHolder {
/** The signed-in user's id ([UserManager.accountId]), or null if unavailable. */
val currentUserId: ID?
Expand Down Expand Up @@ -287,6 +289,7 @@ class TippingCoordinator @Inject constructor(
// the amount entry's below-min / over-balance gates and confirmTip.
_canTip.value = tokenCoordinator.hasGiveableBalance()
_userId.value = userId
vibrator.vibrate()
}
.map { tipCard(userId, it) }

Expand Down
Loading