Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ detekt = "1.19.0"
dokka = "2.0.0"
dependencyGuard = "0.5.0"
# Any version above 0.10.0-beta03 requires Compose 1.8.0 or higher, beta03 is 1.7.3 or higher.
filekit-dialogs-compose = "0.10.0-beta03"
filekit-dialogs-compose = "0.14.2"

google-accompanist = "0.18.0"
google-dagger = "2.40.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import io.github.vinceglb.filekit.PlatformFile
import io.github.vinceglb.filekit.dialogs.FileKitDialogSettings
import io.github.vinceglb.filekit.dialogs.FileKitType
import io.github.vinceglb.filekit.dialogs.compose.rememberFilePickerLauncher

Expand All @@ -25,7 +26,9 @@ internal fun UploadFile(
) {
val launcher = rememberFilePickerLauncher(
type = FileKitType.File(listOf("json", "txt")),
title = "Select Workflow Trace File"
dialogSettings = FileKitDialogSettings(
title = "Select Workflow Trace File"
)
) {
resetOnFileSelect(it)
}
Expand Down
Loading