@@ -5,7 +5,7 @@ buildscript {
|
||||
maven { url 'http://dl.bintray.com/steffenschaefer/maven' }
|
||||
}
|
||||
dependencies {
|
||||
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.5'
|
||||
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ evaluationDependsOn(':vtm-gdx')
|
||||
evaluationDependsOn(':vtm-web')
|
||||
|
||||
gwt {
|
||||
gwtVersion = '2.6.1'
|
||||
gwtVersion = project.ext.gwtVersion
|
||||
modules 'org.oscim.web.VtmWebJs'
|
||||
|
||||
superDev {
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
|
||||
<set-property name='gwt.logging.enabled' value='TRUE' />
|
||||
<set-property name='gwt.logging.consoleHandler' value='ENABLED' />
|
||||
<set-property name='gwt.logging.firebugHandler' value='DISABLED' />
|
||||
<set-property name='gwt.logging.popupHandler' value='DISABLED' />
|
||||
<set-property name="gwt.logging.logLevel" value="FINE" />
|
||||
|
||||
<!-- super dev mode -->
|
||||
@@ -25,4 +23,8 @@
|
||||
<set-configuration-property name="gdx.assetoutputpath" value="build/gwt/draftOut" />
|
||||
|
||||
<set-property name="user.agent" value="safari" />
|
||||
|
||||
<set-property name="compiler.stackMode" value="emulated" />
|
||||
<set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true" />
|
||||
<set-configuration-property name="compiler.emulatedStack.recordLineNumbers" value="true" />
|
||||
</module>
|
||||
|
||||
@@ -28,6 +28,8 @@ import org.timepedia.exporter.client.ExporterUtil;
|
||||
|
||||
public class GwtLauncher extends GwtApplication {
|
||||
|
||||
private ApplicationListener applicationListener;
|
||||
|
||||
@Override
|
||||
public void onModuleLoad() {
|
||||
//GWT.create(GwtGdxMap.class);
|
||||
@@ -46,7 +48,6 @@ public class GwtLauncher extends GwtApplication {
|
||||
|
||||
cfg.canvasId = "map-canvas";
|
||||
cfg.stencil = true;
|
||||
cfg.fps = 120;
|
||||
|
||||
return cfg;
|
||||
}
|
||||
@@ -55,6 +56,14 @@ public class GwtLauncher extends GwtApplication {
|
||||
public ApplicationListener getApplicationListener() {
|
||||
Tile.SIZE = MapConfig.get().getTileSize();
|
||||
|
||||
if (applicationListener == null) {
|
||||
applicationListener = createApplicationListener();
|
||||
}
|
||||
return applicationListener;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ApplicationListener createApplicationListener() {
|
||||
return new GwtMap();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user