3MB Phonegap Application increases to almost 220MB. Can you explain it to me?

Asked

Viewed 89 times

0

I’m developing my first Phonegap app for Android and I come across something that scared me a lot. The application, which so far has only interface, nothing business rule has increased its size drastically. Initially it was only 3mb, however, I only did the favor of uploading the application to the company’s Bitbucket (git) and when I went to emulate it then it became absurd. 3mb went to 220mb. They would know what it can be, remembering that the application has no operating business rule, only 4 screens created with Html5, js and css.

Thanks in advance.

1 answer

2


Did you clone the whole folder straight from bitbucket?

If this happens it takes ALL the git reference, that’s probably the cause...

Try this command to get only the files:

git archive --format zip --output /full/path/to/zipfile.zip master

Then you unzip and see how many megas they gave... I believe that’s all it is.

  • Actually, the problem is in the git folder. As I did the first commit of the application, it created the . git directory and included it in the project. That was the cause, now I’m ignoring the . git folder in apk creation and the problem has been solved. Thanks for your attention.

  • 1

    For those who have the same problem, just right-click on the project > Properties > Resource > Resource Filters > Add ... Adds the folder . git and selects Folders, so the problem is solved.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.