nbartels / gwt-window

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GWT3/J2CL compatible

gwt-window

A future-proof port of the com.google.user.window.Window GWT module, with no dependency on gwt-user (besides the Java Runtime Emulation), to prepare for GWT 3 / J2Cl.

Migrating from com.google.gwt.user.client.Timer

  1. Add the dependency to your build.

    For Maven:

    <dependency>
      <groupId>org.gwtproject.user.window</groupId>
      <artifactId>gwt-timer</artifactId>
      <version>1.0.0-RC-1</version>
    </dependency>

    For Gradle:

    implementation("org.gwtproject.timer:gwt-timer:1.0.0-RC-1")
  2. Update your GWT module to use

    <inherits name="org.gwtproject.timer.Timer" />
  3. Change your imports in your Java source files:

    import org.gwtproject.timer.client.Timer;

Instructions

To build gwt-timer:

  • run mvn clean install

on the parent directory.

To run the j2cl tests:

  • switch to the 'gwt-timer-j2cl-tests' directory
  • run mvn j2cl:clean & mvn j2cl:test

System Requirements

GWT Timer requires GWT 2.9.0 or newer!

About

License:Apache License 2.0


Languages

Language:Java 100.0%