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

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

Issue 29389567: Issue #5012 - Add minimum_opera_version support to metadata.json (Closed) Base URL: https://hg.adblockplus.org/buildtools
Patch Set: Created March 20, 2017, 9:10 a.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 | no next file » | 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__",
11 {%- endif %} 11 {%- endif %}
12 12
13 "short_name": "__MSG_name__", 13 "short_name": "__MSG_name__",
14 "description": "__MSG_description__", 14 "description": "__MSG_description__",
15 "default_locale": "en_US", 15 "default_locale": "en_US",
16 "version": {{version|json}}, 16 "version": {{version|json}},
17 "author": {{metadata.get('general', 'author')|json}}, 17 "author": {{metadata.get('general', 'author')|json}},
18 18
19 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'chrom e') %} 19 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'chrom e') %}
20 "minimum_chrome_version": {{metadata.get('compat', 'chrome')|json}}, 20 "minimum_chrome_version": {{metadata.get('compat', 'chrome')|json}},
21 {%- endif %} 21 {%- endif %}
22 22
23 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'opera ') %}
24 "minimum_opera_version": {{metadata.get('compat', 'opera')|json}},
25 {%- endif %}
26
23 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'edge' ) %} 27 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'edge' ) %}
24 "minimum_edge_version": {{metadata.get('compat', 'edge')|json}}, 28 "minimum_edge_version": {{metadata.get('compat', 'edge')|json}},
25 {%- endif %} 29 {%- endif %}
26 30
27 {%- if type == 'gecko-webext' %} 31 {%- if type == 'gecko-webext' %}
28 "applications": 32 "applications":
29 { 33 {
30 "gecko": 34 "gecko":
31 { 35 {
32 "id": {{metadata.get('general', 'id')|json}} 36 "id": {{metadata.get('general', 'id')|json}}
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 {%- endif %} 112 {%- endif %}
109 113
110 {%- if metadata.has_option('general', 'managedStorageSchema') %} 114 {%- if metadata.has_option('general', 'managedStorageSchema') %}
111 "storage": { 115 "storage": {
112 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} 116 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}}
113 }, 117 },
114 {%- endif %} 118 {%- endif %}
115 119
116 "_dummy": false 120 "_dummy": false
117 } 121 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld