Remove server code from android client and make android client smaller
This commit is contained in:
parent
4b2a3e6882
commit
9560ab8dd2
|
@ -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>
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
package javax.servlet;
|
||||
|
||||
public class ServletRequest {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package javax.servlet;
|
||||
|
||||
public class ServletResponse {
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package javax.servlet.http;
|
||||
|
||||
import javax.servlet.ServletRequest;
|
||||
|
||||
public class HttpServletRequest extends ServletRequest {
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package javax.servlet.http;
|
||||
|
||||
import javax.servlet.ServletResponse;
|
||||
|
||||
public class HttpServletResponse extends ServletResponse{
|
||||
|
||||
}
|
Loading…
Reference in New Issue