Skip to content

Releases: MohamedRejeb/Calf

v0.6.1

10 Nov 10:48
0148cce
Compare
Choose a tag to compare

📦 Dependencies

🐛 Fixes

calf-ui

calf-permission

Full Changelog: v0.6.0...v0.6.1

v0.6.0

09 Nov 21:43
95a9779
Compare
Choose a tag to compare

📦 Dependencies

🚀 Features

calf-ui

calf-permission

🐛 Fixes

calf-ui

calf-permission

New Contributors

Full Changelog: v0.5.5...v0.6.0

v0.5.5

28 Aug 08:31
f7aca2a
Compare
Choose a tag to compare

🚀 Features

calf-ui

  • [iOS] Add elevation support to container color of Bottom Sheet and Date Picker by @MohamedRejeb in #165

🐛 Fixes

calf-ui

Full Changelog: v0.5.4...v0.5.5

v0.5.4

20 Aug 18:48
0aa5912
Compare
Choose a tag to compare

🚀 Features

calf-ui

calf-permissions

  • Handle PermissionStatus.Denied.shouldShowRationale on iOS by @MohamedRejeb in #156
  • Add PermissionStatus.isNotGranted and PermissionStatus.isDenied helpers by @MohamedRejeb in #153

🐛 Fixes

calf-permissions

calf-file-picker

Other

Full Changelog: v0.5.3...v0.5.4

v0.5.3

07 Aug 16:51
ea38095
Compare
Choose a tag to compare

📦 Dependencies

If you are using calf-file-picker on iOS and you are using Kotlin 2.0.0, you may encounter an issue due to Compose compiler. Make sure to update your Kotlin version to 2.0.10

🚀 Features

calf-ui

🐛 Fixes

calf-ui

  • Use initialSelectedDateMillis as the initial date on iOS if it exists. by @MohamedRejeb in #126
  • Plumb down modifier parameter in iOS AdaptiveBottomSheet by @ZacSweers in #132
  • Fix iOS AdaptiveDatePicker TimeZone issues by @MohamedRejeb in #134
  • [iOS] Picker not displayed when not on main view controller by @dan15d in #136
  • Fix light/dark theme issue on bottom sheet by @MohamedRejeb in #144

calf-file-picker

New Contributors

Full Changelog: v0.5.2...v0.5.3

v0.5.2

24 Jul 06:57
ce30ffc
Compare
Choose a tag to compare

🚀 Features

All

calf-permission

  • Add local notification permission by @Joe3112 in #107
  • Android notification permission opens notification settings by @Joe3112 in #111

calf-file-picker

🐛 Fixes

calf-ui

New Contributors

Full Changelog: v0.5.1...v0.5.2

v0.5.1

30 Jun 08:55
3818a28
Compare
Choose a tag to compare

🐛 Fixes

calf-file-picker

  • [Desktop] Fix issue in macOS picker with selecting FilePickerFileType.All by @MohamedRejeb in #104
  • [Desktop] Fix issue in windows picker with selecting FilePickerFileType.All by @MohamedRejeb in #106

Full Changelog: v0.5.0...v0.5.1

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