Migrate Fenix version codes and BuildConfig off the legacy AGP variant API
Categories
(Firefox Build System :: Android Studio and Gradle Integration, task)
Tracking
(firefox153 fixed)
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: RyanVM, Assigned: RyanVM)
References
Details
Attachments
(1 file)
AGP 9 removes the applicationVariants API that Fenix uses to set per-output version codes/names and per-variant BuildConfig fields. As preparatory work for the AGP 9 upgrade (bug 2043921), move the version code and name overrides to androidComponents.onVariants (reading the ABI from output.filters), and relocate the BuildConfig field definitions onto defaultConfig, with the debug build type overriding the fields that differ. The coverage jacoco report wiring also moves to onVariants.
The new APIs are already valid on AGP 8.13. The generated BuildConfig.java and per-channel version codes are preserved (verified byte-identical for debug/nightly and on a try push for the per-ABI splits).
Try: https://treeherder.mozilla.org/jobs?repo=try&revision=6de8fc758ae1d94b60207a2324989d11b4f43ad8
| Assignee | ||
Comment 1•1 month ago
|
||
AGP 9 removes the applicationVariants API. Move the per-output version code and name overrides to
androidComponents.onVariants, and relocate the BuildConfig field definitions onto defaultConfig (with the
debug build type overriding the ones that differ), which keeps the raw-literal buildConfigField API and
preserves the generated values. The coverage jacoco report wiring also moves to onVariants.
Comment 3•29 days ago
|
||
| bugherder | ||
Description
•