If you've been suffering when working with Android...
# feed
e
If you've been suffering when working with Android permissions and want to know basic things like whether a permission was permanently denied, or be able to work with permissions in Compose without the preview breaking, check out my new library compose-permissionx. It's built on top of Accompanist permissions, so the API should be very familiar (it's basically the same), and it comes with the fixes above, as well as more. Feedback and contributions are more than welcome 😄
👍 1
K 3
👍🏼 1
❤️ 1
s
Just did this recently in one of my apps, and while it wasn't particularly difficult, it certainly needed a lot of boilerplate code. Was gonna ignore this library until I start a new project, until I've seen the
openAppSettings()
function. Like, damn that's way too convenient! In addition to the nice sealed classes to represent all states, I'm bought :D Thanks for the amazing work!
e
To give credit where it is due, I did get the idea for
openAppSettings
from @mohamed rejeb and Calf so a big thanks to him 😄 I would hold off on integrating this library right now (I should probably update the README), as I opened a PR on Accompanist to integrate these changes in their permissions library. There's one final hurdle to get over, but if we can then it looks like it might be built in to Accompanist!
🙌 1
s
That's great to hear! Would be great to see this built right into Accompanist.