I just published "Streamline permission handling i...
# compose-android
j
I just published "Streamline permission handling in Android Jetpack Compose applications with Compose Permissions". In this article I talked about my new library named Compose Permissions. The library basically shrinks down a huge boilerplate of code for checking permissions using jetpack compose up to 2 lines. https://medium.com/@jianastrero/streamline-permission-handling-in-android-jetpack-compose-applications-with-compose-permissions-560b3b58fb70
k
Before diving into the installation process, you’ll need a GitHub personal token to access the library hosted on GitHub Packages. Don’t worry, it’s easy!
😅 1
Why isn’t this published on Central?
☝️ 1
s
From reading the article itself, the API looks quite similar (not identical though) to the accompanist one. What was it that wasn't convenient for you in that one which prompted you to create this library? Just curious what you'd lose/gain by using this instead in your opinion.
1
j
@Kirill Grouchnikov Will do 😅
@Stylianos Gakis 1. Mine has a smaller footprint than the accompanist library. This library is only 1.08% of the accompanist library. Even when you minify your build, it's still smaller than the accompanist library. (see attached images) 2. Though, eventually, accompanist will be part of the official jetpack compose library in the future. Mine is not as experimental as it is now, so, future updates on my library will not break usages of the code.
@Kirill Grouchnikov, Just added the library to maven central. Thanks for the suggestion!