Skip to content

Commit

Permalink
Don't expose channel in AddressLookupDelegate
Browse files Browse the repository at this point in the history
COAND-1062
  • Loading branch information
OscarSpruit committed Jan 28, 2025
1 parent a3a5cef commit 5604d2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ import com.adyen.checkout.components.core.AddressLookupCallback
import com.adyen.checkout.components.core.AddressLookupResult
import com.adyen.checkout.components.core.LookupAddress
import com.adyen.checkout.components.core.internal.ui.model.AddressInputModel
import com.adyen.checkout.ui.core.internal.ui.model.AddressLookupEvent
import com.adyen.checkout.ui.core.internal.ui.model.AddressLookupState
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
Expand All @@ -25,7 +23,6 @@ interface AddressLookupDelegate {
val addressDelegate: AddressDelegate

val addressLookupStateFlow: Flow<AddressLookupState>
val addressLookupEventChannel: Channel<AddressLookupEvent>
val addressLookupSubmitFlow: Flow<AddressInputModel>
val addressLookupErrorPopupFlow: Flow<String?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class DefaultAddressLookupDelegate(
private val currentAddressLookupState
get() = mutableAddressLookupStateFlow.value

override val addressLookupEventChannel = bufferedChannel<AddressLookupEvent>()
private val addressLookupEventChannel = bufferedChannel<AddressLookupEvent>()
private val addressLookupEventFlow: Flow<AddressLookupEvent> = addressLookupEventChannel.receiveAsFlow()

override val addressOutputData: AddressOutputData
Expand Down

0 comments on commit 5604d2f

Please sign in to comment.