Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to configure res path by DSL #30

Open
koral-- opened this issue Jun 16, 2015 · 2 comments
Open

Add option to configure res path by DSL #30

koral-- opened this issue Jun 16, 2015 · 2 comments

Comments

@koral--
Copy link
Owner

koral-- commented Jun 16, 2015

No description provided.

@koral--
Copy link
Owner Author

koral-- commented Jul 2, 2015

Not only path can be configured by DSL but also other settings. Moreover instead of typing path directly configurations closures can be used like this:

localizationDefaultConfig {
             escapeSlashes false
         } //default settings
localization {
         main {
             csvFileURI '<link to main strings>'
        } //will generate src/main/res/values/strings.xml
         debug {
             csvFileURI '<link to debug strings>'
        } //will generate src/debug/res/values/strings.xml
        flavor1 {
             escapeSlashes true //will overwrite default settings
             csvFileURI '<link to flavor1 strings>'
        }
     }

@ihrthk what do you think?

@ihrthk
Copy link
Contributor

ihrthk commented Jul 3, 2015

I think that don't need two extensions..The default configured write in 'main'. You can choose execute specific flavor not all flavors.And old configured should be to support. Like this:

localization {
       main {
             escapeSlashes false
             csvFileURI '<link to main strings>'
        } //will generate src/main/res/values/strings.xml
        debug {
             csvFileURI '<link to debug strings>'
        } //will generate src/debug/res/values/strings.xml
        flavor1 {
             escapeSlashes true //will overwrite default settings
             csvFileURI '<link to flavor1 strings>'
        }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants