Skip to content

Commit

Permalink
Remove example and upgrade rxjava to 2.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ibaca committed May 11, 2020
1 parent 8095c0c commit bac28ed
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 273 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ to build requests using any transport library.*
It helps organize because AutoREST uses a simplified JSR311 RESTful API definition which is easy to write and read.
You can use this API in the server side using any JAX-RS implementation like [jersey](https://jersey.github.io/) and
AutoREST will make it trivial to create your clients (JRE, Android or GWT) using this same JAX-RS API definition.
The lib includes a JRE (android compatible) and GWT clients, but it is strongly recommended to see the source code
The lib includes a JRE (android compatible) and GWT clients, but it is strongly recommended seeing the source code
and create your own request builder.

To keep the project simple only part of the JSR311 is supported:
Expand All @@ -20,10 +20,10 @@ To keep the project simple only part of the JSR311 is supported:
to which segment the matrix param applies, @Encoded still not supported)
* *@Consumer* and *@Producer*

All included implementations requires to use [RxJava][rxjava] types (Observable, Single or Completable) as return types.
All included implementations requires using [RxJava][rxjava] types (Observable, Single or Completable) as return types.
This is mandatory to share the same interface between the client and the server, because the server requires a
synchronous return value but the client requires an asynchronous one. [RxJava][rxjava] types allows to get both
strategies using the same type. Also those containers describe perfectly all available JSON responses, empty, one and
synchronous return value, but the client requires an asynchronous one. [RxJava][rxjava] types allows to get both
strategies using the same type. Also, those containers describe perfectly all available JSON responses, empty, one and
many objects (see response containers) which make client implementation and response parsing much easier.

## Download
Expand Down Expand Up @@ -54,7 +54,7 @@ public class ExampleEntryPoint implements EntryPoint {
public void onModuleLoad() {
Nominatim nominatim = new Nominatim_RestServiceModel(() -> osm());
nominatim.search("Málaga,España", "json").subscribe(n -> {
GWT.log("[" + (int) (n.importance * 10.) + "] " + n.display_name + " (" + n.lon + "," + n.lat + ")");
GWT.log("[" + (n.importance * 10.) + "] " + n.display_name + " (" + n.lon + "," + n.lat + ")");
});
}

Expand Down
74 changes: 0 additions & 74 deletions example/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion gwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
<configuration>
<moduleName>com.intendia.gwt.autorest.AutoRest</moduleName>
<skipModule>true</skipModule>
<relocateSuperSource>true</relocateSuperSource>
</configuration>
</plugin>
</plugins>
Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@

<modules>
<module>core</module>
<module>example</module>
<module>gwt</module>
<module>jre</module>
<module>processor</module>
Expand All @@ -65,8 +64,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<gwt.version>2.8.2-rx1</gwt.version>
<rxjava.version>2.1.2</rxjava.version>
<rxjava-gwt.version>2.1.2-beta1</rxjava-gwt.version>
<rxjava.version>2.2.10</rxjava.version>
<rxjava-gwt.version>${rxjava.version}-gwt1</rxjava-gwt.version>
</properties>

<dependencyManagement>
Expand Down

0 comments on commit bac28ed

Please sign in to comment.