pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/bazelbuild/bazel/commit/e05060d97c02c41cc928682d5b392f79dfbdeb61

57469407.css" /> Fix a bug in ART profile generation that proguardOutputMap might be n… · bazelbuild/bazel@e05060d · GitHub
Skip to content

Commit e05060d

Browse files
zhaoqxucopybara-github
authored andcommitted
Fix a bug in ART profile generation that proguardOutputMap might be null and breaks the build. Also add an unit test for this.
BEGIN_PUBLIC Internal Change END_PUBLIC PiperOrigin-RevId: 480737920 Change-Id: I9d57d175b13a28b24ae6de0e0cebcd826c7cf431
1 parent a05276f commit e05060d

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/main/java/com/google/devtools/build/lib/bazel/rules/android/BazelAndroidSemantics.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ public void registerMigrationRuleError(RuleContext ruleContext) throws RuleError
121121
/* Bazel does not currently support baseline profiles in the final apk. */
122122
@Override
123123
public Artifact getArtProfileForApk(
124-
RuleContext ruleContext,
125-
Artifact finalClassesDex,
126-
Artifact proguardOutputMap,
127-
boolean hasProguardSpecs) {
124+
RuleContext ruleContext, Artifact finalClassesDex, Artifact proguardOutputMap) {
128125
return null;
129126
}
130127
}

src/main/java/com/google/devtools/build/lib/rules/android/AndroidBinary.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,7 @@ public static RuleConfiguredTargetBuilder createAndroidBinary(
673673
}
674674

675675
Artifact artProfileZip =
676-
androidSemantics.getArtProfileForApk(
677-
ruleContext, finalClassesDex, proguardOutputMap, hasProguardSpecs);
676+
androidSemantics.getArtProfileForApk(ruleContext, finalClassesDex, finalProguardOutputMap);
678677
Artifact unsignedApk =
679678
ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_BINARY_UNSIGNED_APK);
680679
Artifact zipAlignedApk =

src/main/java/com/google/devtools/build/lib/rules/android/AndroidSemantics.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ default void validateAndroidLibraryRuleContext(RuleContext ruleContext)
111111

112112
/** The artifact for ART profile information. */
113113
Artifact getArtProfileForApk(
114-
RuleContext ruleContext,
115-
Artifact finalClassesDex,
116-
Artifact proguardOutputMap,
117-
boolean hasProguardSpecs);
114+
RuleContext ruleContext, Artifact finalClassesDex, Artifact proguardOutputMap);
118115

119116
boolean postprocessClassesRewritesMap(RuleContext ruleContext);
120117

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy