How to add only specific files to Android asset srcDir

时间:2018-11-13 07:54:41

标签: android filter assets

I'm having 2 questions on the assets folder in Android Studio.

We have a folder containing xml files and somewhere else a web-folder containing many html and javascript files needed for our webserver. Unfortunately in the latter one are some files we don't want add to the assets.srcDirs.

  1. Is there any way to filter e.g. bei suffixes which files are added to the assets folder (maybe via gradle)?

  2. Is it possible to add a folder as subfolder instead of directly adding the content to the assets folder? We have a web-folder and another folder containing xml-files and currently both are merged directly into the webfolder which is not what is the desired behaviour. We would like to have again two subfolders in the asset folder.

I found a similiar question here: How to add subdirectories and specific files to Android assets

But unfortunately there was no response.

0 个答案:

没有答案