Format template
This commit is contained in:
parent
c3c9acd9e7
commit
189ef05301
|
|
@ -2,27 +2,27 @@
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>method</key>
|
<key>method</key>
|
||||||
<string>{{ cookiecutter.ios_export_method }}</string>
|
<string>{{ cookiecutter.ios_export_method }}</string>
|
||||||
<key>provisioningProfiles</key>
|
<key>provisioningProfiles</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>{{ cookiecutter.bundle_id }}</key>
|
<key>{{ cookiecutter.bundle_id }}</key>
|
||||||
<string>{{ cookiecutter.ios_provisioning_profile }}</string>
|
<string>{{ cookiecutter.ios_provisioning_profile }}</string>
|
||||||
</dict>
|
</dict>
|
||||||
{% macro render_dict(d) -%}
|
{% macro render_dict(d) -%}
|
||||||
{% for key, value in d.items() -%}
|
{% for key, value in d.items() -%}
|
||||||
<key>{{ key }}</key>
|
<key>{{ key }}</key>
|
||||||
{% if value is string -%}
|
{% if value is string -%}
|
||||||
<string>{{ value }}</string>
|
<string>{{ value }}</string>
|
||||||
{% elif value is boolean -%}
|
{% elif value is boolean -%}
|
||||||
<{{ "true" if value else "false" }}/>
|
<{{ "true" if value else "false" }}/>
|
||||||
{% elif value is mapping -%}
|
{% elif value is mapping -%}
|
||||||
<dict>
|
<dict>
|
||||||
{{ render_dict(value) }}
|
{{ render_dict(value) }}
|
||||||
</dict>
|
</dict>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
{% endmacro -%}
|
{% endmacro -%}
|
||||||
{{ render_dict(cookiecutter.ios_export_options) }}
|
{{ render_dict(cookiecutter.ios_export_options) }}
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
Loading…
Reference in New Issue