This PR intends to let users declare optional permissions to be used with CamerAwesome (record audio and location access) as mentioned in #176.
When set and required, they are asked when the user need them.
Record Audio permission is asked
When calling VideoCameraState.enableAudio()
When starting a video recording with audio enabled
Location
When calling PhotoCameraState.shouldSaveGpsLocation(true)
When showing CamerAwesomeBuilder with ExifPreference.saveGPSLocation set to true.
Note: Tests have been updated and should be able to run on Firebase Test Lab
Checklist
Before creating any Pull Request, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
Description
This PR intends to let users declare optional permissions to be used with CamerAwesome (record audio and location access) as mentioned in #176. When set and required, they are asked when the user need them.
Record Audio permission is asked
VideoCameraState.enableAudio()
Location
PhotoCameraState.shouldSaveGpsLocation(true)
CamerAwesomeBuilder
withExifPreference.saveGPSLocation
set to true.Note: Tests have been updated and should be able to run on Firebase Test Lab
Checklist
Before creating any Pull Request, confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).flutter analyze
without any issues.Breaking Change
CamerAwesome users will need to declare permissions in their Manifest starting with this version.