-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc2e27f
commit 324348e
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
plugin-build/plugin/src/main/java/ch/ubique/linth/ManifestTask.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package ch.ubique.linth | ||
|
||
import org.gradle.api.DefaultTask | ||
import org.gradle.api.tasks.Input | ||
import org.gradle.api.tasks.TaskAction | ||
|
||
abstract class ManifestTask : DefaultTask() { | ||
|
||
init { | ||
description = "Inject Metadata into Manifest" | ||
group = "linth" | ||
} | ||
|
||
@get:Input | ||
abstract var flavorAndBuildType: Set<Pair<String, String>> | ||
|
||
|
||
@TaskAction | ||
fun injectMetadataIntoManifest() { | ||
flavorAndBuildType.forEach { (flavor, buildType) -> | ||
println("Injecting metadata into manifest for flavor: $flavor and buildType: $buildType") | ||
} | ||
} | ||
|
||
} |