diff --git a/cookiecutter.json b/cookiecutter.json index 3138fdd..a053500 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -8,6 +8,7 @@ "bundle": "com.example", "bundle_identifier": "{{ cookiecutter.bundle }}.{{ cookiecutter.app_name|replace('_', '-') }}", "splash_background_color": "#FFFFFF", + "permissions": "", "version": "1.0", "build": "1", "python_version": "3.X.0", @@ -17,6 +18,7 @@ ], "_extensions": [ "briefcase.integrations.cookiecutter.PythonVersionExtension", - "briefcase.integrations.cookiecutter.RGBExtension" + "briefcase.integrations.cookiecutter.RGBExtension", + "briefcase.integrations.cookiecutter.PListExtension" ] } diff --git a/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/{{ cookiecutter.class_name }}-Info.plist b/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/{{ cookiecutter.class_name }}-Info.plist index 45a97c2..1c3565f 100644 --- a/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/{{ cookiecutter.class_name }}-Info.plist +++ b/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/{{ cookiecutter.class_name }}-Info.plist @@ -50,5 +50,11 @@ UISceneConfigurations +{%- if cookiecutter.permissions -%} + {%- for permission, value in cookiecutter.permissions.items() %} + {{ permission }} + {{ value|plist_value }} + {%- endfor -%} +{%- endif %}