mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: locales_config.xml
This commit is contained in:
parent
11145cf716
commit
9a86f99799
4 changed files with 8 additions and 6 deletions
|
@ -9,6 +9,7 @@ fun TaskContainerScope.registerLocalesConfigTask(project: Project): TaskProvider
|
|||
val emptyResourcesElement = "<resources>\\s*</resources>|<resources/>".toRegex()
|
||||
val valuesPrefix = "values-?".toRegex()
|
||||
|
||||
println(projectDir)
|
||||
val languages = fileTree("$projectDir/src/main/res/")
|
||||
.matching {
|
||||
include("**/strings.xml")
|
||||
|
|
2
i18n/.gitignore
vendored
2
i18n/.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
# Generated
|
||||
locales_config.xml
|
||||
#locales_config.xml
|
||||
|
|
|
@ -30,10 +30,11 @@ multiplatformResources {
|
|||
}
|
||||
|
||||
tasks {
|
||||
val localesConfigTask = registerLocalesConfigTask(project)
|
||||
preBuild {
|
||||
dependsOn(localesConfigTask)
|
||||
}
|
||||
// FIXME: Migrate fully to MR
|
||||
// val localesConfigTask = registerLocalesConfigTask(project)
|
||||
// preBuild {
|
||||
// dependsOn(localesConfigTask)
|
||||
// }
|
||||
|
||||
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||
kotlinOptions.freeCompilerArgs += listOf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue