GWT/mGWT development and deployment for mobile app

2019-04-06 15:51发布

问题:

I am really confused by lot of links: mgwt, Phonegap, Cordova, gwt-phonegap, etc... Can somebody really help me with a few basic questions about all these?

  1. Phonegap and Cordova are one and the same - They will help us to build a mobile deployable component using generated JS files. Am I correct?

  2. Steps provided in the Cordova site to create an Android project and deploy needs generated html, JS and CSS content of our project. So we need to build these before we come here from our project. Right?

  3. Now if I have a simple GWT project, can I build GWT client and deploy the generated web app content (.nocache.js and module html files) directly using step b (Cordova approach) without any changes. I understand that this itself is called a Phonegap project, which we do using Phonegap's Android tutorial

  4. Now if I have used mGWT widgets in my GWT application, what is needed extra before I start using Cordova steps - mGWT compiled code can't be used directly in Cordova Phonegap project?

What is gwt-Phonegap? Why do we need this now? Can somebody really explain what exactly is happening using gwt-Phonegap in some simple words.

回答1:

Here are the answers:

  1. Cordova is the open source code base, Phonegap is one distribution of it, like ubuntu is one distribution of the linux kernel.
  2. If you want to deploy a GWT to an android device you need to compile your GWT app and place the output of the compiler in the www folder of the phonegap project.
  3. see 2.
  4. you just build your GWT as normal using mgwt widgets and the phonegap api (gwt-phonegap), compile it with the GWT compiler and copy it to the device.

Here is a video explaining the basic concept around GWT, Phonegap, mgwt & gwt-phonegap: http://www.youtube.com/watch?v=0V0CdhMFiao&feature=plcp



标签: gwt cordova mgwt