| 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 # Attributes from Web Manifest. | 19 # Attributes from Web Manifest. |
| 20 webapk_start_url = "https://www.template.com/home_page" | 20 webapk_start_url = "https://www.template.com/home_page" |
| 21 webapk_name = "Longer Sample WebAPK Name" | 21 webapk_name = "Longer Sample WebAPK Name" |
| 22 webapk_short_name = "Sample WebAPK" | 22 webapk_short_name = "Sample WebAPK" |
| 23 webapk_scope_url = "https://www.template.com/" | 23 webapk_scope_url = "https://www.template.com/" |
| 24 webapk_display_mode = "standalone" | 24 webapk_display_mode = "standalone" |
| 25 webapk_orientation = "portrait" | 25 webapk_orientation = "portrait" |
| 26 webapk_theme_color = "2147483648L" # HostBrowserLauncher#MANIFEST_COLOR_INVAL
ID_OR_MISSING | 26 webapk_theme_color = "2147483648L" # HostBrowserLauncher#MANIFEST_COLOR_INVAL
ID_OR_MISSING |
| 27 webapk_background_color = "2147483648L" #HostBrowserLauncher#MANIFEST_COLOR_I
NVALID_OR_MISSING | 27 webapk_background_color = "2147483648L" #HostBrowserLauncher#MANIFEST_COLOR_I
NVALID_OR_MISSING |
| 28 webapk_icon_urls = |
| 29 "http://www.template.com/icon1.png; http://www.template.com/icon2.png" |
| 28 | 30 |
| 29 # The URL of the app icon. Empty if the app icon is generated. | 31 # The URL of the app icon. Empty if the app icon is generated. |
| 30 webapk_icon_url = "http://www.template.com/icon.png" | 32 webapk_icon_url = "http://www.template.com/icon1.png" |
| 31 | 33 |
| 32 # Murmur2 hash of the homescreen icon. The hash should be of the icon as it is | 34 # 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. | 35 # available from the web. The icon bytes should not be transformed (e.g. |
| 34 # decoded / encoded) prior to taking the hash. | 36 # decoded / encoded) prior to taking the hash. |
| 35 webapk_icon_murmur2_hash = "0L" | 37 webapk_icon_murmur2_hash = "0L" |
| 36 | 38 |
| 37 # Host part of |webapk_scope_url|. | 39 # Host part of |webapk_scope_url|. |
| 38 webapk_scope_url_host = "www.template.com" | 40 webapk_scope_url_host = "www.template.com" |
| 39 | 41 |
| 40 # Path part of |webapk_scope_url|. | 42 # Path part of |webapk_scope_url|. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 61 "manifest_package=$shell_apk_manifest_package", | 63 "manifest_package=$shell_apk_manifest_package", |
| 62 "runtime_host=$webapk_runtime_host", | 64 "runtime_host=$webapk_runtime_host", |
| 63 "start_url=$webapk_start_url", | 65 "start_url=$webapk_start_url", |
| 64 "name=$webapk_name", | 66 "name=$webapk_name", |
| 65 "short_name=$webapk_short_name", | 67 "short_name=$webapk_short_name", |
| 66 "scope_url=$webapk_scope_url", | 68 "scope_url=$webapk_scope_url", |
| 67 "display_mode=$webapk_display_mode", | 69 "display_mode=$webapk_display_mode", |
| 68 "orientation=$webapk_orientation", | 70 "orientation=$webapk_orientation", |
| 69 "theme_color=$webapk_theme_color", | 71 "theme_color=$webapk_theme_color", |
| 70 "background_color=$webapk_background_color", | 72 "background_color=$webapk_background_color", |
| 71 "icon_url=$webapk_icon_url", | 73 "best_icon_url=$webapk_icon_url", |
| 72 "icon_murmur2_hash=$webapk_icon_murmur2_hash", | 74 "icon_murmur2_hash=$webapk_icon_murmur2_hash", |
| 75 "icon_urls=$webapk_icon_urls", |
| 73 "scope_url_host=$webapk_scope_url_host", | 76 "scope_url_host=$webapk_scope_url_host", |
| 74 "scope_url_path=$webapk_scope_url_path", | 77 "scope_url_path=$webapk_scope_url_path", |
| 75 "web_manifest_url=$webapk_web_manifest_url", | 78 "web_manifest_url=$webapk_web_manifest_url", |
| 76 "version_code=$webapk_version_code", | 79 "version_code=$webapk_version_code", |
| 77 "version_name=$webapk_version_name", | 80 "version_name=$webapk_version_name", |
| 78 ] | 81 ] |
| 79 } | 82 } |
| 80 | 83 |
| 81 android_resources("shell_apk_resources") { | 84 android_resources("shell_apk_resources") { |
| 82 resource_dirs = [ "res" ] | 85 resource_dirs = [ "res" ] |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 java_files = [ | 143 java_files = [ |
| 141 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", | 144 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", |
| 142 "junit/src/org/chromium/webapk/shell_apk/MainActivityTest.java", | 145 "junit/src/org/chromium/webapk/shell_apk/MainActivityTest.java", |
| 143 ] | 146 ] |
| 144 deps = [ | 147 deps = [ |
| 145 ":webapk_java", | 148 ":webapk_java", |
| 146 "//chrome/android/webapk/libs/common:common_java", | 149 "//chrome/android/webapk/libs/common:common_java", |
| 147 "//chrome/android/webapk/test:junit_test_support", | 150 "//chrome/android/webapk/test:junit_test_support", |
| 148 ] | 151 ] |
| 149 } | 152 } |
| OLD | NEW |