Skip to content

Commit 8eada05

Browse files
author
Mihail Slavchev
committed
bug fix
1 parent c48be38 commit 8eada05

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • build/project-template-gradle/build-tools/android-static-binding-generator

build/project-template-gradle/build-tools/android-static-binding-generator/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ def cachedJarsFilePath = "$projectDir/cached.txt"
1212
def shouldRun = true
1313
def absoluteOutDir = project.outDir
1414
def absoluteJsCodeDir = project.jsCodeDir
15+
def utf8 = java.nio.charset.StandardCharsets.UTF_8
16+
def current = ""
1517

1618
// depends on passed jars and generated interface-names
1719
task generateInterfaceNamesList() {
1820
doFirst {
19-
def current = project.jarFiles
21+
current = project.jarFiles
2022
def cache = new File(cachedJarsFilePath)
21-
def utf8 = java.nio.charset.StandardCharsets.UTF_8
23+
2224
if (cache.exists()) {
2325
def contents = new String(java.nio.file.Files.readAllBytes(java.nio.file.Paths.get(cachedJarsFilePath)), utf8).trim()
2426
shouldRun = !contents.equals(current.toString())

0 commit comments

Comments
 (0)