aaptOptions.noCompress
等是什么意思;谁能给我解释一下?
android {
aaptOptions {
noCompress 'foo', 'bar'
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~'
}
}
这会影响所有使用 aapt 的任务。
最佳答案
ignoreAssetsPattern
仅记录在 sources 中:
* Patterns syntax: * - Delimiter is : * - Entry can start with the flag ! to avoid printing a warning * about the file being ignored. * - Entry can have the flag "<dir>" to match only directories * or <file> to match only files. Default is to match both. * - Entry can be a simplified glob "<prefix>*" or "*<suffix>" * where prefix/suffix must have at least 1 character (so that * we don't match a '*' catch-all pattern.) * - The special filenames "." and ".." are always ignored. * - Otherwise the full string is matched. * - match is not case-sensitive.
关于android - 如何使用 Android aaptOptions?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28934333/