toga_cocoaCamera now checks if NSCameraUsageDescription has been set in pyproject.toml, and (if not) warns if running with dev, and raises a RuntimeError otherwise
Also added an is_bundled property to the coreApp in order to determine whether a warning / error is appropriate
Refactored code in icons.py to use this is_bundled helper property
Added an assertion for is_bundled to test_app_metadata
toga_cocoa
Camera
now checks ifNSCameraUsageDescription
has been set inpyproject.toml
, and (if not) warns if running withdev
, and raises aRuntimeError
otherwiseis_bundled
property to thecore
App
in order to determine whether a warning / error is appropriateicons.py
to use thisis_bundled
helper propertyis_bundled
totest_app_metadata
Closes #2589
PR Checklist: