Skip to content

Commit ad6fd32

Browse files
authored
Merge pull request #29 from GwtMaterialDesign/release_2.4.0
Release 2.4.0
2 parents f460843 + 0172b44 commit ad6fd32

File tree

15 files changed

+34
-204
lines changed

15 files changed

+34
-204
lines changed

.utility/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -ev
3-
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "release_2.3" ]; then
3+
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "release_2.4.0" ]; then
44
echo "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml
55
mvn deploy --settings ~/settings.xml
66
fi

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ JQuery interface maintained by GWT Material Design.
1111
Documentation on the JQuery can be found here: https://api.jquery.com/
1212

1313
## Maven
14-
Current Version 2.3.0
14+
Current Version 2.4.0-rc1
1515
```xml
1616
<dependency>
1717
<groupId>com.github.gwtmaterialdesign</groupId>
1818
<artifactId>gwt-material-jquery</artifactId>
19-
<version>2.3.0</version>
19+
<version>2.4.0-rc1</version>
2020
</dependency>
2121
```
22-
Snapshot Version 2.3.1-SNAPSHOT
22+
Snapshot Version 2.4.0-SNAPSHOT
2323
```xml
2424
<dependency>
2525
<groupId>com.github.gwtmaterialdesign</groupId>
2626
<artifactId>gwt-material-jquery</artifactId>
27-
<version>2.3.1-SNAPSHOT</version>
27+
<version>2.4.0-SNAPSHOT</version>
2828
</dependency>
2929
```
3030

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<groupId>com.github.gwtmaterialdesign</groupId>
77
<artifactId>gwt-material-jquery</artifactId>
88
<packaging>gwt-lib</packaging>
9-
<version>2.3.0</version>
9+
<version>2.4.0-rc1</version>
1010

1111
<properties>
12-
<gwt.version>2.8.2</gwt.version>
13-
<tbroyer.version>1.0-rc-9</tbroyer.version>
12+
<gwt.version>2.9.0</gwt.version>
13+
<tbroyer.version>1.0.0</tbroyer.version>
1414
<jscore.version>1.0</jscore.version>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1616
</properties>
@@ -38,7 +38,7 @@
3838
<connection>scm:git:[email protected]:GwtMaterialDesign/gwt-material-jquery.git</connection>
3939
<developerConnection>scm:git:[email protected]:GwtMaterialDesign/gwt-material-jquery.git</developerConnection>
4040
<url>http://github.com/GwtMaterialDesign/gwt-material-jquery</url>
41-
<tag>v2.3.0</tag>
41+
<tag>v2.4.0-rc1</tag>
4242
</scm>
4343

4444
<distributionManagement>

src/main/java/gwt/material/design/jquery/client/JQueryEntryPoint.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public void onModuleLoad() {
5656
/**
5757
* If jQuery JS loaded?
5858
*/
59+
//TODO: Convert to JSInterop
5960
private native boolean isInjected() /*-{
6061
return !(typeof $wnd.jQuery === "undefined") && !(null === $wnd.jQuery);
6162
}-*/;

src/main/java/gwt/material/design/jquery/client/api/Promise.java

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
* Licensed under the Apache License, Version 2.0 (the "License");
2525
* you may not use this file except in compliance with the License.
2626
* You may obtain a copy of the License at
27-
*
27+
*
2828
* http://www.apache.org/licenses/LICENSE-2.0
29-
*
29+
*
3030
* Unless required by applicable law or agreed to in writing, software
3131
* distributed under the License is distributed on an "AS IS" BASIS,
3232
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -36,28 +36,27 @@
3636
*/
3737

3838

39-
import gwt.material.design.jquery.client.api.Functions.FuncRet2;
4039
import jsinterop.annotations.JsMethod;
4140
import jsinterop.annotations.JsType;
4241

4342
/**
44-
* Represent a JQuery Promise
43+
* Represent a JQuery Promise
4544
*
4645
* @author Cristian Rinaldi
4746
*/
48-
@JsType(name = "Promise", isNative=true)
47+
@JsType(name = "Promise", isNative = true)
4948
public interface Promise {
5049

5150
Promise then(Functions.FuncRet1<Object> f);
52-
53-
Promise then(FuncRet2<Event, Object> f);
54-
55-
Promise done(FuncRet2<Event, Object> f);
56-
57-
Promise when(FuncRet2<Event, Object> f);
51+
52+
Promise then(Functions.EventFunc1<Object> f);
53+
54+
Promise done(Functions.EventFunc1<Object> f);
55+
56+
Promise when(Functions.EventFunc1<Object> f);
5857

5958
@JsMethod(name = "catch")
60-
Promise fail(FuncRet2<Event, Object> f);
61-
62-
Promise always(FuncRet2<Event, Object> f);
59+
Promise fail(Functions.EventFunc1<Object> f);
60+
61+
Promise always(Functions.EventFunc1<Object> f);
6362
}

src/main/java/gwt/material/design/jscore/JSCore.gwt.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121

2222
<module>
2323
<inherits name='com.google.gwt.user.User' />
24-
<source path='client' />
24+
<inherits name="gwt.material.design.jquery.JQuery"/>
25+
<source path='client' />
2526

2627
<set-property name="user.agent" value="ie10, gecko1_8, safari"/>
2728
<set-configuration-property name="user.agent.runtimeWarning" value="false"/>

src/main/java/gwt/material/design/jscore/client/JSNI.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@
1414
* @author Cristian Rinaldi
1515
*/
1616
public class JSNI {
17-
17+
18+
//TODO: Convert to JSInterop
1819
public static native Console createConsole() /*-{
1920
return $wnd.console;
2021
}-*/;
21-
22+
23+
//TODO: Convert to JSInterop
2224
public static native Window createWindow() /*-{
2325
return $wnd;
2426
}-*/;
25-
27+
28+
//TODO: Convert to JSInterop
2629
public static native JSON createJSON() /*-{
2730
return $wnd.JSON;
2831
}-*/;

src/main/java/gwt/material/design/jscore/client/api/media/MediaDevices.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* the License.
1717
*/
1818

19-
import gwt.material.design.jscore.client.api.promise.Promise;
19+
import gwt.material.design.jquery.client.api.Promise;
2020
import jsinterop.annotations.JsMethod;
2121
import jsinterop.annotations.JsPackage;
2222
import jsinterop.annotations.JsType;

src/main/java/gwt/material/design/jscore/client/api/polymer/Polymer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
public class Polymer {
1818

1919
public native Element dom(Element e);
20-
20+
21+
//TODO: Convert to JSInterop
2122
public static class Static {
2223
public static native Polymer get() /*-{
2324
return $wnd.Polymer

src/main/java/gwt/material/design/jscore/client/api/promise/Promise.java

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)