Updated on 2026-08-14
This commit is contained in:
parent
2a1369fce6
commit
5a99de87fb
29 changed files with 194 additions and 47 deletions
|
|
@ -41,13 +41,17 @@ internal class DefaultWcPairUseCase @AssistedInject constructor(
|
|||
|
||||
@Suppress("LongMethod")
|
||||
override operator fun invoke(): Flow<WcPairState> {
|
||||
val (uri: String, source: WcPairRequest.Source) = pairRequest
|
||||
return flow {
|
||||
Timber.tag(WC_TAG).i("start pair flow $pairRequest")
|
||||
analytics.send(WcAnalyticEvents.NewPairInitiated(source))
|
||||
analytics.send(
|
||||
WcAnalyticEvents.NewPairInitiated(
|
||||
source = pairRequest.source,
|
||||
screen = pairRequest.screen,
|
||||
),
|
||||
)
|
||||
emit(WcPairState.Loading)
|
||||
|
||||
val pairResult = sdkDelegate.pair(uri)
|
||||
val pairResult = sdkDelegate.pair(pairRequest.uri)
|
||||
.onLeft {
|
||||
Timber.tag(WC_TAG).e(it, "Failed to call pair $pairRequest")
|
||||
analytics.send(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue