Skip to content

Commit

Permalink
Expose coverage metadata in ApkInfo provider.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 248378178
  • Loading branch information
Googler authored and copybara-github committed May 15, 2019
1 parent 6ec7e47 commit f72a071
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ public Artifact getUnsignedApk() {
return unsignedApk;
}

/** Returns the coverage metadata artifacts generated in the transitive closure. */
/** Returns the coverage metadata artifact generated in the transitive closure. */
@Nullable
@Override
public Artifact getCoverageMetadata() {
return coverageMetadata;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ public interface ApkInfoApi<FileT extends FileApi> extends StructApi {
structField = true)
FileT getUnsignedApk();

/** Returns the coverage metadata artifact generated in the transitive closure. */
@SkylarkCallable(
name = "coverage_metadata",
doc = "Returns the coverage metadata artifact generated in the transitive closure.",
documented = false,
structField = true,
allowReturnNones = true)
FileT getCoverageMetadata();

/** Returns keystore that was used to sign the APK */
@SkylarkCallable(
name = "keystore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public FileApi getKeystore() {
return null;
}

@Override
public FileApi getCoverageMetadata() {
return null;
}

@Override
public String toProto(Location loc) throws EvalException {
return "";
Expand Down

0 comments on commit f72a071

Please sign in to comment.