Delete default_android_transition

This transition was added so that the tests are run under
an android configuration.

In theory, instead of this, we should be able to mark apexes
as target_compatible_with = ["//build/bazel/platforms/os:android"],
and then the tests will also be treated as incompatiable as well, given
this docs quote:

"Targets that transitively depend on incompatible targets are themselves
considered incompatible. They are also skipped for building and testing."
https://bazel.build/reference/be/common-definitions#common.target_compatible_with

However, it appears that toolchains are still attempted to be resolved
even when the target being built is incompatible. To work around this,
make the apex toolchain optional.

Bug: 249685973
Test: b test --toolchain_resolution_debug='//build/bazel/rules/apex:apex_toolchain_type' //build/bazel/tests/apex:all
Change-Id: Ifa4b72f6d391094f5a779b44ccc720123589ffd8
5 files changed
tree: 79f72165c9823775b74d4ddc321d42af97be6dc3
  1. bin/
  2. ci/
  3. compliance/
  4. docs/
  5. examples/
  6. flags/
  7. json_module_graph/
  8. mk2rbc/
  9. platforms/
  10. product_config/
  11. product_variables/
  12. rules/
  13. scripts/
  14. tests/
  15. vendor/
  16. .gitignore
  17. bazel.BUILD
  18. bazel.WORKSPACE
  19. buildifier_hook.sh
  20. common.bazelrc
  21. darwin.bazelrc
  22. linux.bazelrc
  23. OWNERS
  24. PREUPLOAD.cfg
  25. 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.