Generate a CSV file per class.

Due to sharding at compile time, generated resource files should have a unique name to not get dropped when shards get combined. We use qualified name of the enclosing class per annotated element to guarantee the uniqueness.

hiddenapi soong rules can then extract and merge these CSV files to generated combined unsupportedappusage index csv file.

Follow up would remove existing unsupportedappusage/unsupportedappusage_index.csv file.

Bug: 145132366
Change-Id: I0764f2d7f2a9614d5ce0f6c535e737cdb90a0c82
Test: diff unsupportedappusage_index.csv hiddenapi-index.csv
2 files changed
tree: 4eeb1391029ee79b8f0e094c5c0ebef2194164d0
  1. build/
  2. java/
  3. javatest/
  4. Android.mk
  5. OWNERS
  6. README.md
README.md

Platform compat tools

Tools for Android App Compat (go/android-compat).

What's in here?

├── build # python helper scripts for build
├── java # All Java source files; directories follow corresponding java packages
│   └── android
│       ├── compat
│       │   └── annotation # Annotations used for go/compat-framework and go/unsupportedappusage
│       └── processor
│           └── compat  # Java annotation processors for annotations defined in src/
│               ├── changeid # Creates compat_config xml files from @ChangeId constants
│               └── unsupportedappusage # Creates csv files with source positions for @UnsupportedAppUsage elements
└── javatest # Tests for source files defined under java/