diff options
author | 2017-09-04 12:20:56 +0200 | |
---|---|---|
committer | 2017-09-04 18:23:32 +0200 | |
commit | 9d8a5bd160b3c8c11e7198a95d4520b18ace7254 (patch) | |
tree | 5ba5c651f969cc6ac59adeff7f19a34959d9ee6f /src/main/java/com/google/devtools/build/lib/rules/android/ApkProvider.java | |
parent | cdb8a63d3e01e396204c1a372cab49147886d100 (diff) |
Automated rollback of commit 8d6fc64b18c7e35b93f5c43dae1dbd2f8cae2147.
PiperOrigin-RevId: 167480127
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/android/ApkProvider.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/android/ApkProvider.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/ApkProvider.java b/src/main/java/com/google/devtools/build/lib/rules/android/ApkProvider.java index 70676b701d..d265fd3160 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/android/ApkProvider.java +++ b/src/main/java/com/google/devtools/build/lib/rules/android/ApkProvider.java @@ -17,6 +17,7 @@ import com.google.auto.value.AutoValue; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.TransitiveInfoProvider; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; +import javax.annotation.Nullable; /** A provider for targets that produce an apk file. */ @AutoValue @@ -26,9 +27,10 @@ public abstract class ApkProvider implements TransitiveInfoProvider { public static ApkProvider create( Artifact apk, Artifact unsignedApk, + @Nullable Artifact coverageMetdata, Artifact mergedManifest, Artifact keystore) { - return new AutoValue_ApkProvider(apk, unsignedApk, mergedManifest, keystore); + return new AutoValue_ApkProvider(apk, unsignedApk, coverageMetdata, mergedManifest, keystore); } /** Returns the APK file built in the transitive closure. */ @@ -37,6 +39,10 @@ public abstract class ApkProvider implements TransitiveInfoProvider { /** Returns the unsigned APK file built in the transitive closure. */ public abstract Artifact getUnsignedApk(); + /** Returns the coverage metadata artifacts generated in the transitive closure. */ + @Nullable + public abstract Artifact getCoverageMetadata(); + /** Returns the merged manifest. */ public abstract Artifact getMergedManifest(); |