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" |
11 | 11 |
12 # The URL that the WebAPK should navigate to when it is launched. | 12 # The URL that the WebAPK should navigate to when it is launched. |
13 webapk_start_url = "https://www.template.com/home_page" | 13 webapk_start_url = "https://www.template.com/home_page" |
14 | 14 |
15 # The browser that the WebAPK will be bound to. | 15 # The browser that the WebAPK will be bound to. |
16 webapk_runtime_host = "com.google.android.apps.chrome" | 16 webapk_runtime_host = "com.google.android.apps.chrome" |
17 | 17 |
18 # The message authentication code from Chrome for identity verification. | |
19 webapk_mac = "template" | |
20 | |
21 # The scope of the urls that the WebAPK can navigate to. | 18 # The scope of the urls that the WebAPK can navigate to. |
22 webapk_scope_url = "https://www.template.com" | 19 webapk_scope_url = "https://www.template.com" |
23 | 20 |
24 # Host part of |webapk_scope|. | 21 # Host part of |webapk_scope|. |
25 webapk_scope_url_host = "www.template.com" | 22 webapk_scope_url_host = "www.template.com" |
26 } | 23 } |
27 | 24 |
28 shell_apk_manifest_package = | 25 shell_apk_manifest_package = |
29 "org.chromium.webapk.$webapk_manifest_package_origin" | 26 "org.chromium.webapk.$webapk_manifest_package_origin" |
30 | 27 |
31 shell_apk_manifest = "$target_gen_dir/shell_apk_manifest/AndroidManifest.xml" | 28 shell_apk_manifest = "$target_gen_dir/shell_apk_manifest/AndroidManifest.xml" |
32 | 29 |
33 jinja_template("shell_apk_manifest") { | 30 jinja_template("shell_apk_manifest") { |
34 input = "AndroidManifest.xml" | 31 input = "AndroidManifest.xml" |
35 output = shell_apk_manifest | 32 output = shell_apk_manifest |
36 | 33 |
37 variables = [ | 34 variables = [ |
38 "manifest_package=$shell_apk_manifest_package", | 35 "manifest_package=$shell_apk_manifest_package", |
39 "host_url=$webapk_start_url", | 36 "host_url=$webapk_start_url", |
40 "runtime_host=$webapk_runtime_host", | 37 "runtime_host=$webapk_runtime_host", |
41 "mac=$webapk_mac", | |
42 "scope_url=$webapk_scope_url", | 38 "scope_url=$webapk_scope_url", |
43 "scope_url_host=$webapk_scope_url_host", | 39 "scope_url_host=$webapk_scope_url_host", |
44 ] | 40 ] |
45 } | 41 } |
46 | 42 |
47 android_resources("shell_apk_resources") { | 43 android_resources("shell_apk_resources") { |
48 resource_dirs = [ "res" ] | 44 resource_dirs = [ "res" ] |
49 custom_package = "org.chromium.webapk.shell_apk" | 45 custom_package = "org.chromium.webapk.shell_apk" |
50 } | 46 } |
51 | 47 |
(...skipping 26 matching lines...) Expand all Loading... |
78 [ "javatests/src/org/chromium/webapk/shell_apk/DexLoaderTest.java" ] | 74 [ "javatests/src/org/chromium/webapk/shell_apk/DexLoaderTest.java" ] |
79 deps = [ | 75 deps = [ |
80 ":dex_loader_lib", | 76 ":dex_loader_lib", |
81 "//base:base_java", | 77 "//base:base_java", |
82 "//base:base_java_test_support", | 78 "//base:base_java_test_support", |
83 "//chrome/android/webapk/libs/common", | 79 "//chrome/android/webapk/libs/common", |
84 "//content/public/test/android:content_java_test_support", | 80 "//content/public/test/android:content_java_test_support", |
85 ] | 81 ] |
86 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ] | 82 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ] |
87 } | 83 } |
OLD | NEW |