Skip to content

Configuration

Efra Espada edited this page May 8, 2019 · 9 revisions

By default, the plugin will encrypt every strings.xml file inside src/main folder but you can choose a different configuration.

Let's suppose we have this application project (app and library).

With this schema and no configuration defined, only two files will be encrypted at compilation time.

StringCare allows adding more resource folders and string file names to find strings to hide.

apply plugin: StringCare
stringcare {
    modules {
        app {
            stringFiles = ['strings.xml',"more_strings.xml"]
            srcFolders = ['src/main', "src/other_variant_source"]
        }
        library {
            srcFolders = ['src/other_folder/main']
        }
    }
}

Enable debug logs if needed:

apply plugin: StringCare
stringcare {
    debug true
}
Clone this wiki locally