Skip to content

Releases: MohamedRejeb/Calf

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