Skip to content

Commit a77e7e6

Browse files
committed
Formatting
1 parent 6d5ac1c commit a77e7e6

17 files changed

+559
-507
lines changed

build.gradle

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
buildscript {
2-
repositories {
3-
mavenCentral()
4-
}
2+
repositories {
3+
mavenCentral()
4+
}
55

6-
dependencies {
7-
classpath 'com.android.tools.build:gradle:0.6.+'
8-
}
6+
dependencies {
7+
classpath 'com.android.tools.build:gradle:0.6.+'
8+
}
99
}
1010

1111
allprojects {
12-
group = 'com.loopj.android'
13-
version = '1.4.4-SNAPSHOT'
12+
group = 'com.loopj.android'
13+
version = '1.4.4-SNAPSHOT'
1414

15-
repositories {
16-
mavenCentral()
17-
}
15+
repositories {
16+
mavenCentral()
17+
}
1818

19-
tasks.withType(JavaCompile) {
20-
options.encoding = "UTF-8"
21-
}
19+
tasks.withType(JavaCompile) {
20+
options.encoding = "UTF-8"
21+
}
2222
}

examples/ExampleUsage.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import com.loopj.android.http.*;
2-
31
public class ExampleUsage {
42
public static void makeRequest() {
53
AsyncHttpClient client = new AsyncHttpClient();

examples/TwitterRestClient.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Static wrapper library around AsyncHttpClient
22

3-
import com.loopj.android.http.*;
4-
53
public class TwitterRestClient {
64
private static final String BASE_URL = "http://api.twitter.com/1/";
75

examples/TwitterRestClientUsage.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
import org.json.*;
2-
import com.loopj.android.http.*;
3-
41
class TwitterRestClientUsage {
52
public void getPublicTimeline() {
63
TwitterRestClient.get("statuses/public_timeline.json", null, new JsonHttpResponseHandler() {
74
@Override
85
public void onSuccess(JSONArray timeline) {
96
try {
10-
JSONObject firstEvent = (JSONObject)timeline.get(0);
7+
JSONObject firstEvent = (JSONObject) timeline.get(0);
118
String tweetText = firstEvent.getString("text");
129

1310
// Do something with the response
1411
System.out.println(tweetText);
15-
} catch(JSONException e) {
12+
} catch (JSONException e) {
1613
e.printStackTrace();
1714
}
1815
}

library/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
android:versionName="1.4.4"
55
android:versionCode="2">
66

7-
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="18" />
7+
<uses-sdk
8+
android:minSdkVersion="3"
9+
android:targetSdkVersion="18" />
810

911
<uses-permission android:name="android.permission.INTERNET" />
1012

library/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
apply plugin: 'android-library'
22

33
dependencies {
4-
compile 'com.android.support:support-v4:18.0.+'
4+
compile 'com.android.support:support-v4:18.0.+'
55
}
66

77
android {
8-
compileSdkVersion 18
9-
buildToolsVersion '18.0.1'
8+
compileSdkVersion 18
9+
buildToolsVersion '18.0.1'
1010

11-
sourceSets {
12-
main {
13-
manifest.srcFile 'AndroidManifest.xml'
14-
java.srcDirs = ['src']
15-
res.srcDirs = ['res']
11+
sourceSets {
12+
main {
13+
manifest.srcFile 'AndroidManifest.xml'
14+
java.srcDirs = ['src']
15+
res.srcDirs = ['res']
16+
}
1617
}
17-
}
1818
}

0 commit comments

Comments
 (0)