library 2 times

  • 1
  • Question
  • Updated 9 years ago
  • Answered
why after build apk file put phonegap library 2 time phonegap.0.9.5.js and phonegap.js in assets/www
Photo of Antonio Baldini

Antonio Baldini

  • 19 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Did you by any chance upload the phonegap.0.9.5.js with your project?

If so then please remove it and inside index.html please reference phonegap.js

The reason for this is so we can provide the correct library when building for different platforms.

Hardeep Shoker
Photo of Antonio Baldini

Antonio Baldini

  • 19 Posts
  • 0 Reply Likes
Hi, no I don't upload the library, put only src="phonegap.js" in the head, but after build looking in the folder assets/www and phonegap.com put the library 2 times one with the version number and one without in the apk files because if it is the same?
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
We copy the current version of phonegap (phonegap.0.9.5.js) to a standard file (phonegap.js) so that you can reference a single file for all platforms, without needing to know which version we're currently running on the server.

It also allows you to know which version is on there, if you need to debug.