diff --git a/ext/client-core-android/pom.xml b/ext/client-core-android/pom.xml index b5ac2eeca..706ecfae1 100644 --- a/ext/client-core-android/pom.xml +++ b/ext/client-core-android/pom.xml @@ -66,7 +66,27 @@ - + + + org.apache.olingo:olingo-client-core-android + org.apache.olingo:olingo-client-core + org.apache.olingo:olingo-client-api + org.apache.olingo:olingo-commons-core + org.apache.olingo:olingo-commons-api + org.apache.commons:commons-lang3 + org.slf4j:slf4j-api + commons-io:commons-io + com.fasterxml.jackson.core:jackson-core + com.fasterxml.jackson.core:jackson-databind + com.fasterxml.jackson.core:jackson-annotations + com.fasterxml.jackson.dataformat:jackson-dataformat-xml + com.fasterxml.jackson.module:jackson-module-jaxb-annotations + org.codehaus.woodstox:stax2-api + javax.xml.stream:stax-api + com.fasterxml:aalto-xml + + + javax.xml.stream org.apache.olingo.javax.xml.stream diff --git a/ext/client-proxy-android/pom.xml b/ext/client-proxy-android/pom.xml index 5920c7256..90990c27e 100644 --- a/ext/client-proxy-android/pom.xml +++ b/ext/client-proxy-android/pom.xml @@ -40,11 +40,6 @@ olingo-client-proxy ${project.version} - - org.apache.olingo - olingo-client-core - ${project.version} - com.google.android android @@ -71,7 +66,29 @@ - + + + org.apache.olingo:olingo-client-proxy-android + org.apache.olingo:olingo-client-proxy + org.apache.olingo:olingo-client-core-android + org.apache.olingo:olingo-client-core + org.apache.olingo:olingo-client-api + org.apache.olingo:olingo-commons-core + org.apache.olingo:olingo-commons-api + org.apache.commons:commons-lang3 + org.slf4j:slf4j-api + commons-io:commons-io + com.fasterxml.jackson.core:jackson-core + com.fasterxml.jackson.core:jackson-databind + com.fasterxml.jackson.core:jackson-annotations + com.fasterxml.jackson.dataformat:jackson-dataformat-xml + com.fasterxml.jackson.module:jackson-module-jaxb-annotations + org.codehaus.woodstox:stax2-api + javax.xml.stream:stax-api + com.fasterxml:aalto-xml + + + javax.xml.stream org.apache.olingo.javax.xml.stream diff --git a/ext/client-proxy-android/src/main/java/org/apache/olingo/client/core/android/http/AndroidHttpClientFactory.java b/ext/client-proxy-android/src/main/java/org/apache/olingo/client/core/android/http/AndroidHttpClientFactory.java deleted file mode 100644 index c11a38fc6..000000000 --- a/ext/client-proxy-android/src/main/java/org/apache/olingo/client/core/android/http/AndroidHttpClientFactory.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.olingo.client.core.android.http; - -import android.net.http.AndroidHttpClient; -import org.apache.http.client.HttpClient; -import org.apache.olingo.client.api.http.HttpMethod; -import org.apache.olingo.client.core.http.AbstractHttpClientFactory; - -import java.net.URI; - -public class AndroidHttpClientFactory extends AbstractHttpClientFactory { - - private static final long serialVersionUID = -5224104561624556177L; - - @Override - public AndroidHttpClient create(final HttpMethod method, final URI uri) { - return AndroidHttpClient.newInstance(USER_AGENT); - } - - @Override - public void close(final HttpClient httpClient) { - if (httpClient instanceof AndroidHttpClient) { - ((AndroidHttpClient) httpClient).close(); - } - } - -}