Compare commits
1 commit
e7fb7ed2b8
...
678a4e70ab
Author | SHA1 | Date | |
---|---|---|---|
678a4e70ab |
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
package im.angry.openeuicc.core
|
package im.angry.openeuicc.core
|
||||||
|
|
||||||
import im.angry.openeuicc.util.UiccPortInfoCompat
|
import im.angry.openeuicc.util.UiccPortInfoCompat
|
||||||
import im.angry.openeuicc.util.decodeHex
|
|
||||||
import kotlinx.coroutines.flow.Flow
|
import kotlinx.coroutines.flow.Flow
|
||||||
import kotlinx.coroutines.flow.first
|
import kotlinx.coroutines.flow.first
|
||||||
import kotlinx.coroutines.runBlocking
|
import kotlinx.coroutines.runBlocking
|
||||||
|
@ -18,7 +17,7 @@ class EuiccChannelImpl(
|
||||||
override val isdrAid: ByteArray,
|
override val isdrAid: ByteArray,
|
||||||
verboseLoggingFlow: Flow<Boolean>,
|
verboseLoggingFlow: Flow<Boolean>,
|
||||||
ignoreTLSCertificateFlow: Flow<Boolean>,
|
ignoreTLSCertificateFlow: Flow<Boolean>,
|
||||||
es10xMss: Flow<Int>,
|
es10xMssFlow: Flow<Int>,
|
||||||
) : EuiccChannel {
|
) : EuiccChannel {
|
||||||
override val slotId = port.card.physicalSlotIndex
|
override val slotId = port.card.physicalSlotIndex
|
||||||
override val logicalSlotId = port.logicalSlotIndex
|
override val logicalSlotId = port.logicalSlotIndex
|
||||||
|
@ -30,7 +29,7 @@ class EuiccChannelImpl(
|
||||||
apduInterface,
|
apduInterface,
|
||||||
HttpInterfaceImpl(verboseLoggingFlow, ignoreTLSCertificateFlow),
|
HttpInterfaceImpl(verboseLoggingFlow, ignoreTLSCertificateFlow),
|
||||||
).also {
|
).also {
|
||||||
it.setEs10xMss(runBlocking { es10xMss.first().toByte() })
|
it.setEs10xMss(runBlocking { es10xMssFlow.first().toByte() })
|
||||||
}
|
}
|
||||||
|
|
||||||
override val atr: ByteArray?
|
override val atr: ByteArray?
|
||||||
|
|
Loading…
Add table
Reference in a new issue