Remove broken no-op code for supporting <public/>

This was intended for supporting <public id="0xdeadbeef"/>, but since other
parts of RPBB invoke aapt2 with --static-lib, aapt2 will reject these anyway.
Even if RPBB removed usage of --static-lib [1], this code is still wrong:

* RPBB removed the top 16 bits of resource IDs.  An entry ID (aapt.pb.EntryId)
  is the lower 16 bits of a 32-bit resource ID (0xPPTTEEEE).

* aapt.pb.Entry messages with PUBLIC visibility are not guaranteed to have
  zero values.  aapt2 can and does fold a declaration+definition:
      <public name="foo" type="string" id="0x7f05537"/>
      <string name="foo">asdf</string>
  into a single Entry message if they occur in a single XML file.

[1] And it should.

PiperOrigin-RevId: 284041867
1 file changed
tree: febfcf392c1ca7fb0b0354e04e91403779725e22
  1. .bazelci/
  2. examples/
  3. scripts/
  4. site/
  5. src/
  6. third_party/
  7. tools/
  8. .bazelrc
  9. .gitattributes
  10. .gitignore
  11. AUTHORS
  12. BUILD
  13. CHANGELOG.md
  14. CODEOWNERS
  15. combine_distfiles.py
  16. combine_distfiles_to_tar.sh
  17. compile.sh
  18. CONTRIBUTING.md
  19. CONTRIBUTORS
  20. distdir.bzl
  21. ISSUE_TEMPLATE.md
  22. LICENSE
  23. README.md
  24. WORKSPACE
README.md

Bazel

{Fast, Correct} - Choose two

Build and test software of any size, quickly and reliably.

  • Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.

  • One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.

  • Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.

  • Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.

Getting Started

Documentation

Contributing to Bazel

See CONTRIBUTING.md

Build status