Compare commits

..

1 commit

Author SHA1 Message Date
e7fb7ed2b8
feat: integrate es10x MSS flow into channel implementations 2025-08-11 10:45:22 +08:00

View file

@ -1,6 +1,7 @@
package im.angry.openeuicc.core
import im.angry.openeuicc.util.UiccPortInfoCompat
import im.angry.openeuicc.util.decodeHex
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.runBlocking
@ -17,7 +18,7 @@ class EuiccChannelImpl(
override val isdrAid: ByteArray,
verboseLoggingFlow: Flow<Boolean>,
ignoreTLSCertificateFlow: Flow<Boolean>,
es10xMssFlow: Flow<Int>,
es10xMss: Flow<Int>,
) : EuiccChannel {
override val slotId = port.card.physicalSlotIndex
override val logicalSlotId = port.logicalSlotIndex
@ -29,7 +30,7 @@ class EuiccChannelImpl(
apduInterface,
HttpInterfaceImpl(verboseLoggingFlow, ignoreTLSCertificateFlow),
).also {
it.setEs10xMss(runBlocking { es10xMssFlow.first().toByte() })
it.setEs10xMss(runBlocking { es10xMss.first().toByte() })
}
override val atr: ByteArray?