All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.droidsonroids.gradle.localization.LocalizationTask.groovy Maven / Gradle / Ivy

There is a newer version: 1.0.19
Show newest version
package pl.droidsonroids.gradle.localization

import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction

class LocalizationTask extends DefaultTask {
    {
        group = 'localization'
        description = """Generates Android string resource XML files
    See https://github.com/koral--/android-gradle-localization-plugin#configuration for more information."""
    }

    @TaskAction
    def parseFile() {
        def outputDirectory = project.localization.outputDirectory ?: project.file('src/main/res')
        new ParserEngine(project.localization, outputDirectory).parseSpreadsheet()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy