-
-
Notifications
You must be signed in to change notification settings - Fork 42
Configuration
Efra Espada edited this page Jun 19, 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.
On root-level build.gradle
file:
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']
}
}
}
Module build.gradle
files:
// app build.gradle
android {
sourceSets {
main.res.srcDirs = ['src/main/res', 'src/other_variant_source/res']
}
}
// library build.gradle
android {
sourceSets {
main.res.srcDirs = ['src/other_folder/res']
}
}
On root-level build.gradle
file:
The default value is
app
apply plugin: StringCare
stringcare {
main_module "base"
}
On root-level build.gradle
file:
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.