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

Side by Side Diff: templates/manifest.json.tmpl

Issue 29743581: Issue 6552 - Support arbitrary manifest values (Closed) Base URL: https://hg.adblockplus.org/buildtools/file/a3db4a1a49e8
Patch Set: NOCHANGE rebase against current master (30b4e987f025) Created April 18, 2018, 2:35 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 | « packagerChrome.py ('k') | tests/expecteddata/manifest_chrome_development_build.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 { 5 {
6 "manifest_version": 2, 6 "manifest_version": 2,
7 {%- if releaseBuild %} 7 {%- if releaseBuild %}
8 "name": "__MSG_name__", 8 "name": "__MSG_name__",
9 {%- else %} 9 {%- else %}
10 "name": "__MSG_name_devbuild__", 10 "name": "__MSG_name_devbuild__",
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 "default_popup": {{browserAction.popup|json}}, 66 "default_popup": {{browserAction.popup|json}},
67 {%- endif %} 67 {%- endif %}
68 "default_title": "__MSG_name__" 68 "default_title": "__MSG_name__"
69 }, 69 },
70 {%- endif %} 70 {%- endif %}
71 71
72 {%- if icons %} 72 {%- if icons %}
73 "icons": {{icons|json}}, 73 "icons": {{icons|json}},
74 {%- endif %} 74 {%- endif %}
75 75
76 {%- if permissions %} 76 {%- if extra %}
77 "permissions": {{permissions|json}}, 77 {%- for k, v in extra.items() %}
78 {%- endif %} 78 "{{k}}":{{v|json}},
79 79 {%- endfor %}
80 {%- if optionalPermissions %}
81 "optional_permissions": {{optionalPermissions|json}},
82 {%- endif %} 80 {%- endif %}
83 81
84 {%- if backgroundScripts %} 82 {%- if backgroundScripts %}
85 "background": { 83 "background": {
86 "scripts": {{backgroundScripts|json}}, 84 "scripts": {{backgroundScripts|json}},
87 "persistent": true 85 "persistent": true
88 }, 86 },
89 {%- endif %} 87 {%- endif %}
90 88
91 {%- if metadata.has_option('general', 'options') %} 89 {%- if metadata.has_option('general', 'options') %}
92 {%- if type != 'edge' %} 90 {%- if type != 'edge' %}
93 "options_ui": { 91 "options_ui": {
94 "page": {{metadata.get('general', 'options')|json}}, 92 "page": {{metadata.get('general', 'options')|json}},
95 "open_in_tab": true 93 "open_in_tab": true
96 }, 94 },
97 {%- else %} 95 {%- else %}
98 "options_page": {{metadata.get('general', 'options')|json}}, 96 "options_page": {{metadata.get('general', 'options')|json}},
99 {%- endif %} 97 {%- endif %}
100 {%- endif %} 98 {%- endif %}
101 99
102 {%- if metadata.has_option('general', 'devtools') %} 100 {%- if metadata.has_option('general', 'devtools') %}
103 "devtools_page": {{metadata.get('general', 'devtools')|json}}, 101 "devtools_page": {{metadata.get('general', 'devtools')|json}},
104 {%- endif %} 102 {%- endif %}
105 103
106 {%- if contentScripts %} 104 {%- if contentScripts %}
107 "content_scripts": {{contentScripts|json}}, 105 "content_scripts": {{contentScripts|json}},
108 {%- endif %} 106 {%- endif %}
109 107
110 {%- if webAccessible %}
111 "web_accessible_resources": {{webAccessible|json}},
112 {%- endif %}
113
114 {%- if metadata.has_option('general', 'managedStorageSchema') %} 108 {%- if metadata.has_option('general', 'managedStorageSchema') %}
115 "storage": { 109 "storage": {
116 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} 110 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}}
117 }, 111 },
118 {%- endif %} 112 {%- endif %}
119 113
120 {%- if metadata.has_option('general', 'contentSecurityPolicy') %} 114 {%- if metadata.has_option('general', 'contentSecurityPolicy') %}
121 "content_security_policy": {{metadata.get('general', 'contentSecurityPolicy')| json}}, 115 "content_security_policy": {{metadata.get('general', 'contentSecurityPolicy')| json}},
122 {%- endif %} 116 {%- endif %}
123 117
124 "_dummy": false 118 "_dummy": false
125 } 119 }
OLDNEW
« no previous file with comments | « packagerChrome.py ('k') | tests/expecteddata/manifest_chrome_development_build.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld