Skip to content

Commit 2fb065c

Browse files
committed
fix: remove non-multiplatform imports
1 parent 578dfc3 commit 2fb065c

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
<img height="80" src="https://user-images.githubusercontent.com/2512298/163075335-494c2a4d-e446-4627-8865-183683a75834.png"/>
99
<br>
1010
Bonsai
11-
<br>
1211
</h1>
1312

1413
<h3 align="center">
1514
A batteries-included Tree View for Jetpack Compose
16-
<br>
15+
<br><br>
1716
<img width=400 src="https://user-images.githubusercontent.com/2512298/163289815-d584327c-ee5b-4f58-835c-121585b81f37.gif">
1817
</h3>
1918

bonsai-core/src/commonMain/kotlin/cafe/adriel/bonsai/core/Bonsai.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package cafe.adriel.bonsai.core
22

3-
import androidx.annotation.FloatRange
43
import androidx.compose.animation.EnterTransition
54
import androidx.compose.animation.ExitTransition
65
import androidx.compose.animation.expandVertically
@@ -53,7 +52,7 @@ public data class BonsaiStyle<T>(
5352
public val toggleIconSize: Dp = 16.dp,
5453
public val toggleIconColorFilter: ColorFilter? = null,
5554
public val toggleShape: Shape = CircleShape,
56-
@FloatRange(from = 0.0) public val toggleIconRotationDegrees: Float = 90f,
55+
public val toggleIconRotationDegrees: Float = 90f,
5756
public val nodeIconSize: Dp = 24.dp,
5857
public val nodePadding: PaddingValues = PaddingValues(all = 4.dp),
5958
public val nodeShape: Shape = RoundedCornerShape(size = 4.dp),

bonsai-file-system/src/commonMain/kotlin/cafe/adriel/bonsai/filesystem/FileSystemNode.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public fun FileSystemBonsaiStyle(): BonsaiStyle<Path> =
3232

3333
public fun fileSystemNodes(
3434
rootPath: Path,
35-
selfInclude: Boolean = false,
36-
fileSystem: FileSystem = FileSystem.SYSTEM
35+
fileSystem: FileSystem,
36+
selfInclude: Boolean = false
3737
): List<Node<Path>> =
3838
with(
3939
FileSystemNodeScope(

bonsai-file-system/src/jvmMain/kotlin/cafe/adriel/bonsai/filesystem/JvmFileSystemNode.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cafe.adriel.bonsai.filesystem
22

33
import cafe.adriel.bonsai.core.node.Node
4+
import okio.FileSystem
45
import okio.Path
56
import okio.Path.Companion.toOkioPath
67
import java.io.File
@@ -12,6 +13,7 @@ public fun fileSystemNodes(
1213
): List<Node<Path>> =
1314
fileSystemNodes(
1415
rootPath = rootPath.toOkioPath(),
16+
fileSystem = FileSystem.SYSTEM,
1517
selfInclude = selfInclude
1618
)
1719

@@ -21,5 +23,6 @@ public fun fileSystemNodes(
2123
): List<Node<Path>> =
2224
fileSystemNodes(
2325
rootPath = rootPath.toOkioPath(),
26+
fileSystem = FileSystem.SYSTEM,
2427
selfInclude = selfInclude
2528
)

0 commit comments

Comments
 (0)