This doc lists out known usages of Metalava with specific features used by each user. The main users are Android platform and AndroidX libraries.
*.txt
e.g. current.txt
(--api
)--check-compatibility:api:released
)--api-lint
)--show-unannotated
) where @SystemApi
txt file omits public APIs--stubs
) for generating android.jar, etc for SDK--doc-stubs
) for passing to documentation tools--enhance-documentation
)added in API level
into documentation stubs (--apply-api-levels
)--generate-api-levels
)--replace-documentation
) used by libcore--migrate-nullness
, --force-convert-to-warning-nullability-annotations
) for SDK--removed-api
)--dex-api
) for for hidden API enforcement--api-xml
) for CTS tests and test coverage infrastructure--include-annotations
, --exclude-all-annotations
, --pass-through-annotation
, --exclude-annotation
)--extract-annotations
, --include-annotation-classes
, --rewrite-annotations
, --copy-annotations
, --include-source-retention
) for generating SDK--sdk-
values`)