Skip to content

Commit f394576

Browse files
committed
switch lib http
1 parent 4bb8195 commit f394576

22 files changed

+2511
-2496
lines changed

.classpath

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<classpath>
3-
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
4-
<classpathentry kind="src" path="src"/>
5-
<classpathentry kind="src" path="gen"/>
6-
<classpathentry kind="src" path="examples"/>
7-
<classpathentry kind="output" path="bin/classes"/>
8-
</classpath>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
4+
<classpathentry kind="src" path="src"/>
5+
<classpathentry kind="src" path="gen"/>
6+
<classpathentry kind="src" path="examples"/>
7+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
8+
<classpathentry kind="lib" path="lib/httpclientandroidlib-1.1.2.jar"/>
9+
<classpathentry kind="output" path="bin/classes"/>
10+
</classpath>

.gitignore

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
_site
2-
MANIFEST.MF
3-
./*.jar
4-
build.num
5-
build
6-
local.properties
7-
bin/
8-
gen/
9-
_layouts
10-
.DS_Store
1+
_site
2+
MANIFEST.MF
3+
./*.jar
4+
build.num
5+
build
6+
local.properties
7+
bin/
8+
gen/
9+
_layouts
10+
.DS_Store
1111
gh-pages

.project

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<projectDescription>
3-
<name>android-async-http</name>
4-
<comment></comment>
5-
<projects>
6-
</projects>
7-
<buildSpec>
8-
<buildCommand>
9-
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10-
<arguments>
11-
</arguments>
12-
</buildCommand>
13-
<buildCommand>
14-
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15-
<arguments>
16-
</arguments>
17-
</buildCommand>
18-
<buildCommand>
19-
<name>org.eclipse.jdt.core.javabuilder</name>
20-
<arguments>
21-
</arguments>
22-
</buildCommand>
23-
<buildCommand>
24-
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25-
<arguments>
26-
</arguments>
27-
</buildCommand>
28-
</buildSpec>
29-
<natures>
30-
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31-
<nature>org.eclipse.jdt.core.javanature</nature>
32-
</natures>
33-
</projectDescription>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>android-async-http</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>

AndroidManifest.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.loopj.android.http"
4-
android:versionName="1.4.1"
5-
android:versionCode="1">
6-
<application
7-
android:name="android_async_http">
8-
</application>
9-
<uses-sdk android:minSdkVersion="3" />
10-
<uses-permission android:name="android.permission.INTERNET" />
11-
</manifest>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.loopj.android.http"
4+
android:versionName="1.4.1"
5+
android:versionCode="1">
6+
<application
7+
android:name="android_async_http">
8+
</application>
9+
<uses-sdk android:minSdkVersion="3" />
10+
<uses-permission android:name="android.permission.INTERNET" />
11+
</manifest>

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
Asynchronous Http Client for Android
2-
====================================
3-
4-
An asynchronous, callback-based Http client for Android built on top of Apache's [HttpClient](http://hc.apache.org/httpcomponents-client-ga/) libraries.
5-
6-
7-
Features
8-
--------
9-
- Make **asynchronous** HTTP requests, handle responses in **anonymous callbacks**
10-
- HTTP requests happen **outside the UI thread**
11-
- Requests use a **threadpool** to cap concurrent resource usage
12-
- GET/POST **params builder** (RequestParams)
13-
- **Multipart file uploads** with no additional third party libraries
14-
- Tiny size overhead to your application, only **19kb** for everything
15-
- Automatic smart **request retries** optimized for spotty mobile connections
16-
- Automatic **gzip** response decoding support for super-fast requests
17-
- Optional built-in response parsing into **JSON** (JsonHttpResponseHandler)
18-
- Optional **persistent cookie store**, saves cookies into your app's SharedPreferences
19-
20-
21-
Documentation, Features and Examples
22-
------------------------------------
23-
Full details and documentation can be found on the project page here:
24-
1+
Asynchronous Http Client for Android
2+
====================================
3+
4+
An asynchronous, callback-based Http client for Android built on top of Apache's [HttpClient](http://hc.apache.org/httpcomponents-client-ga/) libraries.
5+
6+
7+
Features
8+
--------
9+
- Make **asynchronous** HTTP requests, handle responses in **anonymous callbacks**
10+
- HTTP requests happen **outside the UI thread**
11+
- Requests use a **threadpool** to cap concurrent resource usage
12+
- GET/POST **params builder** (RequestParams)
13+
- **Multipart file uploads** with no additional third party libraries
14+
- Tiny size overhead to your application, only **19kb** for everything
15+
- Automatic smart **request retries** optimized for spotty mobile connections
16+
- Automatic **gzip** response decoding support for super-fast requests
17+
- Optional built-in response parsing into **JSON** (JsonHttpResponseHandler)
18+
- Optional **persistent cookie store**, saves cookies into your app's SharedPreferences
19+
20+
21+
Documentation, Features and Examples
22+
------------------------------------
23+
Full details and documentation can be found on the project page here:
24+
2525
http://loopj.com/android-async-http/

build.xml

Lines changed: 98 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,98 @@
1-
<project default="package">
2-
<property file="local.properties"/>
3-
<property file="project.properties"/>
4-
5-
<!-- Package properties -->
6-
<property name="package.name" value="android-async-http" />
7-
<property name="package.packagename" value="com.loopj.android.http" />
8-
9-
<!-- Get git commit -->
10-
<available file=".git" type="dir" property="git.present"/>
11-
12-
<target name="git-details">
13-
<exec executable="git" outputproperty="git.status">
14-
<arg value="status" />
15-
</exec>
16-
<echo message="${git.status}"/>
17-
18-
<exec executable="git" outputproperty="package.versionname">
19-
<arg value="describe"/>
20-
<arg value="--tags"/>
21-
<arg value="--dirty"/>
22-
<arg value="--always"/>
23-
</exec>
24-
<echo message="${package.versionname}" />
25-
</target>
26-
27-
<!-- Standard jar stuff -->
28-
<property environment="env"/>
29-
<condition property="android.base" value="${sdk.dir}" else="${env.ANDROID_HOME}">
30-
<isset property="sdk.dir" />
31-
</condition>
32-
<fail message="Please set either the sdk.dir property or the ANDROID_HOME environment variable to point to your Android SDK installation.">
33-
<condition>
34-
<not>
35-
<available file="${android.base}" type="dir"/>
36-
</not>
37-
</condition>
38-
</fail>
39-
40-
<property name="lib.dir" value="${android.base}/platforms/${target}" />
41-
<property name="build.dir" value="./build"/>
42-
<property name="classes.dir" value="${build.dir}/classes"/>
43-
<buildnumber file="build.num" />
44-
45-
<!-- Set up classpath -->
46-
<path id="classpath">
47-
<fileset dir="${lib.dir}" includes="**/*.jar" />
48-
</path>
49-
50-
<!-- Build javadoc -->
51-
<target name="doc">
52-
<javadoc
53-
classpathref="classpath"
54-
sourcepath="gen:src"
55-
destdir="doc"
56-
packagenames="${package.packagename}"
57-
linkoffline="http://d.android.com/reference ${android.base}/docs/reference"
58-
additionalparam="-author -version"
59-
/>
60-
</target>
61-
62-
<!-- Compile java files into classes -->
63-
<target name="compile">
64-
<mkdir dir="${build.dir}" />
65-
<mkdir dir="${classes.dir}" />
66-
67-
<javac
68-
includeantruntime="false"
69-
srcdir="src"
70-
destdir="${classes.dir}"
71-
classpathref="classpath"
72-
debug="true"
73-
debuglevel="lines,source" />
74-
</target>
75-
76-
<!-- Package a jar from compiled class files -->
77-
<target name="jar" depends="git-details,compile">
78-
<manifest file="MANIFEST.MF">
79-
<attribute name="Built-By" value="${user.name}" />
80-
<attribute name="Implementation-Version" value="${package.versionname}"/>
81-
</manifest>
82-
83-
<jar destfile="${package.name}-${package.versionname}.jar" basedir="build/classes" includes="com/loopj/android/http/**/*.class" manifest="MANIFEST.MF" />
84-
</target>
85-
86-
<!-- Clean out the build files -->
87-
<target name="clean">
88-
<delete dir="build" />
89-
<delete dir="doc" />
90-
<delete>
91-
<fileset dir="." includes="*.jar"/>
92-
<fileset file="MANIFEST.MF"/>
93-
</delete>
94-
</target>
95-
96-
<!-- Compile and package a jar -->
97-
<target name="package" depends="compile,jar" />
98-
</project>
1+
<project default="package">
2+
<property file="local.properties"/>
3+
<property file="project.properties"/>
4+
5+
<!-- Package properties -->
6+
<property name="package.name" value="android-async-http" />
7+
<property name="package.packagename" value="com.loopj.android.http" />
8+
9+
<!-- Get git commit -->
10+
<available file=".git" type="dir" property="git.present"/>
11+
12+
<target name="git-details">
13+
<exec executable="git" outputproperty="git.status">
14+
<arg value="status" />
15+
</exec>
16+
<echo message="${git.status}"/>
17+
18+
<exec executable="git" outputproperty="package.versionname">
19+
<arg value="describe"/>
20+
<arg value="--tags"/>
21+
<arg value="--dirty"/>
22+
<arg value="--always"/>
23+
</exec>
24+
<echo message="${package.versionname}" />
25+
</target>
26+
27+
<!-- Standard jar stuff -->
28+
<property environment="env"/>
29+
<condition property="android.base" value="${sdk.dir}" else="${env.ANDROID_HOME}">
30+
<isset property="sdk.dir" />
31+
</condition>
32+
<fail message="Please set either the sdk.dir property or the ANDROID_HOME environment variable to point to your Android SDK installation.">
33+
<condition>
34+
<not>
35+
<available file="${android.base}" type="dir"/>
36+
</not>
37+
</condition>
38+
</fail>
39+
40+
<property name="lib.dir" value="${android.base}/platforms/${target}" />
41+
<property name="build.dir" value="./build"/>
42+
<property name="classes.dir" value="${build.dir}/classes"/>
43+
<buildnumber file="build.num" />
44+
45+
<!-- Set up classpath -->
46+
<path id="classpath">
47+
<fileset dir="${lib.dir}" includes="**/*.jar" />
48+
</path>
49+
50+
<!-- Build javadoc -->
51+
<target name="doc">
52+
<javadoc
53+
classpathref="classpath"
54+
sourcepath="gen:src"
55+
destdir="doc"
56+
packagenames="${package.packagename}"
57+
linkoffline="http://d.android.com/reference ${android.base}/docs/reference"
58+
additionalparam="-author -version"
59+
/>
60+
</target>
61+
62+
<!-- Compile java files into classes -->
63+
<target name="compile">
64+
<mkdir dir="${build.dir}" />
65+
<mkdir dir="${classes.dir}" />
66+
67+
<javac
68+
includeantruntime="false"
69+
srcdir="src"
70+
destdir="${classes.dir}"
71+
classpathref="classpath"
72+
debug="true"
73+
debuglevel="lines,source" />
74+
</target>
75+
76+
<!-- Package a jar from compiled class files -->
77+
<target name="jar" depends="git-details,compile">
78+
<manifest file="MANIFEST.MF">
79+
<attribute name="Built-By" value="${user.name}" />
80+
<attribute name="Implementation-Version" value="${package.versionname}"/>
81+
</manifest>
82+
83+
<jar destfile="${package.name}-${package.versionname}.jar" basedir="build/classes" includes="com/loopj/android/http/**/*.class" manifest="MANIFEST.MF" />
84+
</target>
85+
86+
<!-- Clean out the build files -->
87+
<target name="clean">
88+
<delete dir="build" />
89+
<delete dir="doc" />
90+
<delete>
91+
<fileset dir="." includes="*.jar"/>
92+
<fileset file="MANIFEST.MF"/>
93+
</delete>
94+
</target>
95+
96+
<!-- Compile and package a jar -->
97+
<target name="package" depends="compile,jar" />
98+
</project>

0 commit comments

Comments
 (0)