Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
Widget
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Android Widget
Widget
Commits
0c5bc4e1
Commit
0c5bc4e1
authored
Dec 12, 2022
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.2.3
parent
013d408b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
build.gradle
tools/build.gradle
+1
-1
build.gradle
zqtoolkit/build.gradle
+1
-1
ScaleHub.kt
zqtoolkit/src/main/java/com/qmai/zqtoolkit/ScaleHub.kt
+2
-2
ZqScaleKit.kt
...olkit/src/main/java/com/qmai/zqtoolkit/base/ZqScaleKit.kt
+1
-1
No files found.
tools/build.gradle
View file @
0c5bc4e1
...
@@ -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
{
...
...
zqtoolkit/build.gradle
View file @
0c5bc4e1
...
@@ -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
{
...
...
zqtoolkit/src/main/java/com/qmai/zqtoolkit/ScaleHub.kt
View file @
0c5bc4e1
...
@@ -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
...
...
zqtoolkit/src/main/java/com/qmai/zqtoolkit/base/ZqScaleKit.kt
View file @
0c5bc4e1
...
@@ -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
(
10
0
)
delay
(
8
0
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment