[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
+ 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.
Reviewed-by: Peter Kotwicz <email@example.com>
Reviewed-by: Simeon Anfinrud <firstname.lastname@example.org>
Reviewed-by: Yuchen Liu <email@example.com>
Reviewed-by: Misha Efimov <firstname.lastname@example.org>
Reviewed-by: Richard Coles <email@example.com>
Reviewed-by: Ted Choc <firstname.lastname@example.org>
Reviewed-by: Eric Stevenson <email@example.com>
Reviewed-by: Peter Wen <firstname.lastname@example.org>
Commit-Queue: Tibor Goldschwendt <email@example.com>
2 files changed