Releases: MohamedRejeb/Calf
Releases · MohamedRejeb/Calf
v0.5.0
🚀 Features
All
- [Android] Decrease minSdk to 21 by @MohamedRejeb in #98
calf-ui
- Add AdaptiveClickable by @MohamedRejeb in #99
calf-file-picker
- Add file picker filter by extensions support by @MohamedRejeb in #94
- [iOS] Skip creating temp file for directories. by @MohamedRejeb in #95
🐛 Fixes
calf-file-picker
- [iOS] Use PHPicker for FilePickerFileType.Video and FilePickerFileType.ImageVideo by @MohamedRejeb in #96
- [Desktop] Fix filtering files issue on Windows by @MohamedRejeb in #94
- [Web] Skip launching file picker when using FilePickerFileType.Folder in Web by @MohamedRejeb in #97
📦 Dependencies
- Update Kotlin to 2.0.0 and Compose to 1.6.11 by @MohamedRejeb in #91
❌ Breaking changes
🆕 calf-webivew
- Separate Web-View from UI Package by @Shahriyar13 in #46
- Move webview to a separate artifact by @MohamedRejeb in #93
WebView
is separated fromcalf-ui
. If you areWebView
make sure to add the new dependencycalf-webivew
.
New Contributors
- @Shahriyar13 made their first contribution in #46
Full Changelog: v0.4.1...v0.5.0
v0.4.1
What's Changed
- Add meta viewport setting in sample for better user experience on mobile devices by @jershell in #73
- Add a Coil utils module and a KmpFileFetcher to load file picker images with coil easily by @iruizmar in #84
- Create iOS temp file in images file picker by @MohamedRejeb in #85
- Create iOS temp file in documents file picker by @MohamedRejeb in #86
The
NSURL
returned by iOSPHPicker
is a url for a file that's going to be deleted after the file picker callback so you won't be able to storeKmpFile
and use it later for upload or something else, that's why now we create a temp file in iOS to solve this issue.
New Contributors
Full Changelog: v0.4.0...v0.4.1
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