Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: webapk/shell_apk/BUILD.gn

Issue 1948033005: Rename MintingExample.template.apk to WebApk.template.apk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkConstants.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 minted apks, for example: "foo.com" 8 # The origin URL of minted apks, for example: "foo.com"
9 manifest_package_minting_origin = "template" 9 manifest_package_minting_origin = "template"
10 10
11 # The browser to which WebAPKs will be bound. 11 # The browser to which WebAPKs will be bound.
12 runtime_host = "com.google.android.apps.chrome" 12 runtime_host = "com.google.android.apps.chrome"
13 13
14 # The URL for the minted apks, for example: "https://foo.com" 14 # The URL for the minted apks, for example: "https://foo.com"
15 host_url = "https://www.template.com/home_page" 15 host_url = "https://www.template.com/home_page"
16 scope_url_host = "www.template.com" 16 scope_url_host = "www.template.com"
17 17
18 # The message authentication code from Chrome for identity verification. 18 # The message authentication code from Chrome for identity verification.
19 mac = "template" 19 mac = "template"
20 20
21 # The scope of the Urls that the Minted APKs could navigate to. 21 # The scope of the Urls that the Minted APKs could navigate to.
22 scope = "https://www.template.com" 22 scope = "https://www.template.com"
23 } 23 }
24 24
25 manifest_package_minting = "org.chromium.minting" 25 manifest_package_minting = "org.chromium.webapk"
26 26
27 shell_apk_manifest = "$target_gen_dir/shell_apk_manifest/AndroidManifest.xml" 27 shell_apk_manifest = "$target_gen_dir/shell_apk_manifest/AndroidManifest.xml"
28 28
29 jinja_template("shell_apk_manifest") { 29 jinja_template("shell_apk_manifest") {
30 input = "AndroidManifest.xml" 30 input = "AndroidManifest.xml"
31 output = shell_apk_manifest 31 output = shell_apk_manifest
32 32
33 # The variable values must be non empty and globally unique in 33 # The variable values must be non empty and globally unique in
34 # AndroidManifest.xml in order for the string substitution in APKMinting.java 34 # AndroidManifest.xml in order for the string substitution in APKMinting.java
35 # to work. 35 # to work.
(...skipping 16 matching lines...) Expand all
52 52
53 android_library("dex_loader_lib") { 53 android_library("dex_loader_lib") {
54 java_files = [ "src/org/chromium/webapk/shell_apk/DexLoader.java" ] 54 java_files = [ "src/org/chromium/webapk/shell_apk/DexLoader.java" ]
55 } 55 }
56 56
57 # Template for WebAPK. When a WebAPK is generated: 57 # Template for WebAPK. When a WebAPK is generated:
58 # - Android manifest is customized to the website. 58 # - Android manifest is customized to the website.
59 # - App icon is extracted from the website and added to the APK's resources. 59 # - App icon is extracted from the website and added to the APK's resources.
60 android_apk("webapk") { 60 android_apk("webapk") {
61 android_manifest = shell_apk_manifest 61 android_manifest = shell_apk_manifest
62 apk_name = "MintingExample.$manifest_package_minting_origin" 62 apk_name = "WebApk.$manifest_package_minting_origin"
63 native_lib_placeholders = [ "libfoo.so" ] 63 native_lib_placeholders = [ "libfoo.so" ]
64 java_files = [ 64 java_files = [
65 "src/org/chromium/webapk/shell_apk/MainActivity.java", 65 "src/org/chromium/webapk/shell_apk/MainActivity.java",
66 "src/org/chromium/webapk/shell_apk/WebApkApplication.java", 66 "src/org/chromium/webapk/shell_apk/WebApkApplication.java",
67 "src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java", 67 "src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java",
68 "src/org/chromium/webapk/shell_apk/Reflect.java", 68 "src/org/chromium/webapk/shell_apk/Reflect.java",
69 ] 69 ]
70 chromium_code = false 70 chromium_code = false
71 proguard_enabled = true 71 proguard_enabled = true
72 proguard_configs = [ "proguard.flags" ] 72 proguard_configs = [ "proguard.flags" ]
(...skipping 10 matching lines...) Expand all
83 java_files = 83 java_files =
84 [ "javatests/src/org/chromium/webapk/shell_apk/DexLoaderTest.java" ] 84 [ "javatests/src/org/chromium/webapk/shell_apk/DexLoaderTest.java" ]
85 deps = [ 85 deps = [
86 ":dex_loader_lib", 86 ":dex_loader_lib",
87 "//base:base_java", 87 "//base:base_java",
88 "//content/public/test/android:content_java_test_support", 88 "//content/public/test/android:content_java_test_support",
89 "//webapk/libs/common", 89 "//webapk/libs/common",
90 ] 90 ]
91 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ] 91 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ]
92 } 92 }
OLDNEW
« no previous file with comments | « webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkConstants.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698