File tree Expand file tree Collapse file tree 3 files changed +30
-10
lines changed
convention-plugins/src/main/kotlin
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic Expand file tree Collapse file tree 3 files changed +30
-10
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ plugins {
3
3
signing
4
4
}
5
5
6
+ val githubUrl = " https://github.com"
7
+ val projectUrl = " $githubUrl /miuix-kotlin-multiplatform/miuix"
8
+
6
9
publishing {
7
10
publications.withType<MavenPublication > {
8
11
// Stub javadoc.jar artifact
@@ -15,23 +18,37 @@ publishing {
15
18
pom {
16
19
name.set(" miuix" )
17
20
description.set(" A UI library for Compose MultiPlatform" )
18
- url.set(" https://github.com/miuix-kotlin-multiplatform/miuix" )
19
-
21
+ url.set(projectUrl)
20
22
licenses {
21
23
license {
22
- name.set(" Apache- 2.0" )
23
- url.set(" https://github.com/miuix-kotlin-multiplatform/miuix /blob/main/LICENSE" )
24
+ name.set(" The Apache Software License, Version 2.0" )
25
+ url.set(" $projectUrl /blob/main/LICENSE" )
24
26
}
25
27
}
28
+ issueManagement {
29
+ system.set(" Github" )
30
+ url.set(" $projectUrl /issues" )
31
+ }
32
+ scm {
33
+ connection.set(" $projectUrl .git" )
34
+ url.set(projectUrl)
35
+ }
26
36
developers {
27
37
developer {
28
38
id.set(" YuKongA" )
29
39
name.set(" YuKongA" )
30
- url.set(" https://github.com/YuKongA" )
40
+ url.set(" $githubUrl /YuKongA" )
41
+ }
42
+ developer {
43
+ id.set(" HowieHChen" )
44
+ name.set(" Howie" )
45
+ url.set(" $githubUrl /HowieHChen" )
46
+ }
47
+ developer {
48
+ id.set(" Voemp" )
49
+ name.set(" Voemp" )
50
+ url.set(" $githubUrl /Voemp" )
31
51
}
32
- }
33
- scm {
34
- url.set(" https://github.com/miuix-kotlin-multiplatform/miuix" )
35
52
}
36
53
}
37
54
}
Original file line number Diff line number Diff line change 1
1
allprojects {
2
2
group = " top.yukonga.miuix.kmp"
3
- version = " 0.4.0 "
3
+ version = " 0.4.1 "
4
4
}
Original file line number Diff line number Diff line change @@ -682,7 +682,10 @@ private fun TopAppBarLayout(
682
682
val layoutHeight = lerp(
683
683
start = collapsedHeight,
684
684
stop = expandedHeight,
685
- fraction = 1f - (abs(scrolledOffset.offset()) / expandedHeightPx).coerceIn(0f , 1f )
685
+ fraction = if (expandedHeightPx > 0f ) {
686
+ val offset = scrolledOffset.offset()
687
+ if (offset.isNaN()) 1f else (1f - (abs(offset) / expandedHeightPx).coerceIn(0f , 1f ))
688
+ } else 1f
686
689
).toFloat().roundToInt()
687
690
688
691
layout(constraints.maxWidth, layoutHeight) {
You can’t perform that action at this time.
0 commit comments