Skip to content
Merged
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,13 +8,13 @@ import com.crosspaste.utils.DeviceUtils
import kotlinx.coroutines.flow.first

class EndpointInfoFactory(
deviceUtils: DeviceUtils,
private val deviceUtils: DeviceUtils,
private val pasteServer: Lazy<Server>,
private val platform: Platform,
) {
private val deviceName = deviceUtils.getDeviceName()
private val deviceName: String by lazy { deviceUtils.getDeviceName() }

private val deviceId = deviceUtils.getDeviceId()
private val deviceId: String by lazy { deviceUtils.getDeviceId() }

suspend fun createEndpointInfo(hostInfoList: List<HostInfo>): EndpointInfo {
val port = pasteServer.value.portFlow.first { it > 0 }
Expand Down
Loading