Skip to content

Commit

Permalink
Fix configuration cache issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Apr 16, 2023
1 parent 4b183c0 commit 3f61894
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class AppVersioningPlugin : Plugin<Project> {
extension = appVersioningExtension
)

val generatedVersionCode = generateAppVersionInfo.map { it.versionCodeFile.asFile.get().readText().trim().toInt() }
val generatedVersionName = generateAppVersionInfo.map { it.versionNameFile.asFile.get().readText().trim() }
val generatedVersionCode = generateAppVersionInfo.flatMap { it.versionCodeFile.map { it.asFile.readText().trim().toInt() } }
val generatedVersionName = generateAppVersionInfo.flatMap { it.versionNameFile.map { it.asFile.readText().trim() } }

project.registerPrintAppVersionInfoTask(variantName = variant.name)

Expand Down

0 comments on commit 3f61894

Please sign in to comment.