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

Delta Between Two Patch Sets: Info.plist.tmpl

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

Powered by Google App Engine
This is Rietveld