Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: chrome/android/webapk/shell_apk/BUILD.gn

Issue 2948653002: Allow localization of WebApk name. (Closed)
Patch Set: Fix another tests. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 import("manifest_processor.gni") 6 import("manifest_processor.gni")
7 import("shell_apk_version.gni") 7 import("shell_apk_version.gni")
8 8
9 declare_args() { 9 declare_args() {
10 # The browser that the WebAPK will be bound to. 10 # The browser that the WebAPK will be bound to.
11 webapk_runtime_host = "com.google.android.apps.chrome" 11 webapk_runtime_host = "com.google.android.apps.chrome"
12 12
13 # The application name of the browser that the WebAPK will be bound to. 13 # The application name of the browser that the WebAPK will be bound to.
14 webapk_runtime_host_application_name = "Chromium" 14 webapk_runtime_host_application_name = "Chromium"
15 15
16 # The Url of the Web Manifest file. 16 # The Url of the Web Manifest file.
17 webapk_web_manifest_url = "https://pwa.rocks/pwa.webmanifest" 17 webapk_web_manifest_url = "https://pwa.rocks/pwa.webmanifest"
18 18
19 # Murmur2 hash of the homescreen icon. The hash should be of the icon as it is 19 # Murmur2 hash of the homescreen icon. The hash should be of the icon as it is
20 # available from the web. The icon bytes should not be transformed (e.g. 20 # available from the web. The icon bytes should not be transformed (e.g.
21 # decoded / encoded) prior to taking the hash. 21 # decoded / encoded) prior to taking the hash.
22 webapk_icon_murmur2_hash = "0" 22 webapk_icon_murmur2_hash = "0"
23 23
24 # Attributes from Web Manifest. 24 # Attributes from Web Manifest.
25 webapk_start_url = "https://pwa.rocks/" 25 webapk_start_url = "https://pwa.rocks/"
26 webapk_name = "Progressive Web Apps"
27 webapk_short_name = "PWA List"
28 webapk_scope_url = "https://pwa.rocks/" 26 webapk_scope_url = "https://pwa.rocks/"
29 webapk_display_mode = "standalone" 27 webapk_display_mode = "standalone"
30 webapk_orientation = "portrait" 28 webapk_orientation = "portrait"
31 webapk_theme_color = "2147483648L" # HostBrowserLauncher#MANIFEST_COLOR_INVAL ID_OR_MISSING 29 webapk_theme_color = "2147483648L" # HostBrowserLauncher#MANIFEST_COLOR_INVAL ID_OR_MISSING
32 webapk_background_color = "2147483648L" #HostBrowserLauncher#MANIFEST_COLOR_I NVALID_OR_MISSING 30 webapk_background_color = "2147483648L" #HostBrowserLauncher#MANIFEST_COLOR_I NVALID_OR_MISSING
33 webapk_icon_urls_and_icon_murmur2_hashes = "http://www.pwa.rocks/icon1.png $we bapk_icon_murmur2_hash http://www.pwa.rocks/icon2.png $webapk_icon_murmur2_hash" 31 webapk_icon_urls_and_icon_murmur2_hashes = "http://www.pwa.rocks/icon1.png $we bapk_icon_murmur2_hash http://www.pwa.rocks/icon2.png $webapk_icon_murmur2_hash"
34 32
35 # Scheme part of |webapk_scope_url|. 33 # Scheme part of |webapk_scope_url|.
36 webapk_scope_url_scheme = "https" 34 webapk_scope_url_scheme = "https"
37 35
(...skipping 19 matching lines...) Expand all
57 manifest_processor_template("shell_apk_manifest") { 55 manifest_processor_template("shell_apk_manifest") {
58 input = "AndroidManifest.xml" 56 input = "AndroidManifest.xml"
59 output = shell_apk_manifest 57 output = shell_apk_manifest
60 58
61 variables = [ 59 variables = [
62 "shell_apk_version=$template_shell_apk_version", 60 "shell_apk_version=$template_shell_apk_version",
63 "manifest_package=org.chromium.webapk", 61 "manifest_package=org.chromium.webapk",
64 "runtime_host=$webapk_runtime_host", 62 "runtime_host=$webapk_runtime_host",
65 "runtime_host_application_name=$webapk_runtime_host_application_name", 63 "runtime_host_application_name=$webapk_runtime_host_application_name",
66 "start_url=$webapk_start_url", 64 "start_url=$webapk_start_url",
67 "name=$webapk_name",
68 "short_name=$webapk_short_name",
69 "scope_url=$webapk_scope_url", 65 "scope_url=$webapk_scope_url",
70 "display_mode=$webapk_display_mode", 66 "display_mode=$webapk_display_mode",
71 "orientation=$webapk_orientation", 67 "orientation=$webapk_orientation",
72 "theme_color=$webapk_theme_color", 68 "theme_color=$webapk_theme_color",
73 "background_color=$webapk_background_color", 69 "background_color=$webapk_background_color",
74 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ", 70 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ",
75 "scope_url_scheme=$webapk_scope_url_scheme", 71 "scope_url_scheme=$webapk_scope_url_scheme",
76 "scope_url_host=$webapk_scope_url_host", 72 "scope_url_host=$webapk_scope_url_host",
77 "scope_url_path=$webapk_scope_url_path", 73 "scope_url_path=$webapk_scope_url_path",
78 "web_manifest_url=$webapk_web_manifest_url", 74 "web_manifest_url=$webapk_web_manifest_url",
79 "version_code=$webapk_version_code", 75 "version_code=$webapk_version_code",
80 "version_name=$webapk_version_name", 76 "version_name=$webapk_version_name",
81 ] 77 ]
82 } 78 }
83 79
84 manifest_processor_template("unbound_shell_apk_manifest") { 80 manifest_processor_template("unbound_shell_apk_manifest") {
85 input = "AndroidManifest.xml" 81 input = "AndroidManifest.xml"
86 output = unbound_shell_apk_manifest 82 output = unbound_shell_apk_manifest
87 83
88 variables = [ 84 variables = [
89 "shell_apk_version=$template_shell_apk_version", 85 "shell_apk_version=$template_shell_apk_version",
90 "manifest_package=org.chromium.arbitrarypackage", 86 "manifest_package=org.chromium.arbitrarypackage",
91 87
92 # Intentionally omitted: "runtime_host=org.chromium.chrome", 88 # Intentionally omitted: "runtime_host=org.chromium.chrome",
93 "include_label=true", 89 "include_label=true",
94 "start_url=$webapk_start_url", 90 "start_url=$webapk_start_url",
95 "name=$webapk_name",
96 "short_name=$webapk_short_name",
97 "scope_url=$webapk_scope_url", 91 "scope_url=$webapk_scope_url",
98 "display_mode=$webapk_display_mode", 92 "display_mode=$webapk_display_mode",
99 "orientation=$webapk_orientation", 93 "orientation=$webapk_orientation",
100 "theme_color=$webapk_theme_color", 94 "theme_color=$webapk_theme_color",
101 "background_color=$webapk_background_color", 95 "background_color=$webapk_background_color",
102 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ", 96 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ",
103 "scope_url_scheme=$webapk_scope_url_scheme", 97 "scope_url_scheme=$webapk_scope_url_scheme",
104 "scope_url_host=$webapk_scope_url_host", 98 "scope_url_host=$webapk_scope_url_host",
105 "scope_url_path=$webapk_scope_url_path", 99 "scope_url_path=$webapk_scope_url_path",
106 "web_manifest_url=$webapk_web_manifest_url", 100 "web_manifest_url=$webapk_web_manifest_url",
107 "version_code=$webapk_version_code", 101 "version_code=$webapk_version_code",
108 "version_name=$webapk_version_name", 102 "version_name=$webapk_version_name",
109 ] 103 ]
110 } 104 }
111 105
112 # Manifest for instrumentation tests. Cannot be customized via GN args. 106 # Manifest for instrumentation tests. Cannot be customized via GN args.
113 manifest_processor_template("shell_apk_manifest_javatests") { 107 manifest_processor_template("shell_apk_manifest_javatests") {
114 input = "AndroidManifest.xml" 108 input = "AndroidManifest.xml"
115 output = shell_apk_manifest_javatests 109 output = shell_apk_manifest_javatests
116 110
117 variables = [ 111 variables = [
118 "shell_apk_version=$template_shell_apk_version", 112 "shell_apk_version=$template_shell_apk_version",
119 "manifest_package=org.chromium.webapk.test", 113 "manifest_package=org.chromium.webapk.test",
120 "runtime_host=org.chromium.chrome", 114 "runtime_host=org.chromium.chrome",
121 "start_url=https://pwa.rocks", 115 "start_url=https://pwa.rocks",
122 "name=Test",
123 "short_name=Test",
124 "scope_url=https://pwa.rocks", 116 "scope_url=https://pwa.rocks",
125 "display_mode=standalone", 117 "display_mode=standalone",
126 "orientation=portrait", 118 "orientation=portrait",
127 "theme_color=2147483648L", # HostBrowserLauncher#MANIFEST_COLOR_INVALID_OR_ MISSING 119 "theme_color=2147483648L", # HostBrowserLauncher#MANIFEST_COLOR_INVALID_OR_ MISSING
128 "background_color=2147483648L", # HostBrowserLauncher#MANIFEST_COLOR_INVALI D_OR_MISSING 120 "background_color=2147483648L", # HostBrowserLauncher#MANIFEST_COLOR_INVALI D_OR_MISSING
129 "icon_urls_and_icon_murmur2_hashes=", 121 "icon_urls_and_icon_murmur2_hashes=",
130 "scope_url_scheme=https", 122 "scope_url_scheme=https",
131 "scope_url_host=pwa.rocks", 123 "scope_url_host=pwa.rocks",
132 "scope_url_path=/", 124 "scope_url_path=/",
133 "web_manifest_url=https://pwa.rocks/pwa.webmanifest", 125 "web_manifest_url=https://pwa.rocks/pwa.webmanifest",
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 java_files = [ 275 java_files = [
284 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", 276 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java",
285 "junit/src/org/chromium/webapk/shell_apk/WebApkUtilsTest.java", 277 "junit/src/org/chromium/webapk/shell_apk/WebApkUtilsTest.java",
286 ] 278 ]
287 deps = [ 279 deps = [
288 ":webapk_java", 280 ":webapk_java",
289 "//chrome/android/webapk/libs/common:common_java", 281 "//chrome/android/webapk/libs/common:common_java",
290 "//chrome/android/webapk/test:junit_test_support", 282 "//chrome/android/webapk/test:junit_test_support",
291 ] 283 ]
292 } 284 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698