| 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("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. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 shell_apk_manifest = "$target_gen_dir/shell_apk_manifest/AndroidManifest.xml" | 48 shell_apk_manifest = "$target_gen_dir/shell_apk_manifest/AndroidManifest.xml" |
| 49 shell_apk_manifest_javatests = | 49 shell_apk_manifest_javatests = |
| 50 "$target_gen_dir/shell_apk_manifest_javatests/AndroidManifest.xml" | 50 "$target_gen_dir/shell_apk_manifest_javatests/AndroidManifest.xml" |
| 51 | 51 |
| 52 manifest_processor_template("shell_apk_manifest") { | 52 manifest_processor_template("shell_apk_manifest") { |
| 53 input = "AndroidManifest.xml" | 53 input = "AndroidManifest.xml" |
| 54 output = shell_apk_manifest | 54 output = shell_apk_manifest |
| 55 | 55 |
| 56 variables = [ | 56 variables = [ |
| 57 "shell_apk_version=$template_shell_apk_version", | 57 "shell_apk_version=$shell_apk_version", |
| 58 "manifest_package=org.chromium.webapk", | 58 "manifest_package=org.chromium.webapk", |
| 59 "runtime_host=$webapk_runtime_host", | 59 "runtime_host=$webapk_runtime_host", |
| 60 "start_url=$webapk_start_url", | 60 "start_url=$webapk_start_url", |
| 61 "name=$webapk_name", | 61 "name=$webapk_name", |
| 62 "short_name=$webapk_short_name", | 62 "short_name=$webapk_short_name", |
| 63 "scope_url=$webapk_scope_url", | 63 "scope_url=$webapk_scope_url", |
| 64 "display_mode=$webapk_display_mode", | 64 "display_mode=$webapk_display_mode", |
| 65 "orientation=$webapk_orientation", | 65 "orientation=$webapk_orientation", |
| 66 "theme_color=$webapk_theme_color", | 66 "theme_color=$webapk_theme_color", |
| 67 "background_color=$webapk_background_color", | 67 "background_color=$webapk_background_color", |
| 68 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes
", | 68 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes
", |
| 69 "scope_url_scheme=$webapk_scope_url_scheme", | 69 "scope_url_scheme=$webapk_scope_url_scheme", |
| 70 "scope_url_host=$webapk_scope_url_host", | 70 "scope_url_host=$webapk_scope_url_host", |
| 71 "scope_url_path=$webapk_scope_url_path", | 71 "scope_url_path=$webapk_scope_url_path", |
| 72 "web_manifest_url=$webapk_web_manifest_url", | 72 "web_manifest_url=$webapk_web_manifest_url", |
| 73 "version_code=$webapk_version_code", | 73 "version_code=$webapk_version_code", |
| 74 "version_name=$webapk_version_name", | 74 "version_name=$webapk_version_name", |
| 75 ] | 75 ] |
| 76 } | 76 } |
| 77 | 77 |
| 78 # Manifest for instrumentation tests. Cannot be customized via GN args. | 78 # Manifest for instrumentation tests. Cannot be customized via GN args. |
| 79 manifest_processor_template("shell_apk_manifest_javatests") { | 79 manifest_processor_template("shell_apk_manifest_javatests") { |
| 80 input = "AndroidManifest.xml" | 80 input = "AndroidManifest.xml" |
| 81 output = shell_apk_manifest_javatests | 81 output = shell_apk_manifest_javatests |
| 82 | 82 |
| 83 variables = [ | 83 variables = [ |
| 84 "shell_apk_version=$template_shell_apk_version", | 84 "shell_apk_version=$shell_apk_version", |
| 85 "manifest_package=org.chromium.webapk.test", | 85 "manifest_package=org.chromium.webapk.test", |
| 86 "runtime_host=org.chromium.chrome", | 86 "runtime_host=org.chromium.chrome", |
| 87 "start_url=https://www.template.com/home_page", | 87 "start_url=https://www.template.com/home_page", |
| 88 "name=Test", | 88 "name=Test", |
| 89 "short_name=Test", | 89 "short_name=Test", |
| 90 "scope_url=https://www.template.com", | 90 "scope_url=https://www.template.com", |
| 91 "display_mode=standalone", | 91 "display_mode=standalone", |
| 92 "orientation=portrait", | 92 "orientation=portrait", |
| 93 "theme_color=2147483648L", # HostBrowserLauncher#MANIFEST_COLOR_INVALID_OR_
MISSING | 93 "theme_color=2147483648L", # HostBrowserLauncher#MANIFEST_COLOR_INVALID_OR_
MISSING |
| 94 "background_color=2147483648L", # HostBrowserLauncher#MANIFEST_COLOR_INVALI
D_OR_MISSING | 94 "background_color=2147483648L", # HostBrowserLauncher#MANIFEST_COLOR_INVALI
D_OR_MISSING |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 java_files = [ | 187 java_files = [ |
| 188 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", | 188 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", |
| 189 "junit/src/org/chromium/webapk/shell_apk/MainActivityTest.java", | 189 "junit/src/org/chromium/webapk/shell_apk/MainActivityTest.java", |
| 190 ] | 190 ] |
| 191 deps = [ | 191 deps = [ |
| 192 ":webapk_java", | 192 ":webapk_java", |
| 193 "//chrome/android/webapk/libs/common:common_java", | 193 "//chrome/android/webapk/libs/common:common_java", |
| 194 "//chrome/android/webapk/test:junit_test_support", | 194 "//chrome/android/webapk/test:junit_test_support", |
| 195 ] | 195 ] |
| 196 } | 196 } |
| OLD | NEW |