Skip to content

Commit

Permalink
fix: remove non-multiplatform imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielcafe committed Apr 14, 2022
1 parent 578dfc3 commit 2fb065c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
<img height="80" src="https://user-images.githubusercontent.com/2512298/163075335-494c2a4d-e446-4627-8865-183683a75834.png"/>
<br>
Bonsai
<br>
</h1>

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package cafe.adriel.bonsai.core

import androidx.annotation.FloatRange
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.expandVertically
Expand Down Expand Up @@ -53,7 +52,7 @@ public data class BonsaiStyle<T>(
public val toggleIconSize: Dp = 16.dp,
public val toggleIconColorFilter: ColorFilter? = null,
public val toggleShape: Shape = CircleShape,
@FloatRange(from = 0.0) public val toggleIconRotationDegrees: Float = 90f,
public val toggleIconRotationDegrees: Float = 90f,
public val nodeIconSize: Dp = 24.dp,
public val nodePadding: PaddingValues = PaddingValues(all = 4.dp),
public val nodeShape: Shape = RoundedCornerShape(size = 4.dp),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public fun FileSystemBonsaiStyle(): BonsaiStyle<Path> =

public fun fileSystemNodes(
rootPath: Path,
selfInclude: Boolean = false,
fileSystem: FileSystem = FileSystem.SYSTEM
fileSystem: FileSystem,
selfInclude: Boolean = false
): List<Node<Path>> =
with(
FileSystemNodeScope(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cafe.adriel.bonsai.filesystem

import cafe.adriel.bonsai.core.node.Node
import okio.FileSystem
import okio.Path
import okio.Path.Companion.toOkioPath
import java.io.File
Expand All @@ -12,6 +13,7 @@ public fun fileSystemNodes(
): List<Node<Path>> =
fileSystemNodes(
rootPath = rootPath.toOkioPath(),
fileSystem = FileSystem.SYSTEM,
selfInclude = selfInclude
)

Expand All @@ -21,5 +23,6 @@ public fun fileSystemNodes(
): List<Node<Path>> =
fileSystemNodes(
rootPath = rootPath.toOkioPath(),
fileSystem = FileSystem.SYSTEM,
selfInclude = selfInclude
)

0 comments on commit 2fb065c

Please sign in to comment.