Skip to content

Commit cf65136

Browse files
committed
Nicer build file
1 parent e8c1d61 commit cf65136

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ MANIFEST.MF
33
*.jar
44
build.num
55
build
6+
local.properties

build.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<project default="package">
2+
<property file="local.properties"/>
3+
<property file="default.properties"/>
4+
25
<!-- Project properties -->
36
<property name="version.num" value="1.2.1" />
47
<property name="project" value="android-async-http" />
58

69
<!-- Standard jar stuff -->
710
<property name="jarfile" value="${project}-${version.num}.jar" />
8-
<property name="lib.dir" value="/usr/local/android_sdk/platforms/android-7/" />
11+
<property name="lib.dir" value="${sdk.dir}platforms/${target}" />
912
<property name="build.dir" value="./build"/>
1013
<property name="classes.dir" value="${build.dir}/classes"/>
1114
<buildnumber file="build.num" />

default.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target=android-3

local.properties.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sdk.dir=/usr/local/android_sdk/

src/com/loopj/android/http/RequestParams.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void put(String key, ByteArrayInputStream filedata, String filename) {
6969
put(key, filedata, filename, null);
7070
}
7171

72-
public void put(String key, ByteArrayInputStream filedata, String filename, String contentType){
72+
public void put(String key, ByteArrayInputStream filedata, String filename, String contentType) {
7373
if(key != null && filedata != null) {
7474
fileParams.put(key, new FileWrapper(filedata, filename, contentType));
7575
}

0 commit comments

Comments
 (0)