|author||Jared Duke <firstname.lastname@example.org>||Wed Feb 01 10:27:04 2023 -0800|
|committer||Jared Duke <email@example.com>||Thu Feb 02 16:33:34 2023 +0000|
Further refine VisibleForTesting rules Additional analysis revealed more edge cases where external library code was getting kept unnecessarily. Further refine the keep rules to avoid these cases. Now, we only apply keep globally for the `com.android.internal.annotations.VisibleForTesting` annotation. VisibleForTesting annotations defined externally (e.g., by androidx or guava) will *only* be respected in platform-defined packages. This helps trim unused code from deps like gRPC and Dagger, saving up to ~hundreds of KB per package that uses these libraries. Bug: 248580093 Test: m + verify exclusion of external test code (e.g., from dagger) Change-Id: Iab7559c08d3ae1ac74f18e3cf3a1b4828a3736cf
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.