| OLD | NEW | 
|---|
|  | (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>{{ version }}</string> |  | 
| 21   <key>CFBundleVersion</key> |  | 
| 22   <string>{{ version }}</string> |  | 
| 23   {%- if developerIdentifier %} |  | 
| 24   <key>DeveloperIdentifier</key> |  | 
| 25   <string>{{ developerIdentifier }}</string> |  | 
| 26   {%- endif %} |  | 
| 27   <key>Chrome</key> |  | 
| 28   <dict> |  | 
| 29     <key>Database Quota</key> |  | 
| 30     <real>104857600</real> |  | 
| 31     <key>Global Page</key> |  | 
| 32     <string>background.html</string> |  | 
| 33     {%- if menus %} |  | 
| 34     <key>Menus</key> |  | 
| 35     <array> |  | 
| 36       {%- for identifier, items in menus.iteritems() %} |  | 
| 37       <dict> |  | 
| 38         <key>Identifier</key> |  | 
| 39         <string>{{ identifier }}</string> |  | 
| 40         <key>Menu Items</key> |  | 
| 41         <array> |  | 
| 42           {%- for identifier, props in items.iteritems() %} |  | 
| 43           <dict> |  | 
| 44             <key>Identifier</key> |  | 
| 45             <string>{{ identifier }}</string> |  | 
| 46             {%- for key, value in props.iteritems() %} |  | 
| 47             <key>{{ key }}</key> |  | 
| 48             {{ str_or_real(value) }} |  | 
| 49             {%- endfor %} |  | 
| 50           </dict> |  | 
| 51           {%- endfor %} |  | 
| 52         </array> |  | 
| 53       </dict> |  | 
| 54       {%- endfor %} |  | 
| 55     </array> |  | 
| 56     {%- endif %} |  | 
| 57     {%- if popovers %} |  | 
| 58     <key>Popovers</key> |  | 
| 59     <array> |  | 
| 60       {%- for identifier, props in popovers.iteritems() %} |  | 
| 61       <dict> |  | 
| 62         <key>Identifier</key> |  | 
| 63         <string>{{ identifier }}</string> |  | 
| 64         {%- for key, value in props.iteritems() %} |  | 
| 65         <key>{{ key }}</key> |  | 
| 66         {{ str_or_real(value) }} |  | 
| 67         {%- endfor %} |  | 
| 68       </dict> |  | 
| 69       {%- endfor %} |  | 
| 70     </array> |  | 
| 71     {%- endif %} |  | 
| 72     {%- if toolbarItems %} |  | 
| 73     <key>Toolbar Items</key> |  | 
| 74     <array> |  | 
| 75       {%- for identifier, props in toolbarItems.iteritems() %} |  | 
| 76       <dict> |  | 
| 77         <key>Identifier</key> |  | 
| 78         <string>{{ identifier }}</string> |  | 
| 79         <key>Label</key> |  | 
| 80         <string>{{ name }}</string> |  | 
| 81         {%- for key, value in props.iteritems() %} |  | 
| 82         <key>{{ key }}</key> |  | 
| 83         {{ str_or_real(value) }} |  | 
| 84         {%- endfor %} |  | 
| 85       </dict> |  | 
| 86       {%- endfor %} |  | 
| 87     </array> |  | 
| 88     {%- endif %} |  | 
| 89   </dict> |  | 
| 90   {%- if startScripts or endScripts %} |  | 
| 91   <key>Content</key> |  | 
| 92   <dict> |  | 
| 93     <key>Scripts</key> |  | 
| 94     <dict> |  | 
| 95       {%- if startScripts %} |  | 
| 96       <key>Start</key> |  | 
| 97       <array> |  | 
| 98         {%- for script in startScripts %} |  | 
| 99         <string>{{ script }}</string> |  | 
| 100         {%- endfor %} |  | 
| 101       </array> |  | 
| 102       {%- endif %} |  | 
| 103       {%- if endScripts %} |  | 
| 104       <key>End</key> |  | 
| 105       <array> |  | 
| 106         {%- for script in endScripts %} |  | 
| 107         <string>{{ script }}</string> |  | 
| 108         {%- endfor %} |  | 
| 109       </array> |  | 
| 110       {%- endif %} |  | 
| 111     </dict> |  | 
| 112   </dict> |  | 
| 113   {%- endif %} |  | 
| 114   <key>ExtensionInfoDictionaryVersion</key> |  | 
| 115   <string>1.0</string> |  | 
| 116   <key>Permissions</key> |  | 
| 117   <dict> |  | 
| 118     <key>Website Access</key> |  | 
| 119     <dict> |  | 
| 120       {%- if allowedDomains and not allowAllDomains %} |  | 
| 121       <key>Allowed Domains</key> |  | 
| 122       <array> |  | 
| 123         {%- for domain in allowedDomains %} |  | 
| 124         <string>{{ domain }}</string> |  | 
| 125         {%- endfor %} |  | 
| 126       </array> |  | 
| 127       {%- endif %} |  | 
| 128       <key>Include Secure Pages</key> |  | 
| 129       {%- if allowSecurePages %} |  | 
| 130       <true/> |  | 
| 131       {%- else %} |  | 
| 132       <false/> |  | 
| 133       {%- endif %} |  | 
| 134       <key>Level</key> |  | 
| 135       {%- if allowAllDomains %} |  | 
| 136       <string>All</string> |  | 
| 137       {%- elif allowedDomains %} |  | 
| 138       <string>Some</string> |  | 
| 139       {%- else %} |  | 
| 140       <string>None</string> |  | 
| 141       {%- endif %} |  | 
| 142     </dict> |  | 
| 143   </dict> |  | 
| 144   <key>Description</key> |  | 
| 145   <string>{{ description }}</string> |  | 
| 146   {%- if author %} |  | 
| 147   <key>Author</key> |  | 
| 148   <string>{{ author }}</string> |  | 
| 149   {%- endif %} |  | 
| 150   {%- if homepage %} |  | 
| 151   <key>Website</key> |  | 
| 152   <string>{{ homepage }}</string> |  | 
| 153   {%- endif %} |  | 
| 154   {%- if not releaseBuild or updateURL %} |  | 
| 155   <key>Update Manifest URL</key> |  | 
| 156   <string> |  | 
| 157     {%- if not releaseBuild -%} |  | 
| 158       https://adblockplus.org/devbuilds/{{ basename }}/updates.plist |  | 
| 159     {%- else -%} |  | 
| 160       {{ updateURL }} |  | 
| 161     {%- endif -%} |  | 
| 162   </string> |  | 
| 163   {%- endif %} |  | 
| 164 </dict> |  | 
| 165 </plist> |  | 
| OLD | NEW | 
|---|