MohamedRejeb Calf Versions Save

Calf is a library that allows you to easily create adaptive UIs and access platform specific APIs with Compose Multiplatform.

v0.4.0

2 months ago

🚀 Features

All

calf-file-picker

calf-permissions

🐛 Fixes

calf-file-picker

📦 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: https://github.com/MohamedRejeb/Calf/compare/v0.3.1...v0.4.0

v0.3.1

3 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/MohamedRejeb/Calf/compare/v0.3.0...v0.3.1

v0.3.0

5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/MohamedRejeb/Calf/compare/v0.2.0...v0.3.0

v0.2.0

7 months ago

Common

Desktop

Dependencies

New Contributors

Full Changelog: https://github.com/MohamedRejeb/Calf/compare/v0.1.1...v0.2.0

v0.1.1

8 months ago

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