From 400c24aad97b43f782f5d8973edbbef61a7ef124 Mon Sep 17 00:00:00 2001 From: Andrew Pellegrini Date: Tue, 31 Jan 2017 16:59:28 +0000 Subject: Update documentation to note that the shrinker behavior differs from the Gradle version in that it removes values resources instead of only minifying them. -- PiperOrigin-RevId: 146124871 MOS_MIGRATED_REVID=146124871 --- .../java/com/android/build/gradle/tasks/ResourceUsageAnalyzer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'third_party/java') diff --git a/third_party/java/aosp_gradle_core/java/com/android/build/gradle/tasks/ResourceUsageAnalyzer.java b/third_party/java/aosp_gradle_core/java/com/android/build/gradle/tasks/ResourceUsageAnalyzer.java index 3b40c958b0..fe12f83357 100644 --- a/third_party/java/aosp_gradle_core/java/com/android/build/gradle/tasks/ResourceUsageAnalyzer.java +++ b/third_party/java/aosp_gradle_core/java/com/android/build/gradle/tasks/ResourceUsageAnalyzer.java @@ -138,9 +138,7 @@ import org.xml.sax.SAXException; * named "foo" as potentially used. However, if the string is "bar/foo" or " foo " these strings are * ignored. This means we can potentially miss resources usages where the resource name is completed * computed (e.g. by concatenating individual characters or taking substrings of strings that do not - * look like resource names), but that seems extremely unlikely to be a real-world scenario.

For - * now, for reasons detailed in the code, this only applies to file-based resources like layouts, - * menus and drawables, not value-based resources like strings and dimensions. + * look like resource names), but that seems extremely unlikely to be a real-world scenario. */ public class ResourceUsageAnalyzer { private static final String ANDROID_RES = "android_res/"; -- cgit v1.2.3