在Android中使用GWT源$ C ​​$ C [英] Using GWT source code in Android

查看:121
本文介绍了在Android中使用GWT源$ C ​​$ C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于GWT的web应用程序。我用的是相同的code基地为目标的桌面和移动平台。我使用基于GIN模型 - 视图 - presenter和依赖注入实现的是跨平台兼容的目标。然而,对于在Android更好的性能和本机的外观和感觉,我想编写一个完全原生的应用程序。我希望通过迁移相同的GWT的Java code到一个新的Andr​​oid项目启动和只更换View实现与利用原生窗口部件的原生景观。有没有人尝试过​​呢?除了像臃肿code和额外的内存消耗,因为DI明显的问题还有没有其他重大问题?

I have a web app based on GWT. I use the same code base to target desktop as well as mobile platforms. I am using Model-View-Presenter and Dependency Injection based on GIN to achieve the goal of being cross platform compatible. However for better performance and native look-and-feel on Android, I would like to write to a fully native app. I want start by migrating the same GWT Java code to a new Android project and replace just the View implementations with native views that make use of native widgets. Has anybody tried this ? Besides the obvious issues like bloated code and extra memory consumption due to DI are there any other major issues?

推荐答案

这是可以做到。事实上,几个应用程序都做到了。谷歌邮箱目前正处于测试阶段,但应该更换的Gmail1天使用GWT至70%的份额,如果它的Andr​​oid和JavaScript之间的code。我打算把我的应用程序在Android了。另外,很多工具都该支持。杜松子酒,GWT同步代理和其他人都对Android的支持。此外,putnami-摇篮 - 插件是一个插件,可能支持这一在未来摇篮。其中一个我遇到的最大的问题是,很少有图书馆的GWT和Android的工作。我感兴趣的是在一个Android应用程序中使用mvp4g所以我创造了这个问题:的 HTTPS://$c$c.google.com/p/mvp4g/issues/detail ID = 133

This can be done. In fact, several apps have done it. Google inbox which is currently in beta but is supposed to replace gmail one day uses gwt to share 70% if it's code between android and javaScript. I plan to put my app on android too. Also, many tools have support for that. gin, gwt sync proxy and others all have support for android. Also, the putnami-gradle-plugin is a plugin for gradle that might support this in the future. One of the biggest issues I'm having is that there are very few libraries work on gwt and android. I'm interested in using mvp4g in an android app so I created this issue: https://code.google.com/p/mvp4g/issues/detail?id=133

这篇关于在Android中使用GWT源$ C ​​$ C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆