Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: Info.plist.tmpl

Issue 11544056: Prepared buildtools for Safari (Closed)
Patch Set: Fixed regex for fixing absolute URLs in Safari Created Oct. 31, 2013, 3:28 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | background.html.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {%- macro str_or_real(value) -%}
2 {%- if value is number -%}
3 <real>{{ value }}</real>
4 {%- else -%}
5 <string>{{ value }}</string>
6 {%- endif -%}
7 {%- endmacro -%}
8
9 <?xml version="1.0" encoding="UTF-8"?>
10 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/ PropertyList-1.0.dtd">
11 <plist version="1.0">
12 <dict>
13 <key>CFBundleDisplayName</key>
14 <string>{{ name }}</string>
15 <key>CFBundleIdentifier</key>
16 <string>org.adblockplus.{{ basename }}</string>
17 <key>CFBundleInfoDictionaryVersion</key>
18 <string>6.0</string>
19 <key>CFBundleShortVersionString</key>
20 <string>{{ shortVersion }}</string>
21 <key>CFBundleVersion</key>
22 <string>{{ version }}</string>
23 <key>Chrome</key>
24 <dict>
25 <key>Database Quota</key>
26 <real>104857600</real>
27 <key>Global Page</key>
28 <string>background.html</string>
29 {%- if menus %}
30 <key>Menus</key>
31 <array>
32 {%- for identifier, items in menus.iteritems() %}
33 <dict>
34 <key>Identifier</key>
35 <string>{{ identifier }}</string>
36 <key>Menu Items</key>
37 <array>
38 {%- for identifier, props in items.iteritems() %}
39 <dict>
40 <key>Identifier</key>
41 <string>{{ identifier }}</string>
42 {%- for key, value in props.iteritems() %}
43 <key>{{ key }}</key>
44 {{ str_or_real(value) }}
45 {%- endfor %}
46 </dict>
47 {%- endfor %}
48 </array>
49 </dict>
50 {%- endfor %}
51 </array>
52 {%- endif %}
53 {%- if popovers %}
54 <key>Popovers</key>
55 <array>
56 {%- for identifier, props in popovers.iteritems() %}
57 <dict>
58 <key>Identifier</key>
59 <string>{{ identifier }}</string>
60 {%- for key, value in props.iteritems() %}
61 <key>{{ key }}</key>
62 {{ str_or_real(value) }}
63 {%- endfor %}
64 </dict>
65 {%- endfor %}
66 </array>
67 {%- endif %}
68 {%- if toolbarItems %}
69 <key>Toolbar Items</key>
70 <array>
71 {%- for identifier, props in toolbarItems.iteritems() %}
72 <dict>
73 <key>Identifier</key>
74 <string>{{ identifier }}</string>
75 {%- for key, value in props.iteritems() %}
76 <key>{{ key }}</key>
77 {{ str_or_real(value) }}
78 {%- endfor %}
79 </dict>
80 {%- endfor %}
81 </array>
82 {%- endif %}
83 </dict>
84 {%- if startScripts or endScripts %}
85 <key>Content</key>
86 <dict>
87 <key>Scripts</key>
88 <dict>
89 {%- if startScripts %}
90 <key>Start</key>
91 <array>
92 {%- for script in startScripts %}
93 <string>{{ script }}</string>
94 {%- endfor %}
95 </array>
96 {%- endif %}
97 {%- if endScripts %}
98 <key>End</key>
99 <array>
100 {%- for script in endScripts %}
101 <string>{{ script }}</string>
102 {%- endfor %}
103 </array>
104 {%- endif %}
105 </dict>
106 </dict>
107 {%- endif %}
108 <key>ExtensionInfoDictionaryVersion</key>
109 <string>1.0</string>
110 <key>Permissions</key>
111 <dict>
112 <key>Website Access</key>
113 <dict>
114 {%- if allowedDomains and not allowAllDomains %}
115 <key>Allowed Domains</key>
116 <array>
117 {%- for domain in allowedDomains %}
118 <string>{{ domain }}</string>
119 {%- endfor %}
120 </array>
121 {%- endif %}
122 <key>Include Secure Pages</key>
123 {%- if allowSecurePages %}
124 <true/>
125 {%- else %}
126 <false/>
127 {%- endif %}
128 <key>Level</key>
129 {%- if allowAllDomains %}
130 <string>All</string>
131 {%- elif allowedDomains %}
132 <string>Some</string>
133 {%- else %}
134 <string>None</string>
135 {%- endif %}
136 </dict>
137 </dict>
138 <key>Description</key>
139 <string>{{ description }}</string>
140 {%- if author %}
141 <key>Author</key>
142 <string>{{ author }}</string>
143 {%- endif %}
144 {%- if homepage %}
145 <key>Website</key>
146 <string>{{ homepage }}</string>
147 {%- endif %}
148 {%- if not releaseBuild or updateURL %}
149 <key>Update Manifest URL</key>
150 <string>
151 {%- if not releaseBuild -%}
152 https://adblockplus.org/devbuilds/{{ basename }}/updates.plist
153 {%- else -%}
154 {{ updateURL }}
155 {%- endif -%}
156 </string>
157 {%- endif %}
158 </dict>
159 </plist>
OLDNEW
« no previous file with comments | « no previous file | background.html.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld