Skip to content

Commit

Permalink
GWT demo module partial revamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaphore committed Dec 22, 2022
1 parent 1d9a33b commit f22e7b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- `VfxEffect` constrains its internal width and height on `#resize(int, int)`.
Max side size of the internal buffers is now limited to the `VfxEffect#MAX_FRAME_BUFFER_SIDE` constant value which is 8192 by default.
Feel free to change it according to you project requirements.
Feel free to change it according to your project requirements.

## [0.5.0]

Expand Down
2 changes: 1 addition & 1 deletion demo/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
androidPluginVersion=3.6.1
roboVmVersion=2.3.8
gwtPluginVersion=1.0.13
gwtPluginVersion=1.1.19
# Should match the GWT version used for building the official LibGDX GWT backend
gwtLibVersion=2.8.2
lmlVersion=1.10.1.11.0
8 changes: 5 additions & 3 deletions demo/html/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ dependencies {
implementation "com.crashinvaders.lml:gdx-kiwi:$lmlVersion:sources"
}

def HttpFileServer server = null
def httpFilePort = 8080
task startHttpServer() {
dependsOn draftCompileGwt
String output = project.buildDir.path + "/gwt/draftOut"
Expand All @@ -61,8 +59,12 @@ task startHttpServer() {
from "war"
into output
}
server = new SimpleHttpFileServerFactory().start(new File(output), httpFilePort)

def server = new SimpleHttpFileServerFactory().start(new File(output), 8080)
println "Server started in directory ${server.getContentRoot()}, http://localhost:${server.getPort()}/index.html"
// This helps to bind the http server lifetime to the lifetime of the task itself.
// https://stackoverflow.com/a/45060802/3802890
while(true) Thread.sleep(1000)
}
}

Expand Down

0 comments on commit f22e7b4

Please sign in to comment.