File tree Expand file tree Collapse file tree
build/project-template-gradle/build-tools/android-static-binding-generator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,13 +12,15 @@ def cachedJarsFilePath = "$projectDir/cached.txt"
1212def shouldRun = true
1313def absoluteOutDir = project. outDir
1414def 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
1719task 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())
You can’t perform that action at this time.
0 commit comments