Hi Everyone,
I have a tricky question here:
How to exclude a file from the assets folder only for release buildType.
Imagine the following scenario:
I have a lot a json strings under the assets folder, with names like string_1.json, string_2.json, string_3.json
With the following snippet I can remove all files.
(gradle snippet)
aaptOptions {
ignoreAssetsPattern "!*.json"
}
}
The problem is I want to keep some and remove some of them. For example, I want to keep string_2.json
Does the ignoreAssetsPattern has something for exclusions?
(Also this snippet will remove both for debug and release. Any help will be appreciated)
Thanks in advance.