| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 resource_dirs = [ "res" ] | 48 resource_dirs = [ "res" ] |
| 49 custom_package = "org.chromium.webapk.shell_apk" | 49 custom_package = "org.chromium.webapk.shell_apk" |
| 50 } | 50 } |
| 51 | 51 |
| 52 # Template for WebAPK. When a WebAPK is generated: | 52 # Template for WebAPK. When a WebAPK is generated: |
| 53 # - Android manifest is customized to the website. | 53 # - Android manifest is customized to the website. |
| 54 # - App icon is extracted from the website and added to the APK's resources. | 54 # - App icon is extracted from the website and added to the APK's resources. |
| 55 android_apk("webapk") { | 55 android_apk("webapk") { |
| 56 android_manifest = shell_apk_manifest | 56 android_manifest = shell_apk_manifest |
| 57 apk_name = "WebApk.$webapk_manifest_package_origin" | 57 apk_name = "WebApk.$webapk_manifest_package_origin" |
| 58 java_files = [ "src/org/chromium/webapk/shell_apk/MainActivity.java" ] | 58 java_files = [ |
| 59 "src/org/chromium/webapk/shell_apk/MainActivity.java", |
| 60 "src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java", |
| 61 ] |
| 59 deps = [ | 62 deps = [ |
| 60 ":shell_apk_manifest", | 63 ":shell_apk_manifest", |
| 61 ":shell_apk_resources", | 64 ":shell_apk_resources", |
| 62 "//chrome/android/webapk/libs/common", | 65 "//chrome/android/webapk/libs/common", |
| 66 "//chrome/android/webapk/libs/runtime_library", |
| 63 ] | 67 ] |
| 64 } | 68 } |
| OLD | NEW |