Remove server code from android client and make android client smaller

This commit is contained in:
Thomas Andersen 2015-10-02 00:13:19 +02:00
parent 4b2a3e6882
commit 9560ab8dd2
6 changed files with 66 additions and 3 deletions

View File

@ -75,12 +75,16 @@
</dependency>
<!-- Android does not come with the Servlet API bundled, and MethodUtil
requires it -->
<dependency>
requires it.
We provide a dummy implementation of servlet api to reduce size.
and prevent from rewriting the BaseMethodBinding and friends.
-->
<!-- dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
</dependency-->
</dependencies>
@ -156,8 +160,13 @@
<filter>
<artifact>ca.uhn.hapi.fhir:hapi-fhir-base</artifact>
<excludes>
<exclude>ca/uhn/fhir/util/ITestingUiClientFactory</exclude>
<exclude>ca/uhn/fhir/rest/server/**</exclude>
<exclude>**/*.java</exclude>
</excludes>
<includes>
<include>ca/uhn/fhir/rest/server/exceptions/**</include>
</includes>
</filter>
</filters>
</configuration>
@ -207,8 +216,19 @@
<filter>
<artifact>ca.uhn.hapi.fhir:hapi-fhir-base</artifact>
<excludes>
<exclude>ca/uhn/fhir/util/ITestingUiClientFactory</exclude>
<exclude>ca/uhn/fhir/rest/server/**</exclude>
<exclude>**/*.java</exclude>
</excludes>
<includes>
<include>ca/uhn/fhir/rest/server/exceptions/**</include>
</includes>
</filter>
<filter>
<artifact>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu</artifact>
<excludes>
<exclude>ca/uhn/fhir/rest/server/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
@ -253,6 +273,25 @@
<shadedPattern>ca.uhn.fhir.repackage.javax.json</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>ca.uhn.hapi.fhir:hapi-fhir-base</artifact>
<excludes>
<exclude>ca/uhn/fhir/util/ITestingUiClientFactory</exclude>
<exclude>ca/uhn/fhir/rest/server/**</exclude>
<exclude>**/*.java</exclude>
</excludes>
<includes>
<include>ca/uhn/fhir/rest/server/exceptions/**</include>
</includes>
</filter>
<filter>
<artifact>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu2</artifact>
<excludes>
<exclude>ca/uhn/fhir/rest/server/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>

View File

@ -0,0 +1,5 @@
package javax.servlet;
public class ServletRequest {
}

View File

@ -0,0 +1,5 @@
package javax.servlet;
public class ServletResponse {
}

View File

@ -0,0 +1,7 @@
package javax.servlet.http;
import javax.servlet.ServletRequest;
public class HttpServletRequest extends ServletRequest {
}

View File

@ -0,0 +1,7 @@
package javax.servlet.http;
import javax.servlet.ServletResponse;
public class HttpServletResponse extends ServletResponse{
}