Calf is a library that allows you to easily create adaptive UIs and access platform specific APIs with Compose Multiplatform.
calf-file-picker
calf-permissions
calf-file-picker
calf-file-picker
wrapper
around Uri
instead of File
.KmpFile
extension functions now require a PlatformContext
that you can get from LocalPlatformContext.current
KmpFile.readByteArray
is changed to a suspend function.val context = LocalPlatformContext.current
val singlePickerLauncher =
rememberFilePickerLauncher(
onResult = { files ->
scope.launch {
files.forEach {
try {
it.readByteArray(context).toImageBitmap()
} catch (e: Exception) {
e.printStackTrace()
}
}
}
},
)
Full Changelog: https://github.com/MohamedRejeb/Calf/compare/v0.3.1...v0.4.0
Full Changelog: https://github.com/MohamedRejeb/Calf/compare/v0.3.0...v0.3.1
Full Changelog: https://github.com/MohamedRejeb/Calf/compare/v0.2.0...v0.3.0
Full Changelog: https://github.com/MohamedRejeb/Calf/compare/v0.1.1...v0.2.0
Full Changelog: https://github.com/MohamedRejeb/Calf/commits/v0.1.1