| OLD | NEW |
| 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("shell_apk_version.gni") | 6 import("shell_apk_version.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 # The origin URL of the WebAPK. Used to generate a unique package name for | 9 # The origin URL of the WebAPK. Used to generate a unique package name for |
| 10 # WebAPK. Example: "foo.com" | 10 # WebAPK. Example: "foo.com" |
| 11 webapk_manifest_package_origin = "template" | 11 webapk_manifest_package_origin = "template" |
| 12 | 12 |
| 13 # The browser that the WebAPK will be bound to. | 13 # The browser that the WebAPK will be bound to. |
| 14 webapk_runtime_host = "com.google.android.apps.chrome" | 14 webapk_runtime_host = "com.google.android.apps.chrome" |
| 15 | 15 |
| 16 # The Url of the Web Manifest file. | 16 # The Url of the Web Manifest file. |
| 17 webapk_web_manifest_url = "https://www.template.com/manifest.json" | 17 webapk_web_manifest_url = "https://www.template.com/manifest.json" |
| 18 | 18 |
| 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. |
| 21 # decoded / encoded) prior to taking the hash. |
| 22 webapk_icon_murmur2_hash = "0" |
| 23 |
| 19 # Attributes from Web Manifest. | 24 # Attributes from Web Manifest. |
| 20 webapk_start_url = "https://www.template.com/home_page" | 25 webapk_start_url = "https://www.template.com/home_page" |
| 21 webapk_name = "Longer Sample WebAPK Name" | 26 webapk_name = "Longer Sample WebAPK Name" |
| 22 webapk_short_name = "Sample WebAPK" | 27 webapk_short_name = "Sample WebAPK" |
| 23 webapk_scope_url = "https://www.template.com/" | 28 webapk_scope_url = "https://www.template.com/" |
| 24 webapk_display_mode = "standalone" | 29 webapk_display_mode = "standalone" |
| 25 webapk_orientation = "portrait" | 30 webapk_orientation = "portrait" |
| 26 webapk_theme_color = "2147483648L" # HostBrowserLauncher#MANIFEST_COLOR_INVAL
ID_OR_MISSING | 31 webapk_theme_color = "2147483648L" # HostBrowserLauncher#MANIFEST_COLOR_INVAL
ID_OR_MISSING |
| 27 webapk_background_color = "2147483648L" #HostBrowserLauncher#MANIFEST_COLOR_I
NVALID_OR_MISSING | 32 webapk_background_color = "2147483648L" #HostBrowserLauncher#MANIFEST_COLOR_I
NVALID_OR_MISSING |
| 28 | 33 webapk_icon_urls_and_icon_murmur2_hashes = "http://www.template.com/icon1.png
$webapk_icon_murmur2_hash http://www.template.com/icon2.png $webapk_icon_murmur2
_hash" |
| 29 # The URL of the app icon. Empty if the app icon is generated. | |
| 30 webapk_icon_url = "http://www.template.com/icon.png" | |
| 31 | |
| 32 # Murmur2 hash of the homescreen icon. The hash should be of the icon as it is | |
| 33 # available from the web. The icon bytes should not be transformed (e.g. | |
| 34 # decoded / encoded) prior to taking the hash. | |
| 35 webapk_icon_murmur2_hash = "0L" | |
| 36 | 34 |
| 37 # Host part of |webapk_scope_url|. | 35 # Host part of |webapk_scope_url|. |
| 38 webapk_scope_url_host = "www.template.com" | 36 webapk_scope_url_host = "www.template.com" |
| 39 | 37 |
| 40 # Path part of |webapk_scope_url|. | 38 # Path part of |webapk_scope_url|. |
| 41 webapk_scope_url_path = "/" | 39 webapk_scope_url_path = "/" |
| 42 | 40 |
| 43 # Android version code for the WebAPK. | 41 # Android version code for the WebAPK. |
| 44 webapk_version_code = "1" | 42 webapk_version_code = "1" |
| 45 | 43 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 61 "manifest_package=$shell_apk_manifest_package", | 59 "manifest_package=$shell_apk_manifest_package", |
| 62 "runtime_host=$webapk_runtime_host", | 60 "runtime_host=$webapk_runtime_host", |
| 63 "start_url=$webapk_start_url", | 61 "start_url=$webapk_start_url", |
| 64 "name=$webapk_name", | 62 "name=$webapk_name", |
| 65 "short_name=$webapk_short_name", | 63 "short_name=$webapk_short_name", |
| 66 "scope_url=$webapk_scope_url", | 64 "scope_url=$webapk_scope_url", |
| 67 "display_mode=$webapk_display_mode", | 65 "display_mode=$webapk_display_mode", |
| 68 "orientation=$webapk_orientation", | 66 "orientation=$webapk_orientation", |
| 69 "theme_color=$webapk_theme_color", | 67 "theme_color=$webapk_theme_color", |
| 70 "background_color=$webapk_background_color", | 68 "background_color=$webapk_background_color", |
| 71 "icon_url=$webapk_icon_url", | 69 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes
", |
| 72 "icon_murmur2_hash=$webapk_icon_murmur2_hash", | |
| 73 "scope_url_host=$webapk_scope_url_host", | 70 "scope_url_host=$webapk_scope_url_host", |
| 74 "scope_url_path=$webapk_scope_url_path", | 71 "scope_url_path=$webapk_scope_url_path", |
| 75 "web_manifest_url=$webapk_web_manifest_url", | 72 "web_manifest_url=$webapk_web_manifest_url", |
| 76 "version_code=$webapk_version_code", | 73 "version_code=$webapk_version_code", |
| 77 "version_name=$webapk_version_name", | 74 "version_name=$webapk_version_name", |
| 78 ] | 75 ] |
| 79 } | 76 } |
| 80 | 77 |
| 81 android_resources("shell_apk_resources") { | 78 android_resources("shell_apk_resources") { |
| 82 resource_dirs = [ "res" ] | 79 resource_dirs = [ "res" ] |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 java_files = [ | 137 java_files = [ |
| 141 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", | 138 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", |
| 142 "junit/src/org/chromium/webapk/shell_apk/MainActivityTest.java", | 139 "junit/src/org/chromium/webapk/shell_apk/MainActivityTest.java", |
| 143 ] | 140 ] |
| 144 deps = [ | 141 deps = [ |
| 145 ":webapk_java", | 142 ":webapk_java", |
| 146 "//chrome/android/webapk/libs/common:common_java", | 143 "//chrome/android/webapk/libs/common:common_java", |
| 147 "//chrome/android/webapk/test:junit_test_support", | 144 "//chrome/android/webapk/test:junit_test_support", |
| 148 ] | 145 ] |
| 149 } | 146 } |
| OLD | NEW |