| Index: chrome/android/webapk/libs/runtime_library/BUILD.gn
|
| diff --git a/chrome/android/webapk/libs/runtime_library/BUILD.gn b/chrome/android/webapk/libs/runtime_library/BUILD.gn
|
| index 62d89ebbeb73f7256c5d19281ecc749a0828a95b..3d497f285d2246779d683549d14a24aed25f1a3e 100644
|
| --- a/chrome/android/webapk/libs/runtime_library/BUILD.gn
|
| +++ b/chrome/android/webapk/libs/runtime_library/BUILD.gn
|
| @@ -3,6 +3,15 @@
|
| # found in the LICENSE file.
|
|
|
| import("//build/config/android/rules.gni")
|
| +import("//chrome/android/webapk/libs/runtime_library_version.gni")
|
| +
|
| +# runtime_library_version.gni must be updated whenever the runtime library is
|
| +# updated. The WebAPK re-extracts the runtime library from the Chrome APK when
|
| +# |runtime_library_version| is incremented.
|
| +
|
| +# Whenever this constant is changed, WebApkUtils#getRuntimeDexName() must also
|
| +# be changed.
|
| +runtime_library_dex_asset_name = "webapk$runtime_library_version.dex"
|
|
|
| android_aidl("webapk_service_aidl") {
|
| import_include = "src/org/chromium/webapk/lib/runtime_library"
|
| @@ -13,15 +22,18 @@ android_aidl("webapk_service_aidl") {
|
| }
|
|
|
| android_library("runtime_library") {
|
| - dex_path = "$target_gen_dir/web_apk.dex"
|
| + dex_path = "$target_gen_dir/$runtime_library_dex_asset_name"
|
| java_files =
|
| [ "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java" ]
|
| srcjar_deps = [ ":webapk_service_aidl" ]
|
| }
|
|
|
| android_assets("runtime_library_assets") {
|
| + write_file("$target_gen_dir/webapk_dex_version.txt", runtime_library_version)
|
| +
|
| sources = [
|
| - "$target_gen_dir/web_apk.dex",
|
| + "$target_gen_dir/$runtime_library_dex_asset_name",
|
| + "$target_gen_dir/webapk_dex_version.txt",
|
| ]
|
| disable_compression = true
|
|
|
|
|