Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to workaround autoomitting fiiles/folders starting with "_" (underscore) in assets folder

I want to deploy PhoneGap app on the Android simulator provided with eclipse. I decided to use Dojo Toolkit which heavily relies on the " _ " convention (starting a file/folder with " _ " means this is a private/internal module).

Basically the problem is that while deploying the app, every file/folder starting with "_" is omitted. This completely messes things up, Dojo toolkit as exptected fails to work.

Is there a way to fix this?

like image 651
Marcin Rybacki Avatar asked Feb 09 '12 06:02

Marcin Rybacki


2 Answers

aaptOptions{
    ignoreAssetsPattern  '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
}

add the above lines in the application build.gradle file inside android block for android app

like image 95
Neha Prasad Avatar answered Sep 30 '22 19:09

Neha Prasad


First go star this issue so Google will fix the bug eventually. If you are running on Mac or Linux there is a patched aapt that fixes the bug here. Other than that your only choice is to do a build of Dojo so that it is only in one file.

like image 20
Simon MacDonald Avatar answered Sep 30 '22 19:09

Simon MacDonald