aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build
diff options
context:
space:
mode:
authorGravatar ahumesky <ahumesky@google.com>2018-01-19 13:24:01 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-19 13:25:32 -0800
commit3215117dc5372c103459a6cd21274fc756e5a9c9 (patch)
tree645ffc54383e28c25f81d592fc29374dc21cd704 /src/main/java/com/google/devtools/build
parent486085832490cef59762c0e76f3d6b6e7231f295 (diff)
Make createMainDexProguardSpec public.
RELNOTES: None. PiperOrigin-RevId: 182579590
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/AndroidBinary.java2
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/ApplicationManifest.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidBinary.java b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidBinary.java
index a04ec3fd3d..505b374165 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidBinary.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidBinary.java
@@ -1598,7 +1598,7 @@ public abstract class AndroidBinary implements RuleConfiguredTargetFactory {
return mainDexList;
}
- private static Artifact createMainDexProguardSpec(RuleContext ruleContext) {
+ public static Artifact createMainDexProguardSpec(RuleContext ruleContext) {
return ProguardHelper.getProguardConfigArtifact(ruleContext, "main_dex");
}
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/ApplicationManifest.java b/src/main/java/com/google/devtools/build/lib/rules/android/ApplicationManifest.java
index cb9e5002d7..f289b61c30 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/ApplicationManifest.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/ApplicationManifest.java
@@ -316,6 +316,7 @@ public final class ApplicationManifest {
@Nullable Artifact rTxt,
boolean incremental,
Artifact proguardCfg,
+ Artifact mainDexProguardCfg,
@Nullable String packageUnderTest,
boolean hasLocalResourceFiles)
throws InterruptedException, RuleErrorException {
@@ -342,6 +343,7 @@ public final class ApplicationManifest {
.withPrimary(resourceContainer)
.withDependencies(resourceDeps)
.setProguardOut(proguardCfg)
+ .setMainDexProguardOut(mainDexProguardCfg)
.setApplicationId(manifestValues.get("applicationId"))
.setVersionCode(manifestValues.get("versionCode"))
.setVersionName(manifestValues.get("versionName"))
@@ -369,7 +371,7 @@ public final class ApplicationManifest {
processed,
processed.getManifest(),
proguardCfg,
- null);
+ mainDexProguardCfg);
}
/** Packages up the manifest with resource and assets from the LocalResourceContainer. */