From 478edd65bcecf439cc87d0fa29bc12de45e59046 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Fri, 12 Jan 2024 13:33:45 +0800 Subject: [PATCH] Use platform-appropriate keys in template context. --- cookiecutter.json | 2 +- .../{{ cookiecutter.class_name }}/Info.plist | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cookiecutter.json b/cookiecutter.json index 6903ea2..1891354 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -6,7 +6,7 @@ "module_name": "{{ cookiecutter.app_name|replace('-', '_') }}", "author": "Example Corporation", "bundle": "com.example", - "permissions": "", + "info": "", "entitlements": "", "document_types": "", "version": "1.0", diff --git a/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/Info.plist b/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/Info.plist index 4202916..7823e53 100644 --- a/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/Info.plist +++ b/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/Info.plist @@ -83,8 +83,8 @@ {% endfor %} {% endif %} -{%- if cookiecutter.permissions -%} - {%- for permission, value in cookiecutter.permissions.items() %} +{%- if cookiecutter.info -%} + {%- for permission, value in cookiecutter.info.items() %} {{ permission }} {{ value|plist_value }} {%- endfor -%}