| 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 | 6 |
| 7 declare_args() { | 7 declare_args() { |
| 8 # The origin URL of the WebAPK. Used to generate a unique package name for | 8 # The origin URL of the WebAPK. Used to generate a unique package name for |
| 9 # WebAPK. Example: "foo.com" | 9 # WebAPK. Example: "foo.com" |
| 10 webapk_manifest_package_origin = "template" | 10 webapk_manifest_package_origin = "template" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 webapk_short_name = "Sample WebAPK" | 21 webapk_short_name = "Sample WebAPK" |
| 22 webapk_scope_url = "https://www.template.com" | 22 webapk_scope_url = "https://www.template.com" |
| 23 webapk_display_mode = "standalone" | 23 webapk_display_mode = "standalone" |
| 24 webapk_orientation = "portrait" | 24 webapk_orientation = "portrait" |
| 25 webapk_theme_color = "2147483648L" # HostBrowserLauncher#MANIFEST_COLOR_INVAL
ID_OR_MISSING | 25 webapk_theme_color = "2147483648L" # HostBrowserLauncher#MANIFEST_COLOR_INVAL
ID_OR_MISSING |
| 26 webapk_background_color = "2147483648L" #HostBrowserLauncher#MANIFEST_COLOR_I
NVALID_OR_MISSING | 26 webapk_background_color = "2147483648L" #HostBrowserLauncher#MANIFEST_COLOR_I
NVALID_OR_MISSING |
| 27 | 27 |
| 28 # The URL of the app icon. Empty if the app icon is generated. | 28 # The URL of the app icon. Empty if the app icon is generated. |
| 29 webapk_icon_url = "http://www.template.com/icon.png" | 29 webapk_icon_url = "http://www.template.com/icon.png" |
| 30 | 30 |
| 31 # Murmur2 hash of the homescreen icon. The hash should be of the icon as it is |
| 32 # available from the web. The icon bytes should not be transformed (e.g. |
| 33 # decoded / encoded) prior to taking the hash. |
| 34 webapk_icon_murmur2_hash = "0L" |
| 35 |
| 31 # Host part of |webapk_scope_url|. | 36 # Host part of |webapk_scope_url|. |
| 32 webapk_scope_url_host = "www.template.com" | 37 webapk_scope_url_host = "www.template.com" |
| 33 | 38 |
| 34 # Android version code for the WebAPK. | 39 # Android version code for the WebAPK. |
| 35 webapk_version_code = "1" | 40 webapk_version_code = "1" |
| 36 | 41 |
| 37 # Android version name for the WebAPK. | 42 # Android version name for the WebAPK. |
| 38 webapk_version_name = "1.0" | 43 webapk_version_name = "1.0" |
| 39 } | 44 } |
| 40 | 45 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 52 "runtime_host=$webapk_runtime_host", | 57 "runtime_host=$webapk_runtime_host", |
| 53 "start_url=$webapk_start_url", | 58 "start_url=$webapk_start_url", |
| 54 "name=$webapk_name", | 59 "name=$webapk_name", |
| 55 "short_name=$webapk_short_name", | 60 "short_name=$webapk_short_name", |
| 56 "scope_url=$webapk_scope_url", | 61 "scope_url=$webapk_scope_url", |
| 57 "display_mode=$webapk_display_mode", | 62 "display_mode=$webapk_display_mode", |
| 58 "orientation=$webapk_orientation", | 63 "orientation=$webapk_orientation", |
| 59 "theme_color=$webapk_theme_color", | 64 "theme_color=$webapk_theme_color", |
| 60 "background_color=$webapk_background_color", | 65 "background_color=$webapk_background_color", |
| 61 "icon_url=$webapk_icon_url", | 66 "icon_url=$webapk_icon_url", |
| 67 "icon_murmur2_hash=$webapk_icon_murmur2_hash", |
| 62 "scope_url_host=$webapk_scope_url_host", | 68 "scope_url_host=$webapk_scope_url_host", |
| 63 "web_manifest_url=$webapk_web_manifest_url", | 69 "web_manifest_url=$webapk_web_manifest_url", |
| 64 "version_code=$webapk_version_code", | 70 "version_code=$webapk_version_code", |
| 65 "version_name=$webapk_version_name", | 71 "version_name=$webapk_version_name", |
| 66 ] | 72 ] |
| 67 } | 73 } |
| 68 | 74 |
| 69 android_resources("shell_apk_resources") { | 75 android_resources("shell_apk_resources") { |
| 70 resource_dirs = [ "res" ] | 76 resource_dirs = [ "res" ] |
| 71 custom_package = "org.chromium.webapk.shell_apk" | 77 custom_package = "org.chromium.webapk.shell_apk" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ] | 129 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ] |
| 124 } | 130 } |
| 125 | 131 |
| 126 junit_binary("webapk_shell_apk_junit_tests") { | 132 junit_binary("webapk_shell_apk_junit_tests") { |
| 127 java_files = [ "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoader
Test.java" ] | 133 java_files = [ "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoader
Test.java" ] |
| 128 deps = [ | 134 deps = [ |
| 129 ":webapk_java", | 135 ":webapk_java", |
| 130 "//chrome/android/webapk/libs/common:common_java", | 136 "//chrome/android/webapk/libs/common:common_java", |
| 131 ] | 137 ] |
| 132 } | 138 } |
| OLD | NEW |