-
-
Notifications
You must be signed in to change notification settings - Fork 42
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 to add more resource folders and string file names for 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
}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.