mardi 1 avril 2014

phonegap.js is not included when building for production

Touch and Cmd version tested:

  • Touch 2.3.1

  • Sencha Cmd 4.0.2.67


Description:

  • sencha app build production is broken on a newly generated, Phonegap enabled app. phonegap.js is not copied over to the final build.


Steps to reproduce the problem:

  • Generate a new app with sencha generate app MyApp ../MyApp.

  • Initialize Phonegap with sencha phonegap init "com.example.myapp".

  • Build for production with sencha app build production.

  • Serve the resulting build/production/MyApp directory in a web server.


The result that was expected:

  • No exceptions should occur, everything should "just work"

  • or I should not be able to run sencha app build production in a Phonegap enabled project

  • or it should be documented that sencha app build production won't work in a Phonegap enabled project.


The result that occurs instead:

  • When you open a browser and visits the previously served web app the following error appears in the console:



Code:



[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (phonegap.js, line 0)






Aucun commentaire:

Enregistrer un commentaire