Skip to content

Commit 7b30552

Browse files
committed
Updated dependencies and version of library
1 parent 375c4cb commit 7b30552

File tree

9 files changed

+19
-24
lines changed

9 files changed

+19
-24
lines changed

.travis.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,15 @@ before_install:
2222
- export PATH=$GRADLE_HOME/bin:$PATH
2323
# just to test gradle version, against our provided one
2424
- gradle -v
25-
# newest android SDK 22.0.5
26-
- wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz
27-
- tar -zxf android-sdk_r22.0.5-linux.tgz
25+
# newest android SDK 22.3
26+
- wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
27+
- tar -zxf android-sdk_r22.3-linux.tgz
2828
- export ANDROID_HOME=`pwd`/android-sdk-linux
2929
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
3030
# manually set sdk.dir variable, according to local paths
3131
- echo "sdk.dir=$ANDROID_HOME" > local.properties
32-
- echo yes | android update sdk -t tools,platform-tools,extra-android-support,extra-android-m2repository,android-18 --force --no-ui
33-
# build tools cannot be installed through "android update sdk" as of now
34-
- wget http://dl.google.com/android/repository/build-tools_r18.0.1-linux.zip
35-
- mkdir -p $ANDROID_HOME/build-tools
36-
- unzip -qq build-tools_r18.0.1-linux.zip -d $ANDROID_HOME/build-tools/
37-
- mv $ANDROID_HOME/build-tools/android-4.3 $ANDROID_HOME/build-tools/18.0.1
38-
# verify files exist in right paths
39-
- find $ANDROID_HOME/build-tools
40-
- file $ANDROID_HOME/build-tools/18.0.1/aapt
32+
- echo yes | android update sdk -t tools,platform-tools,extra-android-support,extra-android-m2repository,android-19,build-tools-19.0.0 --force --no-ui
33+
# Sonatype bypass
4134
- echo "nexusUsername=dummy" >> library/gradle.properties
4235
- echo "nexusPassword=dummy" >> library/gradle.properties
4336

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ https://oss.sonatype.org/content/repositories/snapshots/com/loopj/android/androi
2929
Maven URL: https://oss.sonatype.org/content/repositories/snapshots/
3030
GroupId: com.loopj.android
3131
ArtifactId: async-http-client
32-
Version: 1.4.4-SNAPSHOT
32+
Version: 1.4.5-SNAPSHOT
3333
Packaging: JAR or AAR
3434
```
3535

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def isReleaseBuild() {
1414

1515
allprojects {
1616
group = 'com.loopj.android'
17-
version = '1.4.4'
17+
version = '1.4.5-SNAPSHOT'
1818

1919
repositories {
2020
mavenCentral()

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
VERSION_NAME=1.4.4
2-
VERSION_CODE=144
1+
VERSION_NAME=1.4.5-SNAPSHOT
2+
VERSION_CODE=145
33
GROUP=com.loopj.android
44

55
POM_DESCRIPTION=An Asynchronous HTTP Library for Android

library/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'android-library'
22

33
android {
4-
compileSdkVersion 18
5-
buildToolsVersion '18.0.1'
4+
compileSdkVersion 19
5+
buildToolsVersion '19.0.0'
66
}
77

88
android.libraryVariants.all { variant ->

library/src/main/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.loopj.android.http"
4-
android:versionName="1.4.4"
5-
android:versionCode="144">
4+
android:versionName="1.4.5-SNAPSHOT"
5+
android:versionCode="145">
66

77
<uses-sdk
88
android:minSdkVersion="3" />

library/src/main/java/com/loopj/android/http/AsyncHttpClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
* </pre>
9292
*/
9393
public class AsyncHttpClient {
94-
private static final String VERSION = "1.4.4";
94+
private static final String VERSION = "1.4.5";
9595

9696
private static final int DEFAULT_MAX_CONNECTIONS = 10;
9797
private static final int DEFAULT_SOCKET_TIMEOUT = 10 * 1000;

sample/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ repositories {
1616
}
1717

1818
android {
19-
compileSdkVersion 18
20-
buildToolsVersion "18.0.1"
19+
compileSdkVersion 19
20+
buildToolsVersion '19.0.0'
2121

2222
defaultConfig {
2323
minSdkVersion 3
24-
targetSdkVersion 18
24+
targetSdkVersion 19
2525
}
2626
}
2727

sample/src/main/java/com/loopj/android/http/sample/PostSample.java

+2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
import org.apache.http.Header;
77
import org.apache.http.HttpEntity;
8+
import org.apache.http.message.BasicHeader;
89

910
public class PostSample extends SampleParentActivity {
1011
private static final String LOG_TAG = "PostSample";
1112

1213
@Override
1314
protected void executeSample(AsyncHttpClient client, String URL, Header[] headers, HttpEntity entity, AsyncHttpResponseHandler responseHandler) {
15+
headers = new Header[]{ new BasicHeader("Content-Type", "ee") };
1416
client.post(this, URL, headers, entity, null, responseHandler);
1517
}
1618

0 commit comments

Comments
 (0)