Releases: MohamedRejeb/Calf
Releases · MohamedRejeb/Calf
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
v0.3.1
What's Changed
- Remove default value to title + headline in AdaptiveDatePicker on Android by @j-roskopf in #36
- Use PHPicker if file type is image on iOS by @iruizmar in #50
New Contributors
- @j-roskopf made their first contribution in #36
- @iruizmar made their first contribution in #50
Full Changelog: v0.3.0...v0.3.1
v0.3.0
What's Changed
- Add permissions support by @MohamedRejeb in #25
- Add mkdocs by @MohamedRejeb in #33
- Fix Typo in README.md: Change 'FilePickerType' to 'FilePickerFileType' by @onseok in #38
- Update Kotlin to 1.9.21 by @MohamedRejeb in #40
- Update Compose to 1.5.11 by @MohamedRejeb in #40
New Contributors
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Common
- Update compose to 1.5.10-beta01 and add new material source set group by @MohamedRejeb in #12
- Update Kotlin to 1.9.20-Beta by @MohamedRejeb in #14
- Add calling javascript support to webview by @MohamedRejeb in #16
- Add folder selection support @MohamedRejeb in #18
- Add different file types support (image, video, pdf, text, document, presentation...) by @MohamedRejeb in #18
Desktop
- Fix an issue with desktop file picker mimetype by @MohamedRejeb in #13
- Add WebView support to Desktop and support settings & evaluating JS by @MohamedRejeb in #15
Dependencies
New Contributors
- @zeeshanali-k made their first contribution in #5
Full Changelog: v0.1.1...v0.2.0
v0.1.1
Features
- Adaptive Alert Dialog
- Adaptive Bottom Sheet
- Adaptive Circular Indicator
- Adaptive Switch
- Adaptive Date/Time Picker
- File Picker
- Web View
Full Changelog: https://github.com/MohamedRejeb/Calf/commits/v0.1.1