onseok / peekaboo

🌄 Kotlin Multiplatform library for Compose Multiplatform, designed for seamless integration of an image picker feature in iOS and Android applications.
Apache License 2.0
211 stars 19 forks source link

[faeature/apply-coroutines-camerax] Attach kotlinx-coroutines-guava on camerax(ListenableFuture) #81

Closed l2hyunwoo closed 5 months ago

l2hyunwoo commented 5 months ago

Description

In CameraWithGrantedPermission function, listenable future is used due to get ProcessCameraProvider. But in Kotlin, we can use await function with guava integration library, so I use it to remove usage of Future in this lib.

Video

https://github.com/onseok/peekaboo/assets/54518925/b7378c4f-d86d-4fca-b60d-d7943636fb05

onseok commented 5 months ago

LGTM 👍