Add an integration test to verify ndk libs are not included

android apps that target an sdk should not embed an ndk lib even if
one of its jni libraries has a transiive depdencny on it.

Add an integration test that asserts this behavior for `b` built apps.

Bug: 301295448
Test: b run //build/bazel/examples/android_app/java/com/app:no_ndk_libs_in_android_app --config=android

Change-Id: I879933c47e15261e9e96aea90ff3f81a9f1a3c5b
2 files changed
tree: a981a35f57e9b26c28b567363b2bde4a8e377168
  1. api_surfaces/
  2. bazel_sandwich/
  3. bin/
  4. ci/
  5. compliance/
  6. docs/
  7. examples/
  8. flags/
  9. json_module_graph/
  10. mk2rbc/
  11. mkcompare/
  12. platforms/
  13. product_config/
  14. rules/
  15. scripts/
  16. tests/
  17. toolchains/
  18. utils/
  19. vendor/
  20. .gitignore
  21. bazel.BUILD
  22. bazel.WORKSPACE
  23. buildifier_hook.sh
  24. common.bazelrc
  25. constants_exported_to_soong.bzl
  26. darwin.bazelrc
  27. linux.bazelrc
  28. OWNERS
  29. PREUPLOAD.cfg
  30. 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.