| 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 browser that the WebAPK will be bound to. | 12 # The browser that the WebAPK will be bound to. |
| 13 webapk_runtime_host = "com.google.android.apps.chrome" | 13 webapk_runtime_host = "com.google.android.apps.chrome" |
| 14 | 14 |
| 15 # The Url of the Web Manifest file. |
| 16 webapk_web_manifest_url = "https://www.template.com/manifest.json" |
| 17 |
| 15 # Attributes from Web Manifest. | 18 # Attributes from Web Manifest. |
| 16 webapk_start_url = "https://www.template.com/home_page" | 19 webapk_start_url = "https://www.template.com/home_page" |
| 17 webapk_name = "Longer Sample WebAPK Name" | 20 webapk_name = "Longer Sample WebAPK Name" |
| 18 webapk_short_name = "Sample WebAPK" | 21 webapk_short_name = "Sample WebAPK" |
| 19 webapk_scope_url = "https://www.template.com" | 22 webapk_scope_url = "https://www.template.com" |
| 20 webapk_display_mode = "standalone" | 23 webapk_display_mode = "standalone" |
| 21 webapk_orientation = "portrait" | 24 webapk_orientation = "portrait" |
| 22 webapk_theme_color = "4288230399L" #0xFF9933FF | 25 webapk_theme_color = "4288230399L" #0xFF9933FF |
| 23 webapk_background_color = "4291624959L" #0xFFCCFFFF | 26 webapk_background_color = "4291624959L" #0xFFCCFFFF |
| 24 | 27 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 44 "start_url=$webapk_start_url", | 47 "start_url=$webapk_start_url", |
| 45 "name=$webapk_name", | 48 "name=$webapk_name", |
| 46 "short_name=$webapk_short_name", | 49 "short_name=$webapk_short_name", |
| 47 "scope_url=$webapk_scope_url", | 50 "scope_url=$webapk_scope_url", |
| 48 "display_mode=$webapk_display_mode", | 51 "display_mode=$webapk_display_mode", |
| 49 "orientation=$webapk_orientation", | 52 "orientation=$webapk_orientation", |
| 50 "theme_color=$webapk_theme_color", | 53 "theme_color=$webapk_theme_color", |
| 51 "background_color=$webapk_background_color", | 54 "background_color=$webapk_background_color", |
| 52 "icon_url=$webapk_icon_url", | 55 "icon_url=$webapk_icon_url", |
| 53 "scope_url_host=$webapk_scope_url_host", | 56 "scope_url_host=$webapk_scope_url_host", |
| 57 "web_manifest_url=$webapk_web_manifest_url", |
| 54 ] | 58 ] |
| 55 } | 59 } |
| 56 | 60 |
| 57 android_resources("shell_apk_resources") { | 61 android_resources("shell_apk_resources") { |
| 58 resource_dirs = [ "res" ] | 62 resource_dirs = [ "res" ] |
| 59 custom_package = "org.chromium.webapk.shell_apk" | 63 custom_package = "org.chromium.webapk.shell_apk" |
| 60 } | 64 } |
| 61 | 65 |
| 62 android_library("dex_loader_java") { | 66 android_library("dex_loader_java") { |
| 63 java_files = [ "src/org/chromium/webapk/shell_apk/DexLoader.java" ] | 67 java_files = [ "src/org/chromium/webapk/shell_apk/DexLoader.java" ] |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 [ "javatests/src/org/chromium/webapk/shell_apk/DexLoaderTest.java" ] | 100 [ "javatests/src/org/chromium/webapk/shell_apk/DexLoaderTest.java" ] |
| 97 deps = [ | 101 deps = [ |
| 98 ":dex_loader_java", | 102 ":dex_loader_java", |
| 99 "//base:base_java", | 103 "//base:base_java", |
| 100 "//base:base_java_test_support", | 104 "//base:base_java_test_support", |
| 101 "//chrome/android/webapk/libs/common:common_java", | 105 "//chrome/android/webapk/libs/common:common_java", |
| 102 "//content/public/test/android:content_java_test_support", | 106 "//content/public/test/android:content_java_test_support", |
| 103 ] | 107 ] |
| 104 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ] | 108 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ] |
| 105 } | 109 } |
| OLD | NEW |