Fix reading language map for Kotlin dsl (#124)

It still works fine with groovy build script
This commit is contained in:
Karenkov Igor 2019-07-04 12:32:20 +03:00 committed by GitHub
parent df9c885a31
commit 7acdb2037c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -2,8 +2,6 @@ import groovy.json.JsonSlurper
import groovy.xml.MarkupBuilder
task stringGenerator {
final Map<String, String> languageMap = android.extensions.findByName("languageMap")
generate(languageMap)
println("Strings generated!")
}
@ -91,4 +89,4 @@ private static String getDefaultLangKey(Map<String, String> sources) {
throw new IOException("Can't find default language")
}
}
}