Skip to content

Releases: MohamedRejeb/Calf

v0.5.0

23 Jun 12:18
a02dece
Compare
Choose a tag to compare

🚀 Features

All

calf-ui

calf-file-picker

🐛 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

❌ Breaking changes

🆕 calf-webivew

WebView is separated from calf-ui. If you are WebView make sure to add the new dependency calf-webivew.

New Contributors

Full Changelog: v0.4.1...v0.5.0

v0.4.1

29 May 16:46
1fcb877
Compare
Choose a tag to compare

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 iOS PHPicker is a url for a file that's going to be deleted after the file picker callback so you won't be able to store KmpFile 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

04 Mar 06:26
225d63f
Compare
Choose a tag to compare

🚀 Features

All

calf-file-picker

calf-permissions

🐛 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

❌ Breaking changes

calf-file-picker

  • In Android KmpFile is 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()
                    }
                }
            }
        },
    )

New Contributors

Full Changelog: v0.3.1...v0.4.0

v0.3.1

29 Jan 13:49
9871e16
Compare
Choose a tag to compare

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

Full Changelog: v0.3.0...v0.3.1

v0.3.0

02 Dec 11:35
1e8a3ef
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

24 Sep 16:30
668c6a5
Compare
Choose a tag to compare

Common

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

Full Changelog: v0.1.1...v0.2.0

v0.1.1

23 Aug 14:48
a4c955f
Compare
Choose a tag to compare

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