Skip to content

Commit

Permalink
FIX: ERROR - [JSC_MISSING_MODULE_OR_PROVIDE_FOR_FORWARD_DECLARE] Requ…
Browse files Browse the repository at this point in the history
…ired namespace "HTMLMediaElement" never defined (#25)

Also updated to latest j2cl and j2cl-m-p.

Fixes #24
  • Loading branch information
treblereel authored Jul 8, 2021
1 parent d652fd6 commit 35844c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions gwt-dom-j2cl-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<url>https://github.com/gwtproject/gwt-dom</url>

<properties>
<maven.j2cl.plugin>0.16-SNAPSHOT</maven.j2cl.plugin>
<maven.j2cl.plugin>0.17-SNAPSHOT</maven.j2cl.plugin>

<!-- CI -->
<vertispan.j2cl.repo.url>https://repo.vertispan.com/j2cl/</vertispan.j2cl.repo.url>

<j2cl.version>0.8-SNAPSHOT</j2cl.version>
<j2cl.version>0.9-SNAPSHOT</j2cl.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -106,4 +106,4 @@
<url>${vertispan.j2cl.repo.url}</url>
</pluginRepository>
</pluginRepositories>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -42,39 +42,39 @@ public class MediaElement extends Element {
@JsOverlay public static final String CANNOT_PLAY = "";

/** Constant returned from {@link #getReadyState()}. */
@JsProperty(namespace = "HTMLMediaElement")
@JsProperty(namespace = JsPackage.GLOBAL, name = "HTMLMediaElement.HAVE_NOTHING")
public static int HAVE_NOTHING;

/** Constant returned from {@link #getReadyState()}. */
@JsProperty(namespace = "HTMLMediaElement")
@JsProperty(namespace = JsPackage.GLOBAL, name = "HTMLMediaElement.HAVE_METADATA")
public static int HAVE_METADATA;

/** Constant returned from {@link #getReadyState()}. */
@JsProperty(namespace = "HTMLMediaElement")
@JsProperty(namespace = JsPackage.GLOBAL, name = "HTMLMediaElement.HAVE_CURRENT_DATA")
public static int HAVE_CURRENT_DATA;

/** Constant returned from {@link #getReadyState()}. */
@JsProperty(namespace = "HTMLMediaElement")
@JsProperty(namespace = JsPackage.GLOBAL, name = "HTMLMediaElement.HAVE_FUTURE_DATA")
public static int HAVE_FUTURE_DATA;

/** Constant returned from {@link #getReadyState()}. */
@JsProperty(namespace = "HTMLMediaElement")
@JsProperty(namespace = JsPackage.GLOBAL, name = "HTMLMediaElement.HAVE_ENOUGH_DATA")
public static int HAVE_ENOUGH_DATA;

/** Constant returned from {@link #getNetworkState}. */
@JsProperty(namespace = "HTMLMediaElement")
@JsProperty(namespace = JsPackage.GLOBAL, name = "HTMLMediaElement.NETWORK_EMPTY")
public static int NETWORK_EMPTY;

/** Constant returned from {@link #getNetworkState}. */
@JsProperty(namespace = "HTMLMediaElement")
@JsProperty(namespace = JsPackage.GLOBAL, name = "HTMLMediaElement.NETWORK_IDLE")
public static int NETWORK_IDLE;

/** Constant returned from {@link #getNetworkState}. */
@JsProperty(namespace = "HTMLMediaElement")
@JsProperty(namespace = JsPackage.GLOBAL, name = "HTMLMediaElement.NETWORK_LOADING")
public static int NETWORK_LOADING;

/** Constant returned from {@link #getNetworkState}. */
@JsProperty(namespace = "HTMLMediaElement")
@JsProperty(namespace = JsPackage.GLOBAL, name = "HTMLMediaElement.NETWORK_NO_SOURCE")
public static int NETWORK_NO_SOURCE;

/** Constant used by {@link #getPreload()} and {@link #setPreload(String)}. */
Expand Down

0 comments on commit 35844c3

Please sign in to comment.