Add preview level support to api.bzl.

The current implementation was also somewhat incomplete compared to the
Soong version, e.g. it didn't use the finalized codenames.

I'd suggest reading the unit tests first to understand the expected
parse results.

Fixes: 271424224
Bug: 271424349
Test: new AndroidManifest.xml diff test to show target sdk version being set correctly to 10000 (among other things)
Test: new unittest for the api parser

Change-Id: I467cdda71d766327e25c3d1db0df47db6eb2502b
6 files changed
tree: 236d75632482b9573470d1c81ba0c2b4e333d653
  1. api_surfaces/
  2. bin/
  3. ci/
  4. compliance/
  5. docs/
  6. examples/
  7. flags/
  8. json_module_graph/
  9. mk2rbc/
  10. mkcompare/
  11. platforms/
  12. product_config/
  13. product_variables/
  14. rules/
  15. scripts/
  16. tests/
  17. vendor/
  18. .gitignore
  19. bazel.BUILD
  20. bazel.WORKSPACE
  21. buildifier_hook.sh
  22. common.bazelrc
  23. darwin.bazelrc
  24. linux.bazelrc
  25. OWNERS
  26. PREUPLOAD.cfg
  27. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.