0
Commit Graph

39 Commits

Author SHA1 Message Date
Mohamed Heikal
f9d9edb492 Remove version from bundletool filepath references (Reland)
The bundletool jar path containing version is listed in a few places in
the build system. Remove the version from the jar path (autoroller
cannot update all these places with the new version number). Also adds
the bundletool jar path as a input to a few actions to avoid stale
builds from cls just updating bundletool.

Change-Id: I8d497bb882008ad4e34a5a0aa795ee4df5625e3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3200346
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Auto-Submit: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927801}
2021-10-04 20:05:10 +00:00
Peter Kotwicz
388a02ca36 Revert "Remove version from bundletool filepath references in build"
This reverts commit 0dd7b07d2b.

Reason for revert: Broke compile (Reference in app_bundle_utils.py)

Original change's description:
> Remove version from bundletool filepath references in build
>
> The bundletool jar path containing the version is listed in a few places
> in the build system. Remove the version from the jar path (autoroller
> cannot update all these places with the new version number). Also adds
> the bundletool jar path as a input to a few actions to avoid stale
> builds from cls just updating bundletool.
>
> Change-Id: I41cbe7d45e9f31b64b7f3148687004aa2dbe48e7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3166930
> Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#927311}

Change-Id: I0e95fd40165b3b695d66f9a8b846a0ef5b0c2b6a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3198541
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Peter Kotwicz <pkotwicz@google.com>
Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927461}
2021-10-02 00:05:45 +00:00
Mohamed Heikal
0dd7b07d2b Remove version from bundletool filepath references in build
The bundletool jar path containing the version is listed in a few places
in the build system. Remove the version from the jar path (autoroller
cannot update all these places with the new version number). Also adds
the bundletool jar path as a input to a few actions to avoid stale
builds from cls just updating bundletool.

Change-Id: I41cbe7d45e9f31b64b7f3148687004aa2dbe48e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3166930
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927311}
2021-10-01 18:49:20 +00:00
Andrew Grieve
f0d97776cc android_dynamic_feature_modules.md: onDemand="false" splits are always installed
Bug: 1241142
Change-Id: Ifdc10fc26e05659012c5e292c4babf1589a5cb26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3104366
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Xing Liu <xingliu@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#913133}
2021-08-18 20:20:43 +00:00
Andrew Grieve
7e777abf7e Merge android_app_bundle.md into android_dynamic_feature_modules.md
These make more sense as one.

Change-Id: I3fa6e52fbbf3d2cd83f87dea066d814371761e7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3097706
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#912697}
2021-08-17 19:43:59 +00:00
Peter Wen
8bf82d4d21 Android: Remove unused play core version
This has been superceded by the android_deps version of play core.

Bug: 1220662
Binary-Size: Spurious increase due to compression artifacts.
Change-Id: Id88740444887221f54433a66fa2f1c2dce2b4a3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3085922
Commit-Queue: Peter Wen <wnwen@chromium.org>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#911901}
2021-08-13 22:03:54 +00:00
Mohamed Heikal
826b4d55ca Improve DFM docs
DFM docs do not actually work as is from the sample code. Added some
required deps.

Change-Id: I9b5a21ab15576a08e2aff704faaa9ae3d0941e9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2989052
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#896124}
2021-06-25 18:13:57 +00:00
Andrew Grieve
23c828d247 Small updates to size docs
* De-dupe some "why care" text between optimzation_advice.md
  and binary_size_explainer.md
* Replace @RemovableInRelease with BuildConfig.ENABLE_ASSERTS
* Link to DFM doc from optimizing java code

Change-Id: I4111da3b6e56ac5144b8b26c7e780ee788cf399f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2893903
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#882626}
2021-05-13 19:37:29 +00:00
Andrew Grieve
f6069feb98 android_dynamic_feature_modules.md: Expand on isolatedSplits
Change-Id: Ia771e8673629ce259c244dcc5b94ab16805e8192
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2857136
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#877560}
2021-04-29 18:29:17 +00:00
Matt Stark
1debb5de90 Remove disabling of pseudolocale translations where applicable
Previously, many packages marked their strings to not allow pseudolocale
translation for no particular reason (I suspect they were just copying
other packages).

BUG=chromium:1173812
TEST=Built chrome, ran it, and checked that it ran successfully with
pseudolocales, and that more strings were translated than before.

Change-Id: I95e3985b3f62eeaef49f9dc4bd090fcf27b3af85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2672626
Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Auto-Submit: Matt Stark <msta@google.com>
Reviewed-by: Trevor  Perrier <perrier@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854053}
2021-02-15 16:08:24 +00:00
Clark DuVall
bde689a623 Update docs with isolated splits dev guide
Bug: 1126301
Change-Id: I5ddc5533d1241fd6b2b6dc570dbcf311de52b73f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2685080
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Clark DuVall <cduvall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#852318}
2021-02-09 20:00:53 +00:00
Henrique Nakashima
f5439f8b5a [Android] Update remaining references pointing to .grd in chrome/android
Replace in documentation, comments and a tool the old location:
    chrome/android/java/strings/android_chrome_strings.grd
with the new location:
    chrome/browser/ui/android/strings/android_chrome_strings.grd

Change-Id: I4751c5941ac689a2b5e6b6445a2e62266aa84d8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2654266
Reviewed-by: Theresa  <twellington@chromium.org>
Reviewed-by: Andrew Luo <aluo@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#848782}
2021-01-29 23:52:24 +00:00
Samuel Huang
6f5c7ddb8a [Bundles] Make bundle wrapper test scripts install '-m dev_ui' by default.
Bundle wrapper test scripts calls such as
  /out/Debug/bin/monochrome_public_bundle install
  /out/Debug/bin/trichrome_chrome_google_bundle run

use the '-m' flag to include DFMs. In particular, the switch for the
DevUI DFM is '-m dev_ui' (and '-f dev_ui' for fake install).

However, most developers who use these test scripts don't care about
this detail. This CL makes the DevUI DFM installed by default when
these build scripts are used, to simplify development. The master list
|default_modules_for_testing| is in chrome_bundle_tmpl.gni, and
currently on has "dev_ui".

To make it still possible to test install flows of DevUI DFM, this CL
also adds the new flag '--no-module' to exclude non-base DFMs that are
installed by default (currently only {dev_ui}). Fake installs, e.g.,
'-f dev_ui', also excludes the default install.

Bug: 1081812, 987040
Change-Id: Icf87515382cc6d0b3d52fc3fa1914c7a4830b6cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2197339
Reviewed-by: Egor Pasko <pasko@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#768784}
2020-05-14 17:10:52 +00:00
Henrique Nakashima
cfdcce334b Update DFM documentation with modularized directory structure
The example test_dummy is changed in
https://chromium-review.googlesource.com/c/chromium/src/+/2157772

Some paths were outdated, assuming the module and the feature were in
the same directory.

Bug: 1071976
Change-Id: I65763bdd8071f3317edafe3de38b344cf254a756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2165714
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#762541}
2020-04-24 22:19:36 +00:00
Adam Langley
891ea2bc4c docs/android_dynamic_feature_modules.md: update stale path.
Change-Id: I157f2b427d2f18d6687661bee941bc9e568d2530
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145559
Commit-Queue: Adam Langley <agl@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: Adam Langley <agl@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758221}
2020-04-10 17:11:18 +00:00
Samuel Huang
3dc9fce82f [DFM] Add basic documentation on how to use native resources.
This CL adds basic background, caveats, and basic instructions on adding
native resources to a DFM, and updates docs and examples re.
|load_native_on_get_impl|.

TBR=yfriedman@chromium.org

Bug: 1048740
Change-Id: I0c7adc21df568ce3ffc8895c81141bbe1db1850c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2069845
Commit-Queue: Samuel Huang <huangs@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744718}
2020-02-26 18:09:57 +00:00
Christopher Grant
f649d289f9 Android: Update DFM markdown with latest native code guidance
Bug: None
Change-Id: I69df296a38cf8f082cff6e05b6fc5c81cce9da90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1991751
Commit-Queue: Christopher Grant <cjgrant@chromium.org>
Reviewed-by: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729959}
2020-01-09 22:56:08 +00:00
Natalie Chouinard
cbdc6dcc6d [Android] Update java_files build docs
Use of java_files is being deprecated in favor of sources.
Update documentation that still references java_files.

TBR=aluo,bialpio,dpranke,pasko

Bug: 1035082
Change-Id: Ibcab73a9d90e010cdffd3018d3fd238662945f97
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980981
Reviewed-by: Natalie Chouinard <chouinard@chromium.org>
Commit-Queue: Natalie Chouinard <chouinard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#727284}
2019-12-24 00:02:35 +00:00
Peter Wen
577a6fe520 Android: Clarify DFM docs for updates
This came up in a mailing list discussion:
http://g/sampling-profiler-core/lzZlIlY5PLM/xLWKG5PEAQAJ

Once a DFM is installed by Play, it will be updated alongside Chrome. A
separate reinstall will not be necessary on every app update.

Bug: None
Change-Id: I7d839b2161e72cb81c77796336918ede1b0e7f75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1963094
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723998}
2019-12-11 22:02:05 +00:00
Tibor Goldschwendt
f430b2783f Update //docs/android_dynamic_feature_modules.md
Change-Id: I5bc9d4c7de8d6078e50919fac14660832a19f2f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1903723
Reviewed-by: Christopher Grant <cjgrant@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718756}
2019-11-25 19:19:41 +00:00
Fred Mello
2623e05c25 Android: Refactor Module Installer for Testability
The intrinsic dependencies encountered along the way made it difficult
(less effective) to break up this CL into multiple smaller CLs
(apologies to the reviewers in advance).

To simplify its understanding, please refer to the following doc:
https://docs.google.com/document/d/1ClZglFQroV53zSYEGIZ7yca8KIsPHGBmzMCbtreu5lg

The following are the major points to review:
- refactoring of the infra into builder, installer, logger, observer, util
- new design (IoC driven) for installers to enable for easy testability
- new design for emitted modules (cross-package communication)

Out-of-scope (following CLs):
- removal of bytecode processing for third-party activities (no longer needed)
- move code from ModuleInstallerConfig.java into BuildConfig.java
- unit tests for the remaining module_installer classes

Testing: this change was verified with vr, ar, autofill_assistant, dev_ui,
and test_dummy modules. It was tested with both -m and -f command line args.

Bug: 1005802
Change-Id: Icf357c06c4b71a96ed9fa0584f6322d6dc6143d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1813520
Reviewed-by: Ilya Sherman <isherman@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Commit-Queue: Fred Mello <fredmello@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702165}
2019-10-02 20:18:04 +00:00
Tibor Goldschwendt
b5fc3b941f Autogenerate resource package IDs of app bundle modules
This simplifies instantiating new feature modules.

Bug: 950056
Change-Id: Ic06aef2f99d9c08fe23c6df202948f72bba87593
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804275
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Eric Stevenson <estevenson@chromium.org>
Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697010}
2019-09-17 00:15:08 +00:00
Ben Mason
e571ea5a2e Enable dist fusing for all feature modules. (reland x 2)
This reverts commit 932dfd175c.

Reason for revert: Dex fusing has been fixed in bundletool and
a new version has been rolled: crrev.com/c/1789178

Original change's description:
> Revert "Enable dist fusing for all feature modules. (reland)"
> 
> This reverts commit 78fac991fc.
> 
> Reason for revert: Breaking some internal builders. Will reland once they are no longer building these targets.
> 
> Original change's description:
> > Enable dist fusing for all feature modules. (reland)
> > 
> > Fixed: I have disabled building of the system image in next-* builds
> > so there should no longer be an issue. next-* builds can be re-enabled
> > when bundletool is updated.
> > 
> > This reverts commit 7c77403da7.
> > 
> > Original change's description:
> > > Revert "Enable dist fusing for all feature modules."
> > > 
> > > This reverts commit 27ca1df76a.
> > > 
> > > Reason for revert: This CL causes an official build failure
> > > https://crbug.com/996658
> > > 
> > > Original change's description:
> > > > Enable dist fusing for all feature modules.
> > > > 
> > > > Change-Id: I66848fec159450a6d531e0af3f867988aa8b148f
> > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763431
> > > > Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
> > > > Commit-Queue: Ben Mason <benmason@chromium.org>
> > > > Cr-Commit-Position: refs/heads/master@{#689075}
> > > 
> > > TBR=tiborg@chromium.org,benmason@chromium.org
> > > 
> > > Change-Id: Ib696df42847a54c1257fae41ecb544df40f47e75
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764159
> > > Reviewed-by: Alex Ilin <alexilin@chromium.org>
> > > Commit-Queue: Alex Ilin <alexilin@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#689454}
> > 
> > TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org
> > 
> > # Not skipping CQ checks because original CL landed > 1 day ago.
> > 
> > Change-Id: Id4687e7980b238cdbea04a1c8921b57a974f7cd0
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768946
> > Reviewed-by: Ben Mason <benmason@chromium.org>
> > Commit-Queue: Ben Mason <benmason@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#689947}
> 
> TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org
> 
> # Not skipping CQ checks because original CL landed > 1 day ago.
> 
> Change-Id: Ib1558378a9b2a12b7f0260a04eeb1fbe4d1330b1
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1773836
> Reviewed-by: Ben Mason <benmason@chromium.org>
> Commit-Queue: Ben Mason <benmason@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#690995}

TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: I5f5e2aa67eebca73b2109116b4d1beba82755d55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1789826
Reviewed-by: Ben Mason <benmason@chromium.org>
Commit-Queue: Ben Mason <benmason@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694329}
2019-09-06 18:29:37 +00:00
Eric Stevenson
8c9ab26bb2 Modules: Add initial docs for JNI use in DFMs.
Bug: 995405
Change-Id: I3a82aed914760f2bc7076ae7710daac23e3f1bfd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1776484
Reviewed-by: Christopher Grant <cjgrant@chromium.org>
Commit-Queue: Eric Stevenson <estevenson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692070}
2019-08-30 15:44:40 +00:00
Ben Mason
932dfd175c Revert "Enable dist fusing for all feature modules. (reland)"
This reverts commit 78fac991fc.

Reason for revert: Breaking some internal builders. Will reland once they are no longer building these targets.

Original change's description:
> Enable dist fusing for all feature modules. (reland)
> 
> Fixed: I have disabled building of the system image in next-* builds
> so there should no longer be an issue. next-* builds can be re-enabled
> when bundletool is updated.
> 
> This reverts commit 7c77403da7.
> 
> Original change's description:
> > Revert "Enable dist fusing for all feature modules."
> > 
> > This reverts commit 27ca1df76a.
> > 
> > Reason for revert: This CL causes an official build failure
> > https://crbug.com/996658
> > 
> > Original change's description:
> > > Enable dist fusing for all feature modules.
> > > 
> > > Change-Id: I66848fec159450a6d531e0af3f867988aa8b148f
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763431
> > > Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
> > > Commit-Queue: Ben Mason <benmason@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#689075}
> > 
> > TBR=tiborg@chromium.org,benmason@chromium.org
> > 
> > Change-Id: Ib696df42847a54c1257fae41ecb544df40f47e75
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764159
> > Reviewed-by: Alex Ilin <alexilin@chromium.org>
> > Commit-Queue: Alex Ilin <alexilin@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#689454}
> 
> TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org
> 
> # Not skipping CQ checks because original CL landed > 1 day ago.
> 
> Change-Id: Id4687e7980b238cdbea04a1c8921b57a974f7cd0
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768946
> Reviewed-by: Ben Mason <benmason@chromium.org>
> Commit-Queue: Ben Mason <benmason@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#689947}

TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: Ib1558378a9b2a12b7f0260a04eeb1fbe4d1330b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1773836
Reviewed-by: Ben Mason <benmason@chromium.org>
Commit-Queue: Ben Mason <benmason@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690995}
2019-08-28 02:19:27 +00:00
Ben Mason
78fac991fc Enable dist fusing for all feature modules. (reland)
Fixed: I have disabled building of the system image in next-* builds
so there should no longer be an issue. next-* builds can be re-enabled
when bundletool is updated.

This reverts commit 7c77403da7.

Original change's description:
> Revert "Enable dist fusing for all feature modules."
> 
> This reverts commit 27ca1df76a.
> 
> Reason for revert: This CL causes an official build failure
> https://crbug.com/996658
> 
> Original change's description:
> > Enable dist fusing for all feature modules.
> > 
> > Change-Id: I66848fec159450a6d531e0af3f867988aa8b148f
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763431
> > Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
> > Commit-Queue: Ben Mason <benmason@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#689075}
> 
> TBR=tiborg@chromium.org,benmason@chromium.org
> 
> Change-Id: Ib696df42847a54c1257fae41ecb544df40f47e75
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764159
> Reviewed-by: Alex Ilin <alexilin@chromium.org>
> Commit-Queue: Alex Ilin <alexilin@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#689454}

TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: Id4687e7980b238cdbea04a1c8921b57a974f7cd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768946
Reviewed-by: Ben Mason <benmason@chromium.org>
Commit-Queue: Ben Mason <benmason@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689947}
2019-08-23 16:13:24 +00:00
Alex Ilin
7c77403da7 Revert "Enable dist fusing for all feature modules."
This reverts commit 27ca1df76a.

Reason for revert: This CL causes an official build failure
https://crbug.com/996658

Original change's description:
> Enable dist fusing for all feature modules.
> 
> Change-Id: I66848fec159450a6d531e0af3f867988aa8b148f
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763431
> Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
> Commit-Queue: Ben Mason <benmason@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#689075}

TBR=tiborg@chromium.org,benmason@chromium.org

Change-Id: Ib696df42847a54c1257fae41ecb544df40f47e75
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764159
Reviewed-by: Alex Ilin <alexilin@chromium.org>
Commit-Queue: Alex Ilin <alexilin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689454}
2019-08-22 14:33:33 +00:00
Samuel Huang
febcccd5ce [Bundles] Streamline interface ModuleInstallUi.FailureUiListener.
Previously interface ModuleInstallUi.FailureUiListener has two
callbacks: {onRetry(), onCancel()}. This CL merges the callbacks to
onFailureResponse(), which takes a |retry| param to distinguish the two
cases. This results in a slight savings in method counts (4 right now).

Bug: 927131
Change-Id: I2965906f033fc05920657ea4cb1cd7424bc8a86c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763640
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689153}
2019-08-21 20:48:47 +00:00
Ben Mason
27ca1df76a Enable dist fusing for all feature modules.
Change-Id: I66848fec159450a6d531e0af3f867988aa8b148f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763431
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Commit-Queue: Ben Mason <benmason@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689075}
2019-08-21 18:05:03 +00:00
Tibor Goldschwendt
68c5f720cb Update dynamic feature module readme
Updating paths, add conditional install, clarify limitations.

Change-Id: I9f3015b8b59015e6f84a6eb87870d68adc8c1bcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730573
Reviewed-by: Christopher Grant <cjgrant@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683171}
2019-08-01 15:10:15 +00:00
Christopher Grant
8fea5a1091 Modules: Add initial native Chrome code docs
Change-Id: Ifd1be95869fa4b3c8bea29fff2e07671abe82e7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1725189
Commit-Queue: Christopher Grant <cjgrant@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682858}
2019-07-31 19:12:31 +00:00
Tibor Goldschwendt
aef8e396fc [android] Add module descriptors
The new module descriptors greatly simplify to add new feature modules.
Previously, a module author had to create a template and instantiate
that template for each Chrome bundle. With this change, the author only
has to create the module descriptor and add it to the appropriate
descriptor list once. In more detail, this CL:

- Adds a module descriptor for each feature module, which is a GN scope
  listing its content.

- Adds chrome_feature_module template, which instantiates an
  android_app_bundle module based on the module descriptors.

- Adds lists aggregating the module descriptors that should go into each
  Chrome flavor.

- Adds code to autogenerate chrome_feature_module targets for each
  descriptor in the aggregated lists.

- Updates various other targets to work with module descriptors.

Bug: 968522
Change-Id: Ie20e9ca784eec6e17c10fbc1454df47a464321ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700308
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Christopher Grant <cjgrant@chromium.org>
Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#679140}
2019-07-19 16:39:10 +00:00
Tibor Goldschwendt
5172118ff5 [build] Add ability to define manifest package in GN
The build system will verify that the manifest packages match if you
specify it in both GN and the manifest.

Bug: 891996
Change-Id: I39c3f158d01908b971a3ef47cb90af73019284a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1667687
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#671814}
2019-06-24 21:57:47 +00:00
Fred Mello
b32b302b41 Remove classpath_deps from build params (DFM).
TBR=agrieve # Trivial change in //device/vr
Bug: 952859

Change-Id: I67ce4945ef0f136a0581bd86d2cb16c37f9126d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1667334
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#671371}
2019-06-21 18:10:11 +00:00
Tibor Goldschwendt
95db95d387 [build] Remove <uses-sdk> and specify [min|target|max]SdkVersion in GN
GN already has the concept of a minSdkVersion. This CL adds target- and
maxSdkVersion and makes GN the source of truth by removing the
<uses-sdk> element from all manifests. There are three steps that
require [min|target|max]SdkVersion: linting, manifest merging and
resource compilation. Each of these steps get the versions passed from
GN. Furthermore, manifest merging removes the SDK version from the
output manifest so that GN stays the source of truth.

+ Add a manifest_utils to unify manifest parsing, rewriting, etc. in a
  single place.

+ Move manifest verification to compile resources steps, where the final
  manifest is written.

This CL adds some temporary workarounds to keep downstream working.
Those will be removed once downstream is updated.

Bug: 891996
Change-Id: If24be69d9c6b03a0d2423fad830a4da375d68505
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1650265
Reviewed-by: Peter Kotwicz <pkotwicz@chromium.org>
Reviewed-by: Simeon Anfinrud <sanfin@chromium.org>
Reviewed-by: Yuchen Liu <yucliu@chromium.org>
Reviewed-by: Misha Efimov <mef@chromium.org>
Reviewed-by: Richard Coles <torne@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Reviewed-by: Eric Stevenson <estevenson@chromium.org>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669810}
2019-06-17 20:32:02 +00:00
Samuel Huang
7f2b53751b [Bundles] Create Devtools DFM, hidden behind a flag.
This CL creates the Devtools DFM upstream, hidden behind a new flag
|dfmify_devtools| (default = false). The currently empty DFM is created
by following the instructions in
  docs/android_dynamic_feature_modules.md
and also add an empty DevtoolsUi class. Details:
* DevtoolsUi is needed so dexsplitter.py and apkbuilder.py can have
  a valid DEX param for the Devtools DVM.
* DevtoolsUi uses @UsedByReflection so it won't be optimized away by
  ProGuard / R8.

Bug: 927131
Change-Id: Iefbe39f5825f8c1579f8b9c1a94d7196b1f44734
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1613558
Commit-Queue: Samuel Huang <huangs@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Brian White <bcwhite@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662635}
2019-05-23 15:10:05 +00:00
Samuel Huang
39c7db631a [Bundles] Update DFM instructions to reflect recent changes.
Updating stale info while trying to prototype devtools DFM. Recent
changes that led to changes include:
* module_names_to_package_ids.gni deletion:
https://chromium-review.googlesource.com/1601535
* monochrome_public_bundle_tmpl target rename:
https://chromium-review.googlesource.com/1553913

Bug: 927131
Change-Id: I59d13574469603c8400b4ba4db5c45de3944ba33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1610979
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659932}
2019-05-15 14:57:18 +00:00
Tibor Goldschwendt
573cf30204 [modules] Add description of autogenerated module class to readme
Bug: 925528
Change-Id: I6550ce1db71eda6152167eb59916b0b89f22dab9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1604114
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#658628}
2019-05-10 17:23:30 +00:00
Tibor Goldschwendt
19364ba564 [modules] Add readme for how to use dynamic feature modules
Bug: 939566
Change-Id: Id6e1de7a0bd0e08765f4f444a7a1d0ec0eb8d665
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1547957
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649524}
2019-04-10 15:59:55 +00:00