Skip to content

Instantly share code, notes, and snippets.

@koral--
Last active March 2, 2020 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koral--/dda2c1982673a8a781457d722c654dee to your computer and use it in GitHub Desktop.
Save koral--/dda2c1982673a8a781457d722c654dee to your computer and use it in GitHub Desktop.
GenerateNavArgsProguardRulesTask inputs and outputs
const val NAVARGS_PROGUARD_RULES_PATH = "generated/proguard-rules/navargs-proguard-rules.pro"
abstract class GenerateNavArgsProguardRulesTask : DefaultTask() {
@get:InputFiles
@get:SkipWhenEmpty
val navigationGraphFiles: FileTree = project.fileTree("src/main/res/navigation") {
include("*.xml")
}
@get:OutputFile
val rulesFile = File(project.buildDir, NAVARGS_PROGUARD_RULES_PATH)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment