Skip to content

Commit

Permalink
Add comments about wiredWith to createSingleArtifact
Browse files Browse the repository at this point in the history
Test: NA
Fixes: NA
Change-Id: I1fc89726bce2e29cd59efe851c4f43bbcaf3182e
  • Loading branch information
agolubevgo committed Oct 26, 2023
1 parent 1fb09ca commit 546f3c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion recipes/createSingleArtifact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ The [build-logic](build-logic) sub-project contains the
[`ProduceManifestTask`](build-logic/plugins/src/main/kotlin/ProduceManifestTask.kt) classes.

[`CustomPlugin`](build-logic/plugins/src/main/kotlin/CustomPlugin.kt) registers an instance of the
`ProduceManifestTask` task per variant and use [OutOperationRequest::toCreate](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/artifact/OutOperationRequest#toCreate(com.android.build.api.artifact.Artifact.Single)) api
`ProduceManifestTask` task per variant and use
[TaskBasedOperation::wiredWith](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/artifact/TaskBasedOperation#wiredWith(kotlin.Function1))
and
[OutOperationRequest::toCreate](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/artifact/OutOperationRequest#toCreate(com.android.build.api.artifact.Artifact.Single)) api
to wire this task's output to create `SingleArtifact.MERGED_MANIFEST`.
It also registers a `VerifyManifestTask` that does a simple verification that the `SingleArtifact.MERGED_MANIFEST` is replaced by the output of `ProduceManifestTask` task.

Expand Down
3 changes: 2 additions & 1 deletion recipes/createSingleArtifact/recipe_metadata.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ index = [
"onVariant",
"Manifest API",
"MERGED_MANIFEST",
"OutOperationRequest.toCreate"
"OutOperationRequest.toCreate",
"TaskBasedOperation.wiredWith(taskOutput)"
]

0 comments on commit 546f3c7

Please sign in to comment.