Commit 0c5bc4e1 authored by tongzifang's avatar tongzifang

1.2.3

parent 013d408b
...@@ -42,7 +42,7 @@ repositories { ...@@ -42,7 +42,7 @@ repositories {
group 'com.qmai.android.tools' group 'com.qmai.android.tools'
version '1.1.13-SNAPSHOT' version '1.1.20'
gradlePublish { gradlePublish {
......
...@@ -30,7 +30,7 @@ android { ...@@ -30,7 +30,7 @@ android {
} }
} }
group 'com.qmai.android.zqtoolkit' group 'com.qmai.android.zqtoolkit'
version '1.2.2' version '1.2.3'
gradlePublish { gradlePublish {
......
...@@ -24,11 +24,11 @@ import kotlin.coroutines.EmptyCoroutineContext ...@@ -24,11 +24,11 @@ import kotlin.coroutines.EmptyCoroutineContext
*/ */
object ScaleHub : ScaleBaseAction { object ScaleHub : ScaleBaseAction {
private const val TAG = "ScaleHub" private const val TAG = "ScaleHub"
private val _connectState = MutableSharedFlow<ConnectState>(replay = 1) private val _connectState = MutableSharedFlow<ConnectState>()
val connectState: SharedFlow<ConnectState> = _connectState val connectState: SharedFlow<ConnectState> = _connectState
private val _livingWeight = MutableSharedFlow<LivingWeight>() private val _livingWeight = MutableSharedFlow<LivingWeight>()
val livingWeight: SharedFlow<LivingWeight> = _livingWeight val livingWeight: SharedFlow<LivingWeight> = _livingWeight
val _scaleLog = MutableSharedFlow<String>() private val _scaleLog = MutableSharedFlow<String>()
val scaleLog: SharedFlow<String> = _scaleLog val scaleLog: SharedFlow<String> = _scaleLog
private var connectJob: CoroutineScope? = null private var connectJob: CoroutineScope? = null
private var weightJob: CoroutineScope? = null private var weightJob: CoroutineScope? = null
......
...@@ -132,7 +132,7 @@ object ZqScaleKit : ScaleBaseKit() { ...@@ -132,7 +132,7 @@ object ZqScaleKit : ScaleBaseKit() {
private val weightFlow = flow { private val weightFlow = flow {
while (true) { while (true) {
emit(Unit) emit(Unit)
delay(100) delay(80)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment