Skip to content

Commit

Permalink
Updated dependencies and version of library
Browse files Browse the repository at this point in the history
  • Loading branch information
smarek committed Nov 1, 2013
1 parent 375c4cb commit 7b30552
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 24 deletions.
17 changes: 5 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,15 @@ before_install:
- export PATH=$GRADLE_HOME/bin:$PATH
# just to test gradle version, against our provided one
- gradle -v
# newest android SDK 22.0.5
- wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz
- tar -zxf android-sdk_r22.0.5-linux.tgz
# newest android SDK 22.3
- wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
- tar -zxf android-sdk_r22.3-linux.tgz
- export ANDROID_HOME=`pwd`/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# manually set sdk.dir variable, according to local paths
- echo "sdk.dir=$ANDROID_HOME" > local.properties
- echo yes | android update sdk -t tools,platform-tools,extra-android-support,extra-android-m2repository,android-18 --force --no-ui
# build tools cannot be installed through "android update sdk" as of now
- wget http://dl.google.com/android/repository/build-tools_r18.0.1-linux.zip
- mkdir -p $ANDROID_HOME/build-tools
- unzip -qq build-tools_r18.0.1-linux.zip -d $ANDROID_HOME/build-tools/
- mv $ANDROID_HOME/build-tools/android-4.3 $ANDROID_HOME/build-tools/18.0.1
# verify files exist in right paths
- find $ANDROID_HOME/build-tools
- file $ANDROID_HOME/build-tools/18.0.1/aapt
- 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
# Sonatype bypass
- echo "nexusUsername=dummy" >> library/gradle.properties
- echo "nexusPassword=dummy" >> library/gradle.properties

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ https://oss.sonatype.org/content/repositories/snapshots/com/loopj/android/androi
Maven URL: https://oss.sonatype.org/content/repositories/snapshots/
GroupId: com.loopj.android
ArtifactId: async-http-client
Version: 1.4.4-SNAPSHOT
Version: 1.4.5-SNAPSHOT
Packaging: JAR or AAR
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def isReleaseBuild() {

allprojects {
group = 'com.loopj.android'
version = '1.4.4'
version = '1.4.5-SNAPSHOT'

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.4.4
VERSION_CODE=144
VERSION_NAME=1.4.5-SNAPSHOT
VERSION_CODE=145
GROUP=com.loopj.android

POM_DESCRIPTION=An Asynchronous HTTP Library for Android
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apply plugin: 'android-library'

android {
compileSdkVersion 18
buildToolsVersion '18.0.1'
compileSdkVersion 19
buildToolsVersion '19.0.0'
}

android.libraryVariants.all { variant ->
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.loopj.android.http"
android:versionName="1.4.4"
android:versionCode="144">
android:versionName="1.4.5-SNAPSHOT"
android:versionCode="145">

<uses-sdk
android:minSdkVersion="3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
* </pre>
*/
public class AsyncHttpClient {
private static final String VERSION = "1.4.4";
private static final String VERSION = "1.4.5";

private static final int DEFAULT_MAX_CONNECTIONS = 10;
private static final int DEFAULT_SOCKET_TIMEOUT = 10 * 1000;
Expand Down
6 changes: 3 additions & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ repositories {
}

android {
compileSdkVersion 18
buildToolsVersion "18.0.1"
compileSdkVersion 19
buildToolsVersion '19.0.0'

defaultConfig {
minSdkVersion 3
targetSdkVersion 18
targetSdkVersion 19
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@

import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.message.BasicHeader;

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

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

Expand Down

0 comments on commit 7b30552

Please sign in to comment.