v0.4.0
🚀 Features
All
- Add WasmJs Support by @MohamedRejeb in #63
- New Web demo here by @MohamedRejeb in #71
calf-file-picker
- Add Web(Js & WASM) support to file picker by @MohamedRejeb in #60
calf-permissions
- Add Android phone call permission by @MohamedRejeb in #62
🐛 Fixes
calf-file-picker
- Trigger onResult when nothing is selected on Android by @bmc08gt in #58
- iOS Image picker callbacks on the main thread by @iruizmar in #55
📦 Dependencies
- Update Compose to 1.6.0 by @MohamedRejeb in #59
- Update Kotlin to 1.9.22 by @MohamedRejeb in #59
- Update AGP to 8.2.2 by @MohamedRejeb in #59
❌ Breaking changes
calf-file-picker
- In Android KmpFile is
wrapper
aroundUri
instead ofFile
. KmpFile
extension functions now require aPlatformContext
that you can get fromLocalPlatformContext.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()
}
}
}
},
)
New Contributors
Full Changelog: v0.3.1...v0.4.0