Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
912 stars 201 forks source link

android.permission.WRITE_EXTERNAL_STORAGE is not always required #320

Open krzysztof-swi opened 1 year ago

krzysztof-swi commented 1 year ago

Hi, This task concerns only Android version: My app has defined write_external_storage permission in AndroidManifest.xml, as I need it in other place:

I use camereawesome for taking pictures, I save them inside application directories, using path_provider.getTemporaryDirectory. This permission is not required for saving files in this directory. However when I open the camera, the permission popup appears asking for external storage. I think the culprit is in CameraPermissions.kt - allPermissions list contains write_external_storage permission and it is never removed. Maybe asking for this permission could be made optional?