Pass BuildRelease to apply and _apply_transformation methods

Pass BuildRelease to apply and _apply_transformation methods in class of
transformations, so that transformation could use the build_release
information to decide whether certain steps of the transformation should
be performed.

Test: atest mainline_modules_sdks_test --host
Ignore-AOSP-First: Check into internal branch first to make sure all
testing works.
Bug: 254111089
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3f18d87e1a2c82f1d298ec4f303eb314006a3b82)
Merged-In: If71a921752f4c481030efb0fd391fb328b5dffb6
Change-Id: If71a921752f4c481030efb0fd391fb328b5dffb6
1 file changed
tree: 504e779dcc0d2da6aab09a5a0a86628c86de3df1
  1. build/
  2. java/
  3. javatests/
  4. proguard/
  5. proto/
  6. sdk/
  7. tools/
  8. Android.bp
  9. MODULES_OWNERS
  10. OWNERS
  11. PREBUILTS_MODULE_OWNERS
  12. PREUPLOAD.cfg
  13. README.md
README.md

packages/modules/common

This project includes mainline build and other utility code. Any library code intended for use by modules should go in frameworks/libs/modules-utils instead.

java code

This project uses a single source path for java code. All java code should go in the java directory with subdirectories corresponding to the java package. Android.bp files should go alongside the java source files, and should only include java source for a single java package to encourage good code hygiene.

Tests for java code should go in the javatests directory and follow the same structure.